Posts

Showing posts from September, 2018

Dynamically Populating Ribbon Flyout Menu

Image
I was having a requirement to generate a dynamic ribbon menu under a button i.e. Flyout button menu sections, Here I want to share the steps for achieving this dynamic menu section. I have used Ribbon workbench and some JS scripts. We need to achieve the highlighted menu dynamically. Here in workbench, we need to add a flyout button In the command action, call JS function "populateEnrollmentFlyout" that is responsible for adding the menu sections definition in XML.  Add another command "programClicked"   that will be triggered when the user clicks on the menu section button. Below are the two JS functions used in the above commands. function populateEnrollmentFlyout(commandProperties) { var programsRibbonXml = ""; var command="msd.lead.Command.ProgramClicked"; var programs = retrieveMultiple('msd_programs', "?$select=msd_programid,msd_name"); programsRibbonXml +="<M...