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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (906)