cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Anonymous
Not applicable

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

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
Highlighted
Anonymous
Not applicable

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

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

Highlighted
Frequent Visitor

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

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,748)