Adding a button or a menu item

You can add buttons and menu items to perform various actions, such as displaying a web site, running a report, opening a dashboard, a story, or a folder. You can also create custom actions.

All buttons require an action controller. There are four built-in action controllers that perform common actions. These actions are shown here.

bi/glass/api/IFrameOpener
Opens a web page.
bi/glass/api/ReportOpener
Runs a report.
bi/glass/api/DashboardOpener
Opens a dashboard.
bi/glass/api/FolderOpener
Opens a folder.

You can also write custom action controllers using JavaScript.

The content of the json.spec file are similar for buttons and menu items and they are described together. The main difference is that the value of the type element is button for a button and menuItem for a menu item. Other differences are noted in the following topics.