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 / Unable to search a list
Power Apps
Unanswered

Unable to search a list

(0) ShareShare
ReportReport
Posted on by 24

So, I have a list that is bringing data from a sharepoint list. I have it set up so that the title and subtitle are shown in the list. The columns that are used for the data Ttile being the Title column and subtile being the When column.

 

I have placed a text input, and used "Search(Inventory,TextInput1.Text,Title)" it all works until i get tot he column part of the function where it does not find the column, I have also tried to use the lable where the Title will be and it throws an error saying the the data type should be control.

 

If anyone has any ideas that would be great, and feel free to ask if you want more information.

 

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,989 Moderator on at

    @AaronHB 

    One thing that I noticed right away was the quotes are missing from your 3rd argument passed to SEARCH.  Try this and let me know if it works. 

     

    Search(Inventory,TextInput1.Text,"Title")

     

    ---
    Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."

  • AaronHB Profile Picture
    24 on at

    Unfortunately this did not work, Do I have to link the gallery list to the search or will it do it automatically?

    2019-10-18_09-58-18.png

    @mdevaney 

     

    Aaron

     

  • v-monli-msft Profile Picture
    on at

    Hi @AaronHB ,

     

    The formula that @mdevaney  provided should work. Did you make sure that your search box control's name is TextInput1? And the column that you are searching on is named "Title"?

     

    Regards,

    Mona

  • AaronHB Profile Picture
    24 on at

    Well the Column that I want to search is called Barcode but when I enter that it says that it does not exist as a column, yet when I scan I use the column barcode. And yes the text input is correct.

    msedge_2019-10-18_10-39-31.png

    msedge_2019-10-18_10-39-52.png

    @v-monli-msft 

    Aaron

     

  • mdevaney Profile Picture
    29,989 Moderator on at

    What is "Inventory"?  A Sharepoint List or a Collection?  If its a Sharepoint list please take a screenshot showing us the Barcode column.  If its a Collection, please take a screen shot of the "Collections" menu screen showing the Barcode column.  Now that the syntax of the formula is correct we need to understand why Barcode is not in Inventory.

  • AaronHB Profile Picture
    24 on at

    @mdevaney 

     

    It is a sharepoint list.

    msedge_2019-10-18_14-08-53.png

     

    Aaron

  • mdevaney Profile Picture
    29,989 Moderator on at

    @AaronHB 

    Was the Barcode column added after your app was designed?  Please try a refresh of the datasource on your left-side menu.  This is usually the cause of the same problem for me.

     

    I have a few more questions if my Refresh suggestion does not work

    * What data type is the monitor column?

    * Can you please show me TextInput1 in a screenshot?

  • AaronHB Profile Picture
    24 on at

    @mdevaney 

     

    I have refreshed it multiple times and it still does not show.

     

    The barcode column is a single line of text.

     

    msedge_2019-10-18_14-23-52.png

  • Verified answer
    mdevaney Profile Picture
    29,989 Moderator on at

    @AaronHB 

    The screenshot is quite helpful.  I think I know the issue.  You are using this code in the Default property of TextInput1.  Search returns a table but a Textbox only accepts a single text value.

     

    Search(Inventory,TextInput1.Text,"Title")

     

    To show the results of a search in the gallery please remove this line from the Default property of TextInput1 and put it in the Items property of your gallery instead.

     

    ---
    Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."

     

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard