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 / Full-text search in Ga...
Power Apps
Answered

Full-text search in Gallery

(1) ShareShare
ReportReport
Posted on by 171

How can I do a full text search on a gallery that is connected to a dataverse table? This contains texts and numbers. For a number like 7459604, I want to find the number in the entry 604 or 745 or even 596.

Categories:
  • shubham_7 Profile Picture
    110 on at

    Hello @alt88 
    You can use the search function in this case i.e Search(Table*, SearchString, Column1 [, *Column2*, ... ] )
    Let me know is helping you or not if yes then accept it as a solution.
    Thank You😊

    Regards 
    Shubham Ghorpade 
    PowerApps Developer.

  • alt88 Profile Picture
    171 on at

    The search is done via an input field and as an error I get: Wrong column Type. Expects text type.

     

    Search('galProjects',inpSearch.Text, "text_projectname", "number_projectnumber")

     

  • shubham_7 Profile Picture
    110 on at

    Hello @alt88  
    Let me know the Datatype of your column by which you want to filter the gallery .

    Thank you.

  • alt88 Profile Picture
    171 on at

    The Datadypes of the columns are text(single line of text) and Whole numbers(none)

  • shubham_7 Profile Picture
    110 on at

    Hello @alt88 
    Create a collection:

    ClearCollect(TableColl,AddColumns(Table2,"OrderID2",Text(OrderID)))

     

    Then change the formula to:
    SortByColumns(
    Search(TableColl, inpSearchText.Text, "OrderI2D"),"OrderID2",Ascending)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it
    Thank you.😊

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @alt88 ,

    Actually the error you get is quite strange if you are using a dataverse table. Are text_projectname and number_projectnumber the logical name of the columns ? It doesn't look like that. 

     

    Can you try this approach ?

    Filter('galProjects',TextInput1.Text in 'text_projectname' || TextInput1.Text in 'number_projectnumber')

     

  • alt88 Profile Picture
    171 on at

    the logical nam is ert_projectname and ert_projectnumber. With your approach i get following error: 

    The requested operation is invalid. Server

    Response: galProjects:

    No function signature for the function with name

    'contains' matches the specified arguments. The function signatures considered are:

    contains(Edm.String Nullable=true, Edm.String Nullable=true).

  • Verified answer
    shubham_7 Profile Picture
    110 on at

    Please follow the above formulas :

    shubham_7_0-1679387005545.png

    shubham_7_1-1679387032867.png

     



    image_2023_03_21T08_20_26_064Z.png
    image_2023_03_21T08_20_49_766Z.png
  • alt88 Profile Picture
    171 on at

    Thanks, it works now, but unfortunately I am still missing a data type. I can't get the data type Yes/No into the new collection.

  • alt88 Profile Picture
    171 on at

    the problem is when I do the search via the collection instead of the table in the dataverse is that I have a column in the gallery where I change an image by onselect to visualise if it was favoured or not (see picture).

    If(ThisItem.Favorit,'Star 24dp_blackOn', 'Star 24dp_black')

    How do I get this value from ThisItem.Favourite (which is yes/no as data type) into the collection and back from the collection to the database?

    Bildschirm­foto 2023-03-21 um 11.27.31.png

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 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard