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 Apps
Unanswered

Load sequence

(0) ShareShare
ReportReport
Posted on by 306

 

I have a simple app, that loads a bunch of records in a gallery on the Start Screen. 

 

When the user searches for records in the gallery and there are no mathcing records, I display this message:

Capture.PNG

using a formula as below on the Visible property:

If(CountRows(Gallery.AllItems) = 0, true, false)

The issue is, that the message displays when the app is loaded, because no records has been fetched by the gallery by then. Is there anyway I can set the sequence of the formulas? E.g., first run the query of the gallery - and afterwards run the formula above?

Categories:
I have the same question (0)
  • Verified answer
    KroonOfficeSol Profile Picture
    587 on at

    @NielsL

     

    This is not possible. You could do several thinks to get this working:

    1) ClearCollect() your table in a collection and add a IF() formula to control your image like:

    If(!OnStartTrue,
    	// do your sequence
    	UpdateContext({OnStartTrue:true})
    )

    Then on you image.visible

    OnStartTrue && CountRows(Gallery.AllItems) = 0

    Yes, lose the IF() here, your condition has true/false as a result.

    2. Add a timer which you tricker on the start off your app. On the Timer.End you set your variable OnStartTrue. Give it 1-2 seconds to give PowerApps the time to load the gallery.

     

    Hope this helps.

     

    Paul  

     

     

  • Nielf Profile Picture
    306 on at

    Thanks for your input, @KroonOfficeSol

     

    Using a timer seems to do the job for me. Thanks. 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard