Notifications
Announcements
No record found.
Hi, looking for a code snippet to handle hiding 3 Sub Grid buttons on the "WorkOrderList" subgrid - the 'Add Existing Work Order', 'Refresh', and 'Run Report' buttons. Looking for Best Practice code with proper syntax, as I have not done this before with JScript. See screencap below for more detail. Thanks in advance!
afaik there is no supported javascript to remove that buttons, however it should be possible to hide them using ribbon workbench
Right. I had tried Ribbon Workbench and the buttons were not hiding, also I had existing code already that was showing/hiding tabs onLoad, so I was going to add code to that event. Thanks.
Here are screenshots of the hide actions I took in Ribbon Workbench. The is not working as I still see the buttons. Any idea why this is not working? If it continues to fail, I will need JScript.
-Added the Entity (Master Purchase Order)
-Chose buttons, right-click - "Hide"
-Publish
-Go back to form, refresh, and buttons still appear...
Hi Chrisbra22 ,
You can hide the button from the ribbon workbench as shown in the below screenshot
If Hide functionality is unavailable, add the below code to handle visibility.
function visibility()
{
return false;
}
For more details: powerplatformaw.blogspot.com/.../how-to-show-and-hide-button-based-on.html
Thanks. The "Hide" option is there (see my screenshots above). But it is not working after a publish of the solution in Ribbon Workbench. I am not sure why.
Hello,
The answer is quite obvious. You customized the Subgrid's Ribbon of the entity "Master Purchase Order" and you want to hide buttons of the ribbon of the "Work Order" entity - that's what you missed. Good luck.
OK. I assumed since the subgrid is contained in the Master Purchase Order entity that the solution needed that entity. I will try again.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 70 Super User 2025 Season 2
Gerardo RenterÃa Ga... 33 Most Valuable Professional
Daniyal Khaleel 32 Most Valuable Professional