Notifications
Announcements
No record found.
Hi,
I have prepared a new custom button on dashboard ribbon. Unfortunately when I pass primary control or selected control parameter, in JS function these variables becomes nulls.
Is it any other way to pass primary control object to function? What I want to achieve to have possibility of refreshing navbar in function.
Try to call refreshRibbon function directly.
Thanks for reply, but based on my knowledge method refreshRibbon is available on object formContext.ui. Unfortunately, as I wrote I cannot access in any way to it, because primary control object is passed as null. In UCI interface I don't have direct method refreshRibbon and also I would like to avoid Xrm.Page object. Any other ideas?
Check below link.
debajmecrm.com/.../
What should I type for entityType property? If I provide "dashboard" it doesn't refresh, If I provide blank string or null, it throws an error.
Hello Dominik,
First I am assuming that you configured your dashboard with an entity list and then on your ribbon workbench you customized the Homepage grid of the entity in question.
For grids the form context does not exist, so we have to use the grid context (SelectedControl).
Please find below the configuration I did on my trial and it seems to work fine in refreshing just the specific entity grid.
function testjs(context)
{
context.refresh();
}
Hope this helps.
Thanks for reply.
Unfortunately this dashboard contains few entities like activities and salesorders and as I described it, I have tried to pass selectedControl as parameter but in my case it's always null value.
I would advise you to open a ticket with Microsoft Support, so they can have a proper look at your environment and understand the reason for the null value.
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.
Pallavi Phade 98
Tom_Gioielli 60 Super User 2025 Season 2
Gerardo RenterÃa Ga... 43 Most Valuable Professional