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 III
Dual Super User III

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 III
Dual Super User III

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

Bartola
Regular Visitor

Thank you very much I will check it.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (69,500)