cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Automate2create
Helper II
Helper II

Edit Gallery

Hi there

 

Can I edit a gallery directly without having to use forms?

I have a gallery built off a collection. I want to be able to edit the gallery and then patch the data to a table (dataverse)

 

This is the gallery

Automate2create_0-1651220386505.png

I want to be able to click on the pencil and edit any thing in the row (to start with - then I might try to edit individual fields).

This is the display mode properties for the gallery

Automate2create_1-1651220472978.png

 

This is the OnSelect for the pencil icon

 

Automate2create_2-1651220503337.png

 

I know I am missing something somewhere, if anyone can also send me any guides on the internet for editing galleries - directly not through a form, that might help too.

Thanks!

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yujincui-msft
Community Support
Community Support

Hi @Automate2create ,

 

Do you want to create a editable gallery?

Here is a link that might help you:

https://powerusers.microsoft.com/t5/Building-Power-Apps/Power-apps-query/td-p/1489481

 

In addition, if you want to click the icon to make the current row editable, maybe you could try as below.

Set(allowedit,ThisItem.ID)
If(ThisItem.ID=allowedit,DisplayMode.Edit,DisplayMode.Disabled)

vyujincuimsft_0-1651569527461.png

Result Screenshot:

vyujincuimsft_1-1651569586076.png

 

 

Best Regards,
Charlie Choi

View solution in original post

3 REPLIES 3
alaabitar
Solution Supplier
Solution Supplier

Hello,

 

You need also to record the itemid when you click on the Edit button so that you can change to layout to that specific row.

 

Best regards,

Alaa

Hi Alaa

 

There isn't an itemid for the edit button, is that what you meant?  Or did you mean an itemid for something else?

 

Automate2create_0-1651228343825.png

 

v-yujincui-msft
Community Support
Community Support

Hi @Automate2create ,

 

Do you want to create a editable gallery?

Here is a link that might help you:

https://powerusers.microsoft.com/t5/Building-Power-Apps/Power-apps-query/td-p/1489481

 

In addition, if you want to click the icon to make the current row editable, maybe you could try as below.

Set(allowedit,ThisItem.ID)
If(ThisItem.ID=allowedit,DisplayMode.Edit,DisplayMode.Disabled)

vyujincuimsft_0-1651569527461.png

Result Screenshot:

vyujincuimsft_1-1651569586076.png

 

 

Best Regards,
Charlie Choi

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (4,437)