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

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
Super User

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
Super User

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!

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!

Users online (5,567)