Hi,
All tables and views are from SQL
I have a ComboBox with its items property set to:
Sort(JobTitle, JobTD, Ascending )
I then have Gallery1 with its item property set to the following, which allows me to filter the Profiles linked to the Job:
Filter(JobPR_Mapping, JobD = CbxTitleSelection.Selected.JobTD)
And then I have a Gallery2 (not nested) which displays all available Profiles, not already displayed in Gallery1:
GroupBy(
Search(
Filter(
colProfiles, //collecting at App OnStart from Profile Table
Not(ProfileX exactin GalDeleteProfile.AllItems.ProfileX)
),
TextInpSearchProfileToTitle.Text,
"ProfileName"
),
"ProfileName",
"ProfileX",
"ProfileGroupedDATA"
)
I have a requirement where I should only display Profiles in both galleries which are specific to the logged in users region (I will need to also allow some admins to be able to see all users, similar to what I was helped with in this question: - https://powerusers.microsoft.com/t5/Building-Power-Apps/Help-with-filtering-a-gallery/td-p/1869726/page/2
Set(varAllowOverride,
User().Email in Filter(Uview, DCode = "GT345").UserEmail
);
In JobPR_Mapping Table I have a column called Region, which will either be empty in which case all profiles with a NULL value should be displayed for all users regardless of region, or if it has region such as UK, it should only be displayed for users from the same region. This info is stored in a view called Uview, which contains a column called UserEmail a column called DCode (GT345 is the value determining if user is an admin) and another column called UGroup which contains the region the is in.
@timl