I created a PowerApps with a Gallery + Search Box that connects to a SharePoint list.
When typing in the Search Box I would like to "Search" through multiple columns, of which some are non-text columns, such as a "Choice" field. This seems rather obvious as SP Lists often consist of non-Text fields.
Is there a way to get this done?
This function doesn't accept non-text Fields:
SortByColumns(Search('SharePointList';SearchTextBox.Text; "Title";"Choicefield");"Title"; If(SortDescending1; Descending; Ascending))
Hi @EJSPoelen ,
You are correct that Search only works on Text fields - try this
SortByColumns(
Search(
AddColumns(
'SharePointList';
"MyChoice";
ChoiceField.Value
);
SearchTextBox.Text;
"Title";
"MyChoice"
);
"Title";
If(
SortDescending1;
Descending;
Ascending
)
)
Bear in mind that the data structure is in your control - you do may not need Choice fields - I have a blog that may be of use to you.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi @EJSPoelen ,
Just checking if you got the result you were looking for on this thread. Happy to help further if not.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
User | Count |
---|---|
161 | |
86 | |
68 | |
63 | |
62 |
User | Count |
---|---|
211 | |
147 | |
93 | |
81 | |
68 |