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

How to add custom button in subgrid?

Hello everyone,

 

I have a custom entity Documents. 

We have documents subgrid in account entity. I want to add a button in subgrid and download the file from storage location on click of this button. 

 

Can i have custom button in subgrid as shown in below screenshots

a2387003-e229-4878-b8d4-96c48a146f5b.png

 

80d4e4be-2969-446d-a317-a0d3d11ce54f.png

 And on click of this download button, the javascript should run and download the file to local machine. 

 

Is this achievable with standard subgrid? 

 

Thank you.. 

 

1 ACCEPTED SOLUTION

Accepted Solutions
EricRegnier
Super User II
Super User II

Hi @Amruthavarshini,

Yes it's achievable based on you first screenshot, that is, to have the button on top of the subgrid. You can leverage the Ribbon Workbench from XrmToolbox: https://www.develop1.net/public/rwb/ribbonworkbench.aspx to perform the ribbon/button changes.

To have the button placed in a column is not supported. If you absolutely want that then you'll need to revert to PCF to build a custom control: https://docs.microsoft.com/powerapps/developer/component-framework/overview 

Hope this helps!

View solution in original post

1 REPLY 1
EricRegnier
Super User II
Super User II

Hi @Amruthavarshini,

Yes it's achievable based on you first screenshot, that is, to have the button on top of the subgrid. You can leverage the Ribbon Workbench from XrmToolbox: https://www.develop1.net/public/rwb/ribbonworkbench.aspx to perform the ribbon/button changes.

To have the button placed in a column is not supported. If you absolutely want that then you'll need to revert to PCF to build a custom control: https://docs.microsoft.com/powerapps/developer/component-framework/overview 

Hope this helps!

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Users online (2,377)