How to display “empty” gallery when using a Search box

  • How to display “empty” gallery when using a Search box

    Posted by lisa-white on September 30, 2020 at 11:01 am
    • Lisa White

      Member

      September 30, 2020 at 11:01 AM

      This is probably a basic question, but I can’t figure it out.

      I have a Power App form with a Gallery.

      This is the set up:

      • Data source: SharePoint list named PARS
      • Input text box name: txtSearchOpp

      Search by itself works fine using Gallery Items property: Search(PARS,txtSearchOpp.Text, “Title”)

      I don’t want all the records to display in the Gallery before user enters search text.

      I’ve tried at least 20 permutations for the Items property using If, IsBlank, variable, etc. The latest one doesn’t work, so I’m throwing in the towel.

      If(IsBlank(txtSearchOpp.Text),””,Search(PARS,txtSearchOpp.Text, “Title”))
      ?

      ——————————
      Lisa White
      Senior IT Specialist
      Herndon VA
      703-709-7172
      ——————————

    • Warren Belz

      Member

      September 30, 2020 at 5:05 PM

      Hi Lisa,
      Try this

      If(IsBlank(txtSearchOpp.Text),PARS,Search(PARS,txtSearchOpp.Text,"Title"))?
      or

      Filter(PARS,If(IsBlank(txtSearchOpp.Text),true,txtSearchOpp.Text in Title))

      ——————————
      Warren Belz
      Queensland Australia
      ——————————
      ——————————————-

    lisa-white replied 4 years, 11 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘How to display “empty” gallery when using a Search box’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!