cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mgm05e
Helper I
Helper I

Using a button in a nested gallery to open an edit form?

I am trying to add a button to the top level of a nested gallery that will open an edit form that pulls all data from the data source. I am using nested gallery to group all the data by a unique field so the second gallery has all the records matching that field. The Items in the first gallery uses Choices(Datasource.ID). Normally, I would make the edit form items gallery.selected, but that will not work here since it is only using datasource.ID as data. Is there anyway to do this?

3 REPLIES 3
Drrickryp
Super User
Super User

@mgm05e 

For the item property of the form use LookUp(Datasource, ID = Gallery1.Selected.ID) and match the Datasource in the item property to the Datasource of the form.  

@Drrickryp 

I tried this but it did not work for me. I was ID was not a choice after Gallery1.selected. The only options were Buttons.

Drrickryp
Super User
Super User

@mgm05e 

Please post the items properties of your galleries.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,707)