Hello,
I am hiding + button on subgrid ribbon based on condition(Security role + BPF stage) . The problem is that the only way to show or hide + button on a subgrid ribbon is to save a form. Please let me know what I am missing in my JS code. Thank you.
Hello Tamilarasu,
Thank you for you time . I have already found a solution that works for me . Forgot to update my story. Here it is :
function onStageChange(executionContext)
{
var formContext = executionContext.getFormContext();
if(executionContext.getEventArgs().getDirection()==="next")
{
formContext.data.entity.save();
}
}
Hi Kahspot,
As per my understanding to your question, you can save your page programatically using the below line of code
formContext.data.save(saveOptions).then(successCallback, errorCallback);
In Ribbon Work Bench, You can use EnabledRule to hide or show the button based on the condition. May be the below link will help
If you found this useful, verify and like my answer
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156