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

How selected item value gets passed to other screens

I am trying to figure out how and where the item selected value from a gallery gets passed to a display or edit form. How does it know which one is selected.

 

On a vanilla template app the Edit button code is

EditForm(EditForm1);Navigate(EditScreen1, ScreenTransition.None)

I don't see it happening there.

 

I get that there is an isSelected attribute, but am not putting it all together. 

 

Another example:

BrowseScreen1 Shows all items in the SP List using a gallery.

When the arrow > icon is clicked for an item it goes to the Detail screen for the item selected

The code for that button is

Navigate(DetailScreen1, ScreenTransition.None)

I don't see it happening there. 

 

Can you help me understand so that i can apply it to my project?

Thanks

Schuess

 

4 REPLIES 4
schuess
Level: Powered On

Re: How selected item value gets passed to other screens

I think i might have figured it out myself. Confirm?

 

browsegallery.jpg

schuess
Level: Powered On

Re: How selected item value gets passed to other screens

The thing is, I want to capture a specific value from the gallery item and pass it to different screen.

 

If the gallery item is showing a sharepoint item with say 3 fields

1. Title

2. Price

3. Model#

 

I want to grab the model number value of the item selected and pass it to a screen with a edit form from a different data source.

 

Is that possible?

Community Support Team
Community Support Team

Re: How selected item value gets passed to other screens

Hi schuess,

 

I think this cannot be done so far. You cannot capture the value from a data source to another editform with another data source. This is not possible for now.

 

You could post this idea in the PowerApps Ideas forum, so it might be considered for future releases.

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
nickduxfield
Level 8

Re: How selected item value gets passed to other screens

Add a context variable or Global varibale into the navigate function.

Navigate(NextScreen,ScreenTransition.None,{CatchMyVariable:XXXX})

 

On the next screen, I use the varibale in different places, ie,

  • a default field
  • visible property
  • button property
  • another formula

Works.

 

Look at Types of Varibale here

https://docs.microsoft.com/en-us/powerapps/working-with-variables

See the Deep Dive Session here: 

https://youtu.be/14yqmGBY12I?t=2544

Directs you to the relevant video section.

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

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