web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Text Search Box

(0) ShareShare
ReportReport
Posted on by 221

Good Day,

 

Can anyone offer a solution as to how to format the Text Search Box to Search for Street Name, House Number and/or Work Order Number? 

 

Shaguar357_0-1706906867506.png

Shaguar357_1-1706906970461.png

 

Thank you!

Categories:
I have the same question (0)
  • zuurg Profile Picture
    535 Super User 2024 Season 1 on at
    Re: Text Search Box

    You need to change your Gallery's Items property to do this.

    Search(Sort('DailyWorkSheet', 'Date Installed', Descending),TextSearchBox1.Text, thecolumnsyouwanttosearchin)

     

  • Shaguar357 Profile Picture
    221 on at
    Re: Text Search Box

    Hi @zuurg 

     

    I tried that and received the following:

     

    Shaguar357_0-1706908727690.png

    Any other advice?

    Thanks!

  • zuurg Profile Picture
    535 Super User 2024 Season 1 on at
    Re: Text Search Box

    Just typing Date Installed as the column name won't work.  I think it has to be enclosed in double quotes, and if there's a space in the column name, you might have to convert that space to _x0020_.   Also, if you're searching for a date and the Date Installed column is a DateTime type, you're going to need to convert what you're searching for to a DateTime type.

     

    I suggest maybe starting with a Text column type to see how it should be working.  

  • Micky Profile Picture
    365 Moderator on at
    Re: Text Search Box

    Try using the code below, this will prompt delegation warning, I suggest you store your data source in a collection to prevent/remove delegation warnings, but overall this should work.

     

    Filter(
     Sort(DailyWorksheet,'Date Installed',SortOrder.Descending),
     Or(
     searchTextInput.Text in 'Street Name',
     searchTextInput.Text in Text('House Number')//Converted House Number to Text(),
     searchTextInput.Text in Text('Work Order Number')//Converted Work Order Number to Text()
     )
    )

     

     

    Actual Result

    MMPoweR_1-1707039751948.png

     

  • Shaguar357 Profile Picture
    221 on at
    Re: Text Search Box

    Good Afternoon @zuurg 

     

    I apologize for just getting back with you.  I made the changes you suggested and it seems to be getting closer or at least there are less errors showing up:

     

    Shaguar357_3-1707160628641.png

    Shaguar357_2-1707160600350.png

     

    Any idea how to get the data to show in the app now?

    Thanks again for your help!

     

     

     

  • zuurg Profile Picture
    535 Super User 2024 Season 1 on at
    Re: Text Search Box

    Please show the actual error where the code is underlined in red.  The Descending part needs to be SortOrder.Descending - the SortOrder part disappears when the descending part isn't selected.  

     

    Is Street a Text column?

  • v-qiaqi@microsoft.com Profile Picture
    on at
    Re: Text Search Box

    Hi @Shaguar357,

    Have you solved your problem?

    I suggest you use the SortByColumns():

    SortByColumns(DailyWorksheet,"Street",SortOrder.Descending)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard