cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gavinleung
Resolver I
Resolver I

EditForm dynamic items

Hi all, 

 

I'm having the following:

Screen 1 : a Gallery 1 connecting to a Sharepoint List to show the records of today. 

Screen 2: a Gallery 2 connecting to a Sharepoint List to show the records by the date picker

Screen 3: a screen showing the details of the item selected in Screen 1 or Screen 2, and allow the user to edit. I used a EditForm. 

 

But problem comes, the Item of the EditForm can only be either Gallery 1 or Gallery 2. So when I navigate from Screen 2 to 3, a wrong record is shown. 

 

Anyone can show me how it could be done ? (Of cause I know I can create Screen 4, which is having the same content as Screen 3, but pointing to Gallery 2. But I think PowerApps should be more powerful than this...)


Thanks,

Gavin

 

10 REPLIES 10

Hi @v-xida-msft, further to your solution. 

 

If I need to check which gallery is chosen, and do a navigation on different screens. How could it be done? 

 

I have a initial thought of this:

If(_CurrentRecord = BrowseGallery1.Selected, Navigate(BrowseScreen1, Fade), Navigate(BrowseScreen2, Fade)); 

 

There is an error "Invalid Argument Type". 

 

Gavin

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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