Good afternoon everyone,
My app has the following behaviour:
1. User selects a record from a gallery with an Items property directly referencing a SharePoint list.
2. My app performs a lookup of the ID for the SharePoint list item against the selected gallery ID and saves the resulting record as a variable (gvSelectedRecord).
3. The user is taken to a screen with controls which all have DefaultSelectedItems & Default values linked to gvSelectedRecord. For example, I have a full name text box control with a Default value of gvSelectedRecord.'Full Name'. There is a control for each of the columns in the SharePoint list.
4. The user clicks a button to progress to a review screen. Before navigating to the screen, I am taking all the current values of the controls and saving them as a different variable record (gvRequestDetails).
5. The user is taken to a review screen which contains a review gallery. The gallery Items property is:
With({_rec: gvRequestDetails},
Ungroup(
Table(
{Name: "Full name", Value: Text(_rec.fullName.field), Screen: _rec.fullName.screen, SPColumnName: "Title"},
{Name: "Location", Value: Text(_rec.location.field.Value), Screen: _rec.location.screen, SPColumnName: "Location"}...
etc.
I have labels in this gallery for the column name in a user friendly format, the value the user has provided, a screen number (for the purposes of a button navigating to a specific screen if the user wants to change a value they've provided) and a SPColumnName (which is the system/exact name of the column in SharePoint).
What I am trying to achieve is a way of comparing gvSelectedRecord and gvRequestDetails to see if the user has made any changes.
For example: If I were to change the Full name text box control of the selected record from John Smith (SharePoint list value - held in gvSelectedRecord.'Full Name') to David Smith (the value provided in the text box control and value stored in gvRequestDetails), I want the label in my review gallery which displays the value of 'David Smith' to have an indicator that the value has been changed (e.g. an asterisk at the start or the label should display in bold).
Is this possible? If so, how would I go about doing this?
Sorry if my explanation isnt great but I am happy to provide further detail if required!