Closed tokick4 closed 11 years ago
Are 3 of your columns joined off other tables? OpenJSGrid can only by default save to original table from $grid = new Grid($Table)
yes they are as you can see in #20 comments that I posted
Sean, Is there a save function that updates the sql, I need to mend it change a enum value automatic upon updating
I don't have any places to interject into saving, BUT you can alter your data however you need to in the POST before you save.
You can also call $grid = new Grid($table) WITHOUT the save key, and then use $grid->save() your self, but you should read the PHP file on that if you're going to fully customize the save. You'll need to learn about $grid->getSaveArray();
idemployee will be in the list when you take it out of the fields array. It can't save right now because for the select box to work, it has to be the id of the field that goes with the select box. As in, the id that choose which option to show for that drop down. For selects, dont have any fields set, just let it show the raw number. The select functions will turn it into the drop down.
Thank's this help men alot
Sure, I still need to detail this kind of custom stuff on the web page. Documentation takes FOREVER
Sean, what is causing this: saveable: [idinspection, inspection_date, am_pm, pass_failed, Permit_No] 0: "idinspection" 1: "inspection_date" 2: "am_pm" 3: "pass_failed" 4: "Permit_No" only 4 of my 7 columns on the table are showing in the console as saveable.