Running the App, start to change Dave Grohl’s band from Nirvana to Foo Fighters, for example, if you change your mind, click the Reset Button and it will return to Nirvana. Note: you can only Reset changes haven’t been committed to the data source
Having a Reset Button showing against all records looks clumsy. To display the Button against only the currently selected record, add ‘ThisItem.IsSelected‘ to the Button’s Visible property. That looks better
A more sophisticated solution is to display the Reset Button against all records that have been changed but are not yet saved to the data source. This is done by copying the data source to a Collection when it is initially loaded by the App and updating the Collection together with the data source every time the data is changed and saved. Use the App.OnStart or Screen.OnVisible properties to automatically create the Collection when the App is launched or the screen is loaded. The LookUp function can be employed to check if the data in the Collection matches the data currently in the Text Box and if not, display the Reset Button for the record. The Visible property expects a boolean value, so no need to use an If statement
Add the following to the Visible property of the Reset Button where colBand_Member is the name of the Collection: