Hello Everyone ,
I got one requirement that i need to hide + in sub grid when there is one record active , When there is no record in the subgrid i want + to enable ,
Is there any possibility that i can achieve that , Please help me , If there is any Poc please share it .
I tried to do that with Ribbon Workbench , but I am not find the result
Thanks in Advance
Ramesh
]
*This post is locked for comments
Hi Ramesh,
You can do this with JavaScript, enable rule & ribbon workbench. Create a javascript which will return true false based on your condition i.e. if record exists or not. Than using ribbon workfbench, add enable rule and add call this method.
Refer below links-
ribbonworkbench.uservoice.com/.../121427-enable-disable-a-ribbon-button-dynamically-based-o
msdn.microsoft.com/.../dn932137.aspx
community.dynamics.com/.../count-total-subgrid-records-in-dynamics-crm-using-javascript
Hope this helps.
Hope this helps.
Hi Ramesh,
You can do this without any code using security role by removing create access rights of the entity .
In addition you can also do by adding enable disable rule using ribbon work bench.Check below post-
Refer the below thread:
community.dynamics.com/.../244901
Hiding button using Enable/Display rules in Ribbon workbench is only supported solution.
Any method like getElementById using DOM manipulation in strictly unsupported.
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6