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,

5 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 1 year 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 1 year 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
 
Your Answer

2 + 4 =

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?