Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by 35

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

  • Skemaz Profile Picture
    35 on at
    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.

  • Verified answer
    Community Power Platform Member Profile Picture
    on at
    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,522 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,890 Most Valuable Professional

Leaderboard