I have a gallery and want to combine two functions. The first function will make alternate rows in the gallery different colors. The second function is for my search criteria. I put both functions in the Items function and I get errors. What am I doing wrong.
With ({records: Job0013_Holiday_Gift_List},
ForAll (Sequence(CountRows(records)), Patch(Last(FirstN(records, Value)), {rowNumber:Value}))
);
Search(Job0013_Holiday_Gift_List, TextInput_Search.Text,"EMail","Company","First_Name","Last_Name")
To combine the two functions, you need to use the output of one function as input to the other function.
In your case, you can apply the Search() function to the output of the ForAll() function like this:
Note that I have replaced your reference to {records: Job0013_Holiday_Gift_List} with
Job0013_Holiday_Gift_List directly in the expression, as it is unnecessary to define a new variable just to reference the gallery data source.
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2