Within Ajax, determine which record is in dialog

Within Ajax, determine which record is in dialog

pmj7pmj7 Posts: 18Questions: 5Answers: 0

Hi

If you have a response from the server indicating one the records you are updating has a problem, it would be helpful to know which record is currently being shown in the Editor dialog. Getting the record id when clicking on the row is out because you may have next/prev buttons within the dialog, as shown in your examples.

Thanks

Peter

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    Hi Peter,

    The modifier() method can be used to determine what record is being edited - it simply returns whatever edit() was called with in the first parameter (i.e. a row node or index typically). In that way you can use that to query the DataTable to get the row's data.

    Regards,
    Allan

  • pmj7pmj7 Posts: 18Questions: 5Answers: 0

    Hi

    Thanks, that works.

    Peter

This discussion has been closed.