Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Text Search Box

Posted on by 211

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:
  • Re: Text Search Box

    Hi @Shaguar357,

    Have you solved your problem?

    I suggest you use the SortByColumns():

    SortByColumns(DailyWorksheet,"Street",SortOrder.Descending)
  • zuurg Profile Picture
    zuurg 522 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?

  • Shaguar357 Profile Picture
    Shaguar357 211 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!

     

     

     

  • MMPoweR Profile Picture
    MMPoweR 308 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

     

  • zuurg Profile Picture
    zuurg 522 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.  

  • Shaguar357 Profile Picture
    Shaguar357 211 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
    zuurg 522 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)

     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard