To ensure only the specific Record selected can be edited, we first need a unique identifer in each record. Typically this will be an account number or similar. The unique identifier usually does not change, which is why we don’t allow the DisplayMode of our Account No Text Input box to be set to Edit
In order to isolate the Record that the change of DisplayMode applies to, we assign the Account No to a Variable. The following line is used for the OnSelect property of the Edit Icon:
UpdateContext({conAccountNo:ThisItem.Account_No});
Then, for the two Text Input boxes containing the names, that we want to be editable, the DisplayMode property is set to:
If(conAccountNo=ThisItem.Account_No,DisplayMode.Edit,DisplayMode.View)
Only the Record on which the Edit Icon was clicked will now have the DisplayMode property of the Text Input boxes assigned to Edit. For all the other Records the DisplayMode will remain View. Because the Account No is unique, only one Record can be edited at a time