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.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?