Hi Have a requirement to Show Or Hide a custom ribbon work bench based on the view.
The button is on the Home Ribbon and not Subgrid .
I have written the logic for Javascript
function ShowHideCustomButton(selectedCtrl) { var viewName = selectedCtrl._getCurrentView(); alert (viewName); // another method var viewName2 = selectedCtrl.get_viewTitle(); }
The closest I for was the first variable and it returned object object , IF i can get the view name , my problem is solved.
For the selected control I used the crm parameter selected control in ribbon work bench.
Am also on the latest crm which is power apps.