After Import Custom Events

QuestionsAfter Import Custom Events
Fiz asked 5 years ago

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,

7 Answers
Abu Ghufran Staff answered 5 years ago

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.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Abu Ghufran Staff answered 5 years ago

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.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Fiz answered 5 years ago

Hello,

Really thanks for the suggestion. It’s working like what I want.

Regards,

pcattani answered 2 years ago

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
Abu Ghufran Staff answered 2 years ago

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

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
C3media answered 4 weeks ago

I want to update the table with the data, not to import; how to?

Regards

Abu answered 4 weeks ago

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].

Your Answer

13 + 18 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?