How know id of record (or any value of filed) before delete that record?

QuestionsHow know id of record (or any value of filed) before delete that record?
Momen Saleh asked 10 years ago

How know id of record (or any value of filed) before delete that record?
im try to use $[data][id] in delete function, but it return null value.

very thank for help.

3 Answers
Abu Ghufran answered 10 years ago

Hello,

You are doing it right, just few considerations.
1) It is available in licensed version
2) 'id' will be the first column name of your grid. be it client_id, rec_id or whatever.

Regards,

Momen Saleh answered 10 years ago

Thanks for Reply,

1) I have licensed version.
2) But i need know value any filed on table before delete record.

Regards

Abu Ghufran answered 10 years ago

The on_delete event is called before the deletion query. You can put a select statement to know id, before deletion.

e.g. mysql_query("select …")

Your Answer

12 + 10 =

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?