web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : JBzYM3PMBnJW5hSnVT9kFg
Power Apps - Building Power Apps
Answered

One Canvas app with two screens (New and View). When i press the link (with no ID to go to New) otherwise when there is ID to go to View

Like (0) ShareShare
ReportReport
Posted on 25 Jun 2021 17:31:55 by 247

hello all,

 

i have a canvas app with a single screen named : "Screen" and there is a form named "New"

i have a canvas app with a single screen named : "Screen" and there is a form named "View".

 

  • At the APP of the View i have: If(!IsBlank(Param("ID")),Set(varID, Param("ID"));Navigate(Screen,ScreenTransition.Fade))
  • At the form "View" on the item i have: If(!IsBlank(Param("ID")),LookUp('ListName',ID = varID))

and the reason is when i call the app to open the item which i want to View.

 

what i would like to do is to create a new canvas all which will combine both screens "New" and "View". When they press the link to go to new but when they press an item with ID to then go to the "View" screen.

 

i believe i have to change the APP formula but i dont know how and this is what i have tried till now:

 

If(!IsBlank(Param("ID")),Set(varID, Param("ID"));Navigate(ScreenNew,ScreenTransition.Fade);
LookUp('Desktops Laptops',ID = varID)); Navigate(ScreenView,ScreenTransition.Fade);

 

thank you

I have the same question (0)
  • kouliscon Profile Picture
    247 on 25 Jun 2021 at 18:17:31
    Re: One Canvas app with two screens (New and View). When i press the link (with no ID to go to New) otherwise when there is ID to go to View

    @ganeshsanap worked as a charm... thank you

  • Verified answer
    ganeshsanap Profile Picture
    1,551 on 25 Jun 2021 at 17:48:37
    Re: One Canvas app with two screens (New and View). When i press the link (with no ID to go to New) otherwise when there is ID to go to View

    @kouliscon Follow below approach:

    Considering you have two screens: ScreenView ScreenNew. Use below formula in onStart property of app: 

     

    If(!IsBlank(Param("ID")), Set(varID, Param("ID")); Navigate(ScreenView, ScreenTransition.Fade), Navigate(ScreenNew, ScreenTransition.Fade));

     

    OR 

    If(IsBlank(Param("ID")), Navigate(ScreenNew, ScreenTransition.Fade), Set(varID, Param("ID")); Navigate(ScreenView, ScreenTransition.Fade));

    Use below formula in item property of form control on ScreenView screen: 

     

    LookUp('Desktops Laptops', ID = varID))

     


    Please click Accept as solution & 👍 if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it ‌‌👍

  • TheRobRush Profile Picture
    11,121 Moderator on 25 Jun 2021 at 17:47:57
    Re: One Canvas app with two screens (New and View). When i press the link (with no ID to go to New) otherwise when there is ID to go to View

    If you just want two forms on one screen, but one or the other visible at a time dependent on a button press, have your buttons press Set() a variable, lets say Set(whichformVar, "ViewMode") or Set(whichformVar, "EditMode")then have the visibility of each form set to If(whichformVar="ViewMode",true) or If(whichformVar="EditMode",true).

     

    If thew two forms are identical other than the view/edit mode, you could also just set whichformVar to edit or display, and have the forms default mode set to whichformVar and have one form only that can be botha  display and edit form dynamically

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete