cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate III
Advocate III

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
Highlighted
Advocate III
Advocate III

Re: How selected item value gets passed to other screens

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

 

browsegallery.jpg

Highlighted
Advocate III
Advocate III

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?

Highlighted
Community Support
Community Support

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
Responsive Resident
Responsive Resident

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (4,508)