I'm stuck on attempting to get search results to return "Not item to display" when there are no records in a SharePoint list that match a search query. I get "No item to display" in the studio when previewing the app, but so far, in the office.com PowerApps app, the Windows desktop PowerApps app, and iPhone PowerApps app, I get a "Getting your data ..." and I never get a "No item to display". Please see screenshots below:
What I get in the studio.
What I get everywhere else.
The search function does work on all partial and full matches as best I've been able to test, but this one has me stumped. What am I missing?
Thanks for the quick response @mdevaney. Here's my Item property for the form:
SitesGallery (on the left in the above pictures) is the name of my Gallery SharePoint list.
That's interesting, @mdevaney; I'm guessing, perhaps, the intended operation of the Gallery-Form combo was to have the gallery on one screen and the form on a different screen, not combined on one screen as I have. I exactly copied the coding and structure of this particular portion of the FlooringEstimates sample app; however, that app has the gallery on one screen and the form on another, so I'd have to do more surgery on that sample app than I'd care to to test my theory. A workaround for my issue I seem to have stumbled on, but seems a bit crude, is to have a label positioned on top of where "Getting your data ..." appears and have it's Visible and Text properties tied to an If(IsEmpty(Title1) statement; Title1 being the item label in my SitesGallery. Any other thoughts on how to achieve what I'm after?
Hi @cweaver :
The combo of Gallery-Form can be in the same screen or in different screens.
I guess the cause of the problem lies in the items property of the gallery or the datasource property of the form.If their data sources are different, it is easy to cause this error.
Chould you show me:
I will confirm @mdevaney 's thoughts - I have exactly what you have on a a couple of "dashboard" apps and as you cannot "pre-select" a gallery item, I use the following workaround
Firstly, the Item of my form is
Filter( List, ID=vID )
The OnSelect of the Gallery
Then the OnVisible of the screen
Set( vID, First(GalleryName.AllItems).ID )
so the first item in the gallery is displayed in the form when the screen is opened.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
We're excited to announce our first cross-community 'Can You Solve These?' challenge!
Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.
We are excited for the next Super User season.
FIll out a quick form to claim your community user group member badge today!
Features releasing from October 2020 through March 2021