On_delete event issue

QuestionsOn_delete event issue
C3media asked 5 years 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 5 years 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 5 years 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 5 years ago

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

Your Answer

15 + 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?