cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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.
Anonymous
Not applicable

Thank you very much I will check it.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,266)