Hello,
Is there anyway to do custom event functions after importing files using phpgrid? I want to update the database last updated date. If this function cannot be implement, please do tell me that it is cannot be implemented.
Regards,
Hello,
Custom events are not supported now in import. We’ll be adding in our todos.
One solution could be to use database trigger to update other table.
Hello,
Custom events are not supported now in import. We’ll be adding in our todos.
One solution could be to use database trigger to update other table.
Hello,
Really thanks for the suggestion. It’s working like what I want.
Regards,
Hi Abu,
Has there been an update to allow for a custom Import function? Or a php function call after an import has taken place? I am using a joining table, and will need to update a users permissions to access the data they just uploaded.
Thanks,
- Phil
Hello,
Yes, Import function now supports on_insert event handler in latest build.
You can review following code.
https://www.gridphp.com/demo/demos/export/import.phps – Line 50
In latest build, we support a method by which the imported data will be updated by matching the first imported column. Means, it will match the first column of the imported data with the table’s mapped column name and update all the rest fields.
This is in beta right now and If you want to use it, you can email me at [email protected].