Refuse change of selected record in tableview

Hi,

Is there a way that you can refuse a change of the selected record in tableview?

I have a case where a user can add a new record in tableview
User has to press OK button to save the record.
Before saving record, there are some checks behind this OK button.

What I see happen, is that user presses “Add new record”.
Then during fill of fields, the user selects another record in the tableview
Then user presses OK button.

So the checks behind the OK button, now work on the selected record and not the new added record.

I thought maybe if I return false in the onRecordSelection event, that the record change would have been refused, but that is not the case.

Is there another way that you can rollback a change of record, so that the current record remains the one you are working on?

Martin

Martin,

Try the form.onRecordEditStop event method.
When this method returns false, the user cannot leave the record.

Rob