Editor - Get ID of row to be deleted, transactions
Editor - Get ID of row to be deleted, transactions
Question 1: I would like to grab the ID of a row to be deleted, but it seems that 'data' is not sent to the preSubmit. Plus the delete doesn't open the editor form for me to grab the ID, or does it?
Scenario: if a person submits to delete a record, I want to take a quan number and foreign key from that record, and adjust another table's record fields
If I can get the row ID of the record to be deleted, I can do the rest myself
Question 2: does editor/DT perform writes using transactions? If I perform an action on another table in the background using ajax, then let editor continue it's things normally ( writing the edited record ), is there a mechanism to ensure both writes are correct? or do i need to create one myself?
Thanks for any information.
This question has an accepted answers - jump to answer
Answers
Correct - the ids of the rows to be submitted is available in the
id
property - see the client / server documentation.If you are using the pre-built PHP or .NET libraries, then yes it uses transactions.
Allan
Thanks Allan.