cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bartola
Regular Visitor

Pass argument to another screen

   

Disclaimer: total noob, English not my native language, not a coder*

 

Hi, I am working on school project and he have to make a mock app, my teacher heard about powerapp and students have it for free so here I am.

 

We made a data base in SharePoint, with “login” information and other data of our choosing. To logging, our teacher helps us with the following code:

 

If(user_in.Text in _db.User && pass_in in _db.Password, Navigate(perfil)&&Reset(pass_in)&&Reset(user_in))

 

In 2 labels we add user and password from db and if it matches we go to next screen but I want to take it a bit further: once we hit de button and we goes to next screen, it will open a display form based on the db.User.

 

 

After searching I could find a a way to do it and I hope you can help but please remember I not a coder but I can understand...Stuff.

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

In the Navigate() command you can pass a value as a context variable by placing it in the third parameter position.  Read through this documentation on Navigate() and the linked article on Context Variables at the bottom of the page.  There's a specific example on the page that uses this syntax.

Navigate( Details, ScreenTransition.Fade, { ID: 12 } )

A variable called ID with a value of 12 will be available on the Details screen after navigating to it.

Back and Navigate functions - Power Apps | Microsoft Docs



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Pstork1
Dual Super User
Dual Super User

In the Navigate() command you can pass a value as a context variable by placing it in the third parameter position.  Read through this documentation on Navigate() and the linked article on Context Variables at the bottom of the page.  There's a specific example on the page that uses this syntax.

Navigate( Details, ScreenTransition.Fade, { ID: 12 } )

A variable called ID with a value of 12 will be available on the Details screen after navigating to it.

Back and Navigate functions - Power Apps | Microsoft Docs



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Bartola
Regular Visitor

Thank you very much I will check it.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (4,043)