cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LucianB
Level: Powered On

Pass information from a screen to another

Hello again,

New question - Is there any way to pass a value from a screen to another?

What I need to do is on first screen to select my team number form a drop down box and then navigate to a browse screen to display jobs allocated for that team.

Tables like that:

Teams: TeamID, TeamNo, TeamName

Jobs: JobID, TeamID, JobNo, JobDescription.

 

Thanks!

2 REPLIES 2
hpkeong
Level 10

Re: Pass information from a screen to another

Hi

 

WHen you are using NewForm() and Submit(), these are ALL the Standards Practice.

In Jan 2016 ~ Apr 2016, there are Tutotial about using Context Variable.

Let me share with you to use Navigate(Screen1, Transition, {VarX: ThisItem})

VarX will be carried to next screen for the selected : "ThisItem" or selected items using TablxTeams.TeamID, etc.

This VarX becomes a global variable.

(UpdateContext will only generate LOCAL variable to the screen you resie in).

 

Hope it helps.

hpkeong
Community Support Team
Community Support Team

Re: Pass information from a screen to another

Hi LucianB,

 

My app is based on SharePoint list. Below is my SharePoint list.

teams and jobs.PNG

 

In the app, I add two screens, and connect data source to the SharePoint list.
On Screen1, I add a Dropdown box and set it Items property to the data source ‘teams and jobs’. Then add a button and set its Onselect property as Navigate(Screen2,ScreenTransition.Fade,{Number: Dropdown1.Selected.TeamNo})
On Screen2, add a gallery control, then set its Items property as Filter('teams and jobs',TeamNo=Number). As not all the columns can be shown on the gallery, I add several Text box controls in the gallery to show all the items.

 

Then when I select a TeamNo from the Dropdown list, click the button, I would be navigated to Screen2, and only the according information allocated for that team would be shown on the Screen2.

 

Hope this can also be a reference for you.

 

For more details please refer to this article about Navigate function:
https://powerapps.microsoft.com/en-us/tutorials/function-navigate/


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (3,694)