Skip to main content
Community site session details

Community site session details

Session Id : RJx36RJFUcUk3tS2268zu+
Power Apps - Building Power Apps
Unanswered

Search in a TextsearchBox with Errors

Like (0) ShareShare
ReportReport
Posted on 23 Feb 2023 09:13:26 by 47

Hello,
I just do not get any further. My sharepoint list consists of text ( Titel, Adresse...) and number (Nummer) columns.
My BrowseGallery1 query is ok, if I just search for the name from the Title column.(Textsearchbox1)

 

SortByColumns(Filter([@'SchlĂĽsselraum.iqy-80eafb9d-cf8e-4864-898a-d3b702839f91'];
StartsWith(Title; TextSearchBox1.Text)); "Title"; If(SortDescending1; Descending; Ascending))


To search by number I use the sharepoint list, via the filter function.
That must also work in the Power App, right?
So I want to search for name, address and number in Textsearchbox1.

 

Is that possible???

 

In the edit screen is a query like
DataSourceInfo([@'SchlĂĽsselraum.iqy-80eafb9d-cf8e-4864-898a-d3b702839f91'];DataSourceInfo.DisplayName;"field_6")
field_6 denotes a column number or field number. Where are these Datafields displayed like this?

What is field_5? Where can i find it?

 

Best regards

 

Categories:
  • Rallf Profile Picture
    47 on 02 Mar 2023 at 08:57:21
    Re: Search in a TextsearchBox with Errors

    Hello,

    at first... sorry for my bad english. I try it.

    My query for keys works with following:

    SortByColumns(Filter([@'SchlĂĽsselraum.iqy-80eafb9d-cf8e-4864-898a-d3b702839f91']; Nummer= Value(TextSearchBox1.Text) || StartsWith(Title; TextSearchBox1.Text)); "Title"; If(SortDescending1; SortOrder.Ascending))

    but not for Names (Title) anymore.

     

    With

    SortByColumns(Filter([@'SchlĂĽsselraum.iqy-80eafb9d-cf8e-4864-898a-d3b702839f91']; StartsWith(Title; TextSearchBox1.Text)); "Title"; If(SortDescending1; SortOrder.Ascending)) works the Search for names

     

    How can i combine both queries???

     

    Thanks Rallf

     

     

     

     

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on 28 Feb 2023 at 12:56:11
    Re: Search in a TextsearchBox with Errors

    @Rallf

    With({_items: If(IsNumeric(TextSearchBox1.Text); 

    Filter([@'SchlĂĽsselraum.iqy-80eafb9d-cf8e-4864-898a-d3b702839f91']; Nummer= Value(TextSearchBox1.Text); 

    Search([@'SchlĂĽsselraum.iqy-80eafb9d-cf8e-4864-898a-d3b702839f91']; TextSearchBox1.Text; 

    "Adresse" ; "Title")

    )}; SortByColumns(_items;"Title"; If(SortDescending1; Descending; Ascending)

  • Rallf Profile Picture
    47 on 28 Feb 2023 at 10:26:57
    Re: Search in a TextsearchBox with Errors

    Hello

    SortByColumns(Filter([@'SchlĂĽsselraum.iqy-80eafb9d-cf8e-4864-898a-d3b702839f91']; Nummer=Value(TextSearchBox1.Text)... thats ok. Ich can type a number in the TextSearchBox1 field and the result is fine. The Rest 

    || StartsWith(Adresse; TextSearchBox1.Text) ||
    StartsWith(Title; TextSearchBox1.Text)

    ); "Title"; If(SortDescending1; Descending; Ascending)) is without a result and without any errors.

  • Rallf Profile Picture
    47 on 23 Feb 2023 at 09:56:30
    Re: Search in a TextsearchBox with Errors

    @Drrickryp 

    without Errors, the field is only blank

  • Rallf Profile Picture
    47 on 23 Feb 2023 at 09:55:05
    Re: Search in a TextsearchBox with Errors

    Thanks Drrickryp,

    searching by number works, but not by name anymore.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on 23 Feb 2023 at 09:35:22
    Re: Search in a TextsearchBox with Errors

    @Rallf

    SortByColumns(Filter([@'SchlĂĽsselraum.iqy-80eafb9d-cf8e-4864-898a-d3b702839f91']; Nummer=Value(TextSearchBox1.Text)  || StartsWith(Adresse; TextSearchBox1.Text) ||
    StartsWith(Title; TextSearchBox1.Text)

    ); "Title"; If(SortDescending1; Descending; Ascending))

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!