Tulsa PowerApps and Flow User Group

Please login or click SIGN UP FOR FREE to create your PowerPlatformUG account to join this user group.
Expand all | Collapse all

Navigating between screens

  • 1.  Navigating between screens

    Bronze Contributor
    Posted Jul 31, 2019 12:28 PM
    Hey there!

    I am back still working on my app and I have 4 screens.
    1st screen with buttons that navigate to the next screen.
    The problem I am having is on edit. I am not sure how to set it up so that it pulls up the correct screen and data for that record.

    OnNew: Navigate(ScrSelection, ScreenTransition.None); Set(varFormViewMode, "new");
    OnEdit: it is currently set to: EditForm(EditForm3);Navigate(ScrSQLServer);Set(varFormViewMode, "edit"); but this is when i was referencing 1 screen.

    I believe there should be an IF statement but I am not sure what all needs to be included. 



    ------------------------------
    Tangie Scott
    SharePoint Admin
    Tulsa OK
    ------------------------------


  • 2.  RE: Navigating between screens

    Bronze Contributor
    Posted Jul 31, 2019 01:08 PM
    Are you wanting the app to always open up to that landing screen with the buttons regardless if they are adding a new item or editing an existing?  Or are you trying to get it to where if they are editing an item it goes directly to your edit screen?

    ------------------------------
    April Dunnam
    ------------------------------



  • 3.  RE: Navigating between screens

    Bronze Contributor
    Posted Jul 31, 2019 01:19 PM
    I want it to go directly to the edit screen for that particular screen being worked.

    ------------------------------
    Tangie Scott
    SharePoint Admin
    Tulsa OK
    ------------------------------



  • 4.  RE: Navigating between screens

    Bronze Contributor
    Posted Aug 01, 2019 02:01 PM
    What happens with the code as you have it now?  It looks like it should function correctly.  You would want to put in code in the OnEdit property to navigate to the correct screen and then set the Items property of your form control on that screen to the SharePointIntegrationForm1.Selected

    ------------------------------
    April Dunnam
    ------------------------------



  • 5.  RE: Navigating between screens

    Bronze Contributor
    Posted Aug 06, 2019 02:54 PM
    Hey April, ok I do not even know how to explain what is going on.
    I created a new powerapp from a template of the list to see if maybe I could get things working but no luck.
    Current settings
    OnNew: NewForm(SharePointForm1_1); Set(varFormViewMode, "New")
    OnEdit: EditForm(SharePointForm1_1);EditForm(Set(varFormViewMode, "Edit")

    I do have 3 screens, and currently 1 form on each screen.

    Screen1: SharePointForm1_1
    Screen2: SharePointForm1_2

    I figure in the OnEdit I need to tell it somehow to go to that specific form correct? 


    ------------------------------
    Tangie Scott
    SharePoint Admin
    Tulsa OK
    ------------------------------