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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Adding a searchbox int...
Power Apps
Answered

Adding a searchbox into canvas app

(0) ShareShare
ReportReport
Posted on by 52

Hello all,

I've read some articles about my subject, but i can't figure it out. 
I've added a TextSearchBox1 at the upper left (menu) -> If someone typ's here, I want the table to show his request.

crazor123_1-1670776424651.png
The Datatable name is -> (it's in Dutch)

crazor123_2-1670776510107.png
Columnnames are:
Materiaal
Lokaal - verdiep_Kolom1
Locatie_Kolom1
Artikelnr. SAP_Kolom1

Can someone assist me to get this working?

 

Friendly Regars




Categories:
I have the same question (0)
  • SebS Profile Picture
    4,616 Moderator on at

    Hi@crazor123

     

     

    Replace the code in Your data table property Items with the below. Make sure You replace in the code "DataSource" with the name of the SharePoint List that populating this Data table

     

     

     

     

    Filter("DataSource",
    
    IsBlank(TextSearchBox1.Text) || IsEmpty(TextSearchBox1.Text) || 
     StartsWith(
     Materiaal,
     TextSearchBox1.Text
     ) ||
     StartsWith(
     'Lokaal - verdiep_Kolom1',
     TextSearchBox1.Text
     ) ||
     StartsWith(
     Locatie_Kolom1,
     TextSearchBox1.Text
     ) ||
     StartsWith(
     'Artikelnr. SAP_Kolom1',
     TextSearchBox1.Text
     )
    )

     

     

     

     

    This will search base on whatever user Start typing and it's Delegable so when your data will grow it will not cause any issue only limitation is when someon know only middle or end of whatever they looking for.

     

    double check if all columns names are correct if not just correct them

     

     

  • crazor123 Profile Picture
    52 on at

    Hello @SebS ,

    Thx for the help & code. I've checked the code but still it isnt working.
    Am I adding it correctly? in the FX bar?

    crazor123_0-1670779859057.png

    Friendly Regards


     

  • SebS Profile Picture
    4,616 Moderator on at

    @crazor123 

     

    you missing ) at end

     

     

     

    Filter("DataSource",
    
    IsBlank(TextSearchBox1.Text) || IsEmpty(TextSearchBox1.Text) || 
     StartsWith(
     Materiaal,
     TextSearchBox1.Text
     ) ||
     StartsWith(
     'Lokaal - verdiep_Kolom1',
     TextSearchBox1.Text
     ) ||
     StartsWith(
     Locatie_Kolom1,
     TextSearchBox1.Text
     ) ||
     StartsWith(
     'Artikelnr. SAP_Kolom1',
     TextSearchBox1.Text
     )
    ) <----

     

     

    and if You get an error please let me know what it say

  • SebS Profile Picture
    4,616 Moderator on at

    @crazor123 

     

    Do your SharePoint List is called "datatabel" ?

  • crazor123 Profile Picture
    52 on at

    The Sharepoint list name is 

    crazor123_3-1670781811529.png

     


    The name in the app is: 

    crazor123_1-1670781646129.png

     



    crazor123_2-1670781646130.png

     


    I will try different names and see what comes up, i'll give u a thumb for the help already.
    I need some more experiences in this stuff.

    Thx for the help already and happy holidays

     

  • SebS Profile Picture
    4,616 Moderator on at

    @crazor123 

     

    Please use the code below the name of Your Data Source is 'Inventaris SY7' at last that's what your Item property showing and that is what You need to use where I ppointed to "Data Source"

     

    Try this code and make sure you copy everything

     

     

    Filter('Inventaris SY7',
    
    IsBlank(TextSearchBox1.Text) || IsEmpty(TextSearchBox1.Text) || 
     StartsWith(
     Materiaal,
     TextSearchBox1.Text
     ) ||
     StartsWith(
     'Lokaal - verdiep_Kolom1',
     TextSearchBox1.Text
     ) ||
     StartsWith(
     Locatie_Kolom1,
     TextSearchBox1.Text
     ) ||
     StartsWith(
     'Artikelnr. SAP_Kolom1',
     TextSearchBox1.Text
     )
    )

     

     

  • crazor123 Profile Picture
    52 on at

    I double checked everything, it keeps saying there is an error in the formula.
    (Its in Dutch, try to modify the formula) 

    crazor123_0-1670783384295.png

     

  • SebS Profile Picture
    4,616 Moderator on at

    @crazor123 

     

    Try to put InventarisSY7 instead or show in what line the error happens, the only thing that can make an error there will be the wrong data source name or wrong column name columns that need to be named the same as in SharePoint when they were created.

     

    in the moment when you start writing Inventories IntelliSense of formula bar will point out to right name for data source it's same for the columns when you think the name of the column is wrong start writing it names and you will see intelisense start pointing to the right one that will help you to correct any code with right names

     

  • crazor123 Profile Picture
    52 on at

    crazor123_0-1670786494748.png

    I'm going to make a ticket for the local IT department, can't get it to work, thankyou for your time and help, as soon as I hear from them i'll place the solution/correction here.

    Grtz

  • SebS Profile Picture
    4,616 Moderator on at

    @crazor123 

     

    Is there any error? I think it must have something to do with your column names can you do screen of your SharePoint column headers

     

    Below table with 3 column search the same code

     

    SebS_0-1670789036977.gif

     

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard