Announcements
Hi everyone,
I am using CRM online with the 2016 Ribbon Workbench, and was trying to dynamically hide a subgrid's controls (add, remove, etc). Inside the workbench, this involved right clicking the standard buttons "Add" & "Remove" and clicking Customise Command. This added these buttons to the Buttons tab in the Solution Elements table. I tried using the enable rules and display rules to achieve what I wanted, and had to publish the solution to test the changes. After no success, I decided to forget the idea; but now I'm stuck with a new problem : now the Remove button is permanently hidden (meaning when I hover over records in the subgrid - no trash can icon anymore). I have deleted all enable and display rules. I cannot 'uncustomise' these buttons, they remain under the buttons tab, and the only way I can remove them is right-click, delete - I need these buttons, so that is not an option.
This is a bizarre way to get stuck, why am I unable to undo changes to these native buttons? Or even reset them? And why is the Remove button remaining hidden, there are no rules applied to it??
Any help would be greatly appreciated. If I need to elaborate further, please ask.
Thanks,
Calum
*This post is locked for comments
Thanks, Calum! It works for me.
Thanks Calum, this helps
Wow. What a terrible nuisance to have to do this. Delete a few buttons and presto you'll be spending hours trying to restore the toolbar plus combining your new changes.
Hi Aric, thanks for the reply!
Unfortunately this is one of my custom entitites.. that would have been a clever way to fix this for sure.
Calum
So, I have managed to resolve my problem by deleting the buttons under the Buttons tab in the Solution Elements area. This involved right-clicking each customised button, and clicking delete.
I'll just note that these buttons were out of the box buttons and I originally got them under the Buttons tab by right-clicking on them as they appeared in the ribbons above, and selecting customise. After I published the solution some time later, I no longer had the option to uncustomise them. I was worried here, because the only option I had available to remove them from the Buttons tab was right-click then delete. I tried this, and they disappeared completely from the ribbon. I made a back-up right before doing this, to see if these out of the box buttons would really in fact be removed from the ribbon permanently (I hoped not), but it turns out they were simply restored to their original default state - reloading the solution in the ribbon workbench showed them again.
In short: if I have "customised" an out of the box button, and click 'delete' to remove it from the Buttons tab, it will not actually delete the out of the box button, it will simply restore them.
Although I think stumbling into this situation is not a very intuitive characteristic of the ribbon workbench, and my fixing it was even more confusing (to me at least), I will verify Guillaume Domont's answer - because a backup would have saved all this hassle :)
Calum
If this is from a system (OOB) entity, you can make a backup of the ribbon customization (just export the entity without forms, views, etc...), and import it back on top of your existing entity. This will revert everything to the OOB status.
Hi RuanZhao, thanks for the reply.
This work is being done in my Sandbox environment, but there is no current counterpart for it in our Production environment. I've had to mess with the XML at the moment, but I am finding some success there... I think I may have solved the problem...
Calum
Hi,
If you doesn't have a back up of the solution,I guess it is not the productional eviroment.I mean you must have an environment or organiztion for developing or testing.If you do have,export the solution from the other environment or organization and then import it to the organization you want to reset.
The other way runs with high tech and risk. The ribbon style or rules is organized by XML.You can edit the XML by coping native sections from another solution XML that may be downloaded from the internet .
Hi Giullaume,
No unfortunately I did not back-up prior to this particular modification. I wish I did :) I need to enable the remove button somehow.
Calum
Hi,
don't you have a back of your solution? Ribbonworkbench recommands to one every time you do a Ribbon modification.
If yes import the old solution and it will overwrite all your changes(ribbon, form, ...). I hope you did create a seperate solution for the ribbon customization :) else it will be really complicated for you.
André Arnaud de Cal...
294,110
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator