cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JR-BejeweledOne
Super User
Super User

Start Screen Navigate

Since navigate in App OnStart has been disabled in favor of the StartScreen property, how do we do a conditional navigation based on information that is being pulled in the OnStart?



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.
1 ACCEPTED SOLUTION

Accepted Solutions
JR-BejeweledOne
Super User
Super User

This is what I ended up doing and it works.

 

If( !IsBlank(LookUp(WordsScore, Title = User().Email).Level), Game, Tutorial)



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

View solution in original post

5 REPLIES 5
gabibalaban
Dual Super User
Dual Super User

@JR-BejeweledOne ,

 

This note from documentation will clarify your question:

gabibalaban_0-1635795993894.png

Can you give us more intel about your scenario ?

v-bofeng-msft
Community Support
Community Support

Hi @JR-BejeweledOne :

As @gabibalaban said the variables and collections created in OnStart are not available in StartScreen property.

At present, only some arithmetic logic in OnStart can be put into StartScreen, for example:

If(YourJudgmentCondition,Screen1,Screen2)

Best Regards,

Bof

I am working on a game.   The game is saving the player's level and score to a back end data source.   The goal with the start screen is to skip the tutorial and go straight to the game board screen at the level they were at the last time they played if the player has an entry in the data source.

 

What concerns me about this new way of navigating to the StartScreen, is that depending on their connection they might be taken to an empty game screen while waiting for the OnStart to load.    There aren't many and they load quickly but even so, it sort of defeats the purpose of conditional navigation.    No one wants to go to a tutorial every time they open a game but it's necessary the first time. 



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

@JR-BejeweledOne ,

based on your scenario, the following formula used in StartScreen property of the app will be suitable to redirect the user to the right screen:
With({currentUser:User().Email},

If(

     LookUp(
          ScoreDataSource,

          user=currentUser,

          true),

     GameScreen,

     TutorialScreen

)

JR-BejeweledOne
Super User
Super User

This is what I ended up doing and it works.

 

If( !IsBlank(LookUp(WordsScore, Title = User().Email).Level), Game, Tutorial)



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (1,852)