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 / How to enable pre-load...
Power Apps
Unanswered

How to enable pre-load data for next screen

(1) ShareShare
ReportReport
Posted on by 18

Hi All,

 

i'm building some apps where some of the formula would be like this.

 

If(IsBlank(Question1_1.Text) = false, Navigate(Question_SafeandClean,ScreenTransition.UnCover), If(IsBlank(Question1_2.Text) = false, Navigate(Question_FoodDefence,ScreenTransition.UnCover),If(IsBlank(Question1_3.Text) = false, Navigate(Question_Waste,ScreenTransition.UnCover), If(IsBlank(Question1_4.Text) = false, Navigate(Question_Pest,ScreenTransition.UnCover), If(IsBlank(Question1_5.Text) = false, Navigate(Question_Utilities,ScreenTransition.UnCover), If(IsBlank(Question1_6.Text) = false, Navigate(Question_SafeWork,ScreenTransition.UnCover), If(IsBlank(Question1_7.Text) = false, Navigate(Question_Chemical,ScreenTransition.UnCover), If(IsBlank(Question1_8.Text) = false, Navigate(Question_Emergency,ScreenTransition.UnCover), If(IsBlank(Question1_9.Text) = false, Navigate(Question_HighRisk,ScreenTransition.UnCover), Navigate(SummaryScreen,ScreenTransition.UnCover))))))))));

 

It basically filtering the list of questions in the next screen once i click the submit button in the previous screen, once clicked it would check the next available question, the screen with no questions would be skipped.

however the problem once we start to use it in mobile apps sometimes the screens that had questions in it are not finished load the data, creating the logic that this screen "not having a question" then apps would skip that screen.

 

Is there any way for me to workaround on this? Maybe make the apps to load all the data in every screen when start the apps?

 

Thanks in advance for your help!

 

Categories:
I have the same question (0)
  • Pro_User_365 Profile Picture
    546 on at

     

    Hello @Ilhamsyah ,

    I understand you're looking to preload data for screens in your PowerApps application to ensure that data is ready when a screen is navigated to. Here's a succinct solution:

    To preload data, you can utilize the App.OnStart event to load all necessary data into global variables or collections. This will load the data when the app starts rather than at the time of navigation. Here’s an example:

    // In App.OnStart
    ClearCollect(GlobalQuestions, DataSource);

    Replace DataSource with the source of your data.

    Then, use a context variable set to false by default and switch it to true after data is loaded on the screen's OnVisible property:

     

    // In Screen's OnVisible
    Set(IsDataLoaded, false);
    // Your data loading logic
    Set(IsDataLoaded, true);

    When navigating, include a check to ensure IsDataLoaded is true:

    If(
     IsDataLoaded && !IsBlank(Question1_1.Text),
     Navigate(Question_SafeandClean, ScreenTransition.UnCover),
     // ... other conditions
    );

    With this approach, you ensure the data is ready and accessible before the user navigates through the screens, thus preventing screens from being skipped due to unloaded data.

    Best regards,

     

  • Ilhamsyah Profile Picture
    18 on at

    Hi @Pro_User_365 ,

     

    thanks for helping and sorry for delay reply.

    i've already tried the coding and it seems that it still had some screen skipped due to data is not loaded yet.

     

    for this part : 

    // In Screen's OnVisible
    Set(IsDataLoaded, false);
    // Your data loading logic
    Set(IsDataLoaded, true);

     i'm type all the coding in the onvisible property of my home screen like this, is this correct?

    Ilhamsyah_0-1703838015117.png

     

    and this is my coding for the navigation 

     

    Thanks in advance, and Happy New Year!

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard