Hi! How can I insert an empty row into dropdown before adding array from query? Sometimes I need to insert rows with NULL fields into db.
Add ":;" before value of dropdown options.
$str = $g->get_dropdown_values("select note as k, note as v from invheader");
$col["editoptions"] = array("value"=>":;".$str);
For null entry,
If db fields allows null and we want to save (NULL) instead of "". Defaults to false
$col["isnull"] = true;
These changes are available in updated build.
How useful was this discussion?
Click on a star to rate it!
Average rating / 5. Vote count:
We are sorry that this post was not useful for you!
Let us improve this post!
Thanks for your feedback!