Hello PA Community!
I'm presenting the data to the user filtered by the comments made by the user. Then, I want the user to be able to search by name. Here are the separate searches that work; I just can't get them to work together.
//This search queries the comment list and outputs the comments made by the user in descending order
Sort(
Filter(
CSTComments,
'Created By'.Email = User().Email
),
Created,
Descending
)
//This search allows the data in CSTComments to search the data by first name. Note: I can't use the StartsWith function because the data I'm working with has the name set to (Student) at the beginning of each student's name.
Search(
AddColumns(
CSTComments,
"displayname",
'StudentInfo'.DisplayName
),
myCommentsSearch.Text,
"displayname",
"Title"
)
Any help will be much appreciated.
Kind regards,
Brian