On_delete event issue

QuestionsOn_delete event issue
C3media asked 2 months ago

Hello Abu,

I am trying to use On_delete event but not works.

Code: https://gist.github.com/c3media/9240d9ff5f5c4eb0ea897aec2454b838

Screenshot issue: https://imgur.com/SMV47hR

3 Answers
Abu answered 2 months ago

Hello,

In screenshot I can see that it does not have field ticket_id in parameters for event handler.

 

The delete event only get the key field as delete row id. You need to fetch rest data using this id and then use in your code.

C3media answered 2 months ago

Hello Abu i have don changes, the idea is to delete the value from foreign table column.

Refer code: https://gist.github.com/c3media/9240d9ff5f5c4eb0ea897aec2454b838

 

Regards!

C3media answered 2 months ago

Sorry, it is to update the value in the foreign table column based in previous value to delete

Your Answer

12 + 9 =

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 / 5. Vote count:

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

Let us improve this post!