I have a grid with a query that joins 3 tables. I have a custom on_insert which successfully adds all the new data to the tables. However, when the grid comes back, the new row has an ID of jqg1 and of course, any subsequent actions to that row generate an error (since the queries use 'jqg1' as an ID and that is not valid).
Note that the '+' sign for inline add is greyed out when the grid comes back. If I refresh the page, the new row is listed and all the data are there. If I add another row, then the ID will be jqg2.
How can I fix this problem? Is there supposed to be a callback from my custom on_insert method to set the ID?
1 Answers
Your Answer