Topic: Return original values of fields

Hi, thank you for excellent software.

My question is as follows:

I have an instance where the user may open a 'view' form whose fields are populated by a record selected from a tablegrid. They may subsequently choose to edit the fields of the record by turning on 'edit mode' (which removes read only condition from fields).

What I need is an OnClick which repopulates all the fields with the values from the original SQL query (i.e. so that they may push a cancel button for example which does not close the form but instead reverts any unsaved changes they have made to the fields in edit mode). Most fields are Textbox type, there are some ComboBox too.

Is this possible?

2 (edited by derek 2017-09-06 18:08:14)

Re: Return original values of fields

Hi Tobias,
Please have a look at the attached example as being a very straightforward way of doing it (storing the original record values in local edit fields).  There are probably other ways too.
Hope this helps,

Post's attachments

Attachment icon 338.53 kb, 132 downloads since 2017-09-06 

Re: Return original values of fields

Hi Derek,

Thank you, the invisible fields are a good solution.