Adding a Submenu to a USD Hosted Control

Leave a comment

Adding a submenu to a USD hosted control is simple. To do this, first create a menu.

Go to the USD configuration and go to Toolbars. Create a new toolbar and save to unlock the Buttons:

Add a new button and name it Save.

Add a new Action and name it Test Hosted Control Save. The Action here on the Test Hosted Control will be Save.

We now have:

  • A toolbar with a button. The toolbar is not associated with any hosted control
  • A button with an action, “Save”
  • The action which calls “Save” on the hosted control

The next step is to associate the Hosted Control with the toolbar. Let’s do this.

Go to the Toolbar and select Test Hosted Control:

Add the hosted control “Test Hosted Control”:

Restart USD and click on the Custom Hosted Control menu. You will see the new Save button:

Press the Save button. You will see the Save action in our custom control has been invoked.



Carl de Souza is a developer and architect focusing on Microsoft Dynamics 365, BI, Web, Cloud and Data Science.

carldesouza.comLinkedIn Twitter | YouTube


Leave a Reply

Your email address will not be published. Required fields are marked *