Hi all,
I have a gallery. When I select a record it builds a collection of the "ReportOwner" data from Sharepoint where the ID matches - this is a multi-select person field.
I then need to check whether the the current logged-on user name appears in that collection, this will then determine whether I make another field available to edit, or just to view.
The collection code I have as:
ClearCollect(colRepOwners, Filter(ERR_ComplianceData, ID = gal_reportregisterdetailed_data.Selected.ID).ReportOwner);
Clear(colRepOwnersList);
ForAll(colRepOwners, Collect(colRepOwnersList, ReportOwner));
This collection has a column named "ReportOwner"
Can anyone advise though what code I need on the DisplayMode of the other field? I was hoping it was something like this, but this is invalid.
If(LookUp(colRepOwnersList, User().FullName in ThisItem.ReportOwner, Parent.DisplayMode, DisplayMode.View)
Many thanks!!
Paul