I have a basic Gallery to display my data - the source is Sharepoint. I have a collection which I created to overcome the delegation issues in my app called GalleryDataNew
I have the following on my Gallery Items property:
If(
varWHS = "false",
SortByColumns(
Filter(
Filter(
colGalleryDataNew,
Substitute(
Substitute(
Lower(varUserMail),
"@rdmw.qld.gov.au",
""
),
".",
" "
) in Lower(officers) || Substitute(
Substitute(
Lower(varUserMail),
"@rdmw.qld.gov.au",
""
),
".",
" "
) in Lower(approver) || Substitute(
Substitute(
Lower(varUserMail),
"@rdmw.qld.gov.au",
""
),
".",
" "
) in LookUp(
BusinessUnits,
unitname in ThisRecord.unitname,
contact3name
)
),
searchbox_3.Text in officers || searchbox_3.Text in Text(tripid)
),
"tripid",
SortOrder.Descending
)
)
I have a text box above the Gallery which allows searching on the officers and tripid fields
My query is trying to say "display all trips where the logged on user is any of the following":
- The officer on the trip
- The approver of the trip
- The escalation contact for the business group that the officer is associated with
I am ok with the 1st 2 dot points as the fields are directly within the collection "GalleryDataNew" it's when I come to try the LookUp that it fails:
//this is showing the first contact3name in the Business Units list
LookUp(
BusinessUnits,
unitname in ThisRecord.unitname,
contact3name
I think I am missing something obvious but I can't figure out what it is! any help much appreciated