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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Search box in header c...
Power Apps
Answered

Search box in header component not detected in gallery

(0) ShareShare
ReportReport
Posted on by 15

Good day,

 

I am new to Power Apps and will be using the platform to build a scheduler desktop app for my company.

At the moment I am experimenting in building a header component which contains different controls to serve later as means to filter information in a gallery and flow through the app (of course some or a lot of the controls will go and some will be kept).

 

The problem I am trying to resolve now is that it seems that my gallery doesn't detect the search box within the header component.

 

In the gallery I tried to set "Items" to the following function:

Search(Table1_7,searchTxtBx.Text,"User Name")         // "searchTxtBx" is my search box in the header component

 

I also tried to look for the parent of "searchTxtBx" which in this case is the "schedulerHeader" component like this:

Search(Table1_7,schedulerHeader.searchTxtBx.Text,"User Name")          

 

Both options don't work.

See attached.

 

Any help is appreciated.

 

Thank you!

 

Invalid_Arg_Search_Box.PNG

 

 

  

 

 

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @kkpasi 

    Components do not expose their controls to the app.  

    The concept is that you would provide a property on your Control to expose whatever you like.

    So, in your case, you would create a new Parameter to your Component as an Output parameter that would be a Text.  Let's call it SearchText.

     

    Then you would set that SearchText Parameter in the component to: searchTxtBx.Text

     

    Then, in your app, you would refer to: schedulerHeader.SearchText to get what that control has in it.

     

    I hope this is helpful for you.

  • kkpasi Profile Picture
    15 on at

    Good morning @RandyHayes ,

     

    This absolutely worked.

    Thank you for the timely response and have a great one!

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @kkpasi 

    Happy to help!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard