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 / One Canvas app with tw...
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

(0) ShareShare
ReportReport
Posted on 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

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    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

  • Verified answer
    ganeshsanap Profile Picture
    1,555 on at

    @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 ‌‌👍

  • kouliscon Profile Picture
    247 on at

    @ganeshsanap worked as a charm... thank you

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard