cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Filter works in one app not another - same data source & same code

Hi
I've wired up a seach filter in two versions of my app.
Search works fine in mobile app but tablet not.
I've been comparing and checking all day but cannot spot the issue.
Any ideas will be greatly appreciated (please see screenshots).
Thanks, Mark.p1 (2).pngp2.png

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Hello @Skemaz,

 

I don't see what is causing your issue there, but after triing it on my environment on a test app i have, it worked for me, I noticed that i build some things a bit different, will share it with you, maybe it can be used as a workaround for your problem, or give you fresh ideas to try to fix it, because with 2 photos is hard to understand your context and your needs.

 

 - Instead of filtering the browserGallery onselect property of the TextSearchBox, i do filter it on the "items" property of the BrowserGallery, with code like 

SortByColumns(Search(Filter(Oportunidades;statuscode=1||2; TextInput4.Text; "name"); "name"; If(SortDescending1; SortOrder.Descending; SortOrder.Ascending))

 This is showing only the open opportunities from my Dynamics 365 environment and let you filter them by its name, working both table and phone.

 

- Also notice that i am using TextInput4.Text control instead of TextSearchBox, that was a workaround i used to create my own custom searchbox after deleting the default one from the default browser screen, don't know if that may make it work for you.

 

Hope this helps you fixing your issue,

 

Best regards

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hello @Skemaz,

 

I don't see what is causing your issue there, but after triing it on my environment on a test app i have, it worked for me, I noticed that i build some things a bit different, will share it with you, maybe it can be used as a workaround for your problem, or give you fresh ideas to try to fix it, because with 2 photos is hard to understand your context and your needs.

 

 - Instead of filtering the browserGallery onselect property of the TextSearchBox, i do filter it on the "items" property of the BrowserGallery, with code like 

SortByColumns(Search(Filter(Oportunidades;statuscode=1||2; TextInput4.Text; "name"); "name"; If(SortDescending1; SortOrder.Descending; SortOrder.Ascending))

 This is showing only the open opportunities from my Dynamics 365 environment and let you filter them by its name, working both table and phone.

 

- Also notice that i am using TextInput4.Text control instead of TextSearchBox, that was a workaround i used to create my own custom searchbox after deleting the default one from the default browser screen, don't know if that may make it work for you.

 

Hope this helps you fixing your issue,

 

Best regards

View solution in original post

Many thanks for the solution.

I made a similar mistake previously so I just need to get my mind around where and how to code these things correctly.

Best regards, Mark.

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Kudoed Authors
Users online (35,654)