Sorry, I should have provided some further info to explain what I'm looking for. The first screenshot attached shows my current gallery. The gallery tiles are in the image, title, subtitle and body layout, and I've customized the fields to the relevant columns from my SP list, where:
- Image = This.Item.ConsultantName.Picture (from Office365 profile)
- Title = ThisItem.ConsultantName.DisplayName (from SP column 'Consultant Name', which is a Person or Group type column)
- Subtitle = ThisItem.PositionTitle (from SP column 'Position Title', which is a Single Line of Text type column)
- Body Layout = ThisItem.JobLocation (from SP column 'Office Location', which is a Single Line of Text type column)
This gallery is supported by two forms (screenshots attached):
- View Record Form
- Edit/New Record Form:
- The first field (Consultant Name) is the Person or Group picker, where the user can find the relevant consultant from our organisation's user list.
- The second and third fields (Position Title and Job Location) are linked to Consultant Name, and they auto-populate once the user selects the consultant from the Person or Group picker.
Now that gallery display and forms are working exactly how I need them to, and my SP list is automatically updating if a new record is created, or an existing record is edited.
The issue I'm having is the Sort icon, and Search functionality do not work in my gallery. The items setting for my gallery is currently set to:
SortByColumns(Filter([@'ListName'], StartsWith('Employee ID', TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))
As I mentioned in my first post, using the Employee ID in this formula does not work with my gallery, as this is a redundant and hidden column in my SP list.
Is there anyway I can amend the formula to allow both searching/filtering and sorting to be linked to the Consultant Name column (a Person or Group column)? I would like anyone using the gallery to be able to search by First Name and/or Last Name, and the sort the gallery in alphabetical order by First Name and/or Last Name.
Thank you!!