I have a field called weight, and when this one is updated with value 0 I would like to update the field called status
Is this possible in inline edit?
Thanks for you help
Ok I found a way with running a sql update, on the event on_update, but the value is then reset by the end of the grid script. I know I can use the last param to false, but this will prevent updating the status field.
How can I update the value of the field within the form?
Refer this faq: Uses onblur event to update form fields.
Abu Ghufran - Dev Team
Grid 4 PHP Framework
ok , I am progressing.
What if the field to update is a select ?
how do I pickup the correct value Epuise ?
$col = array();
$col[“title”] = “Status”;
$col[“name”] = “Sa_Status”;
$col[“width”] = “40”;
$col[“editable”] = true;
$col[“edittype”] = “select”;
$col[“editoptions”] = array(“value” => “:;Dispo:Dispo;Emprunte:Emprunte;Epuise:Epuise”);
$col[“stype”] = “select”;
$col[“searchoptions”] = array(“value” => “:;Dispo:Dispo;Emprunte:Emprunte;Epuise:Epuise”);
$col[“formatter”] = “select”;
$cols = $col;
Updated FAQ to enable select dropdown as well. I just removed ‘input’ for jquery selector and it will search all html tags now.
Still does not work.
I removed the input but the Select box is still not updated.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?