Hi Abu, I have a standard single grid I am working on, one of the fields has a default value which works on display but is never inserted into mysql, is there a reason for this?
$col["editoptions"] = array("defaultValue"=> userValue(null, "username") );
This outputs correctly as user name 'John Smith' for example but when form submits the table column is empty?
PasteBin http://pastebin.com/5KqRg7fr
Sorry forgot to add I also tried $col["editoptions"] = array("size"=>20, "defaultValue"=>'10') which didnt work either..
Thanks
I am unable to regenerate this issue.
Code:
$col = array();
$col["title"] = "Name";
$col["name"] = "name";
$col["editable"] = true;
$col["width"] = "80";
$col["editoptions"]["defaultValue"] = "test default";
$cols[] = $col;
Output:
http://tinyurl.com/pyx3v7b