Hi,
Been pulling my hair out and cannot find a solution for this issue.
We have a ribbon button added to the Home section (entity views) of the ApplicationRibbon (global). It has a custom JS enable rule. Which will return true if a certain configuration record exists.
It follows the standard flow of:
- Have some result in a global variable
- If the result is null (not yet checked) - do a request to retrieve it. Because it's async afterwards call refreshRibbon(true); return false
- Depending on the result return true or false
It works fine in the classic UI (&forceClassic=1) both when no records are selected and when some records are. In the unified UI the moment I select a record (or multiple) the button disappears. I have checked in the browsers developer tools and the JS enable rule function is called and returns true (synchronously).
Is this a bug in the unified UI or am I doing something wrong here?
*This post is locked for comments