Editor - Get ID of row to be deleted, transactions

Editor - Get ID of row to be deleted, transactions

piq_pm_pjkpiq_pm_pjk Posts: 21Questions: 7Answers: 1

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

  • allanallan Posts: 61,920Questions: 1Answers: 10,153 Site admin
    Answer ✓

    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.

    Correct - the ids of the rows to be submitted is available in the id property - see the client / server documentation.

    Question 2: does editor/DT perform writes using transactions?

    If you are using the pre-built PHP or .NET libraries, then yes it uses transactions.

    Allan

  • piq_pm_pjkpiq_pm_pjk Posts: 21Questions: 7Answers: 1

    Thanks Allan.

This discussion has been closed.