MicroStrategy ONE
Customizing Web Beans
You can customize the Web beans that display data on MicroStrategy Web pages in two ways.
-
New Bean based on an Existing System Bean
The easiest way is to create a new Web bean based on an existing system bean, such as a report bean or a folder bean. If you choose this method, you simply use the Web Customization Editor to automatically create the new bean and add it to a MicroStrategy Web page. This is the recommended way to customize a Web bean since it creates and adds the new bean in one easy process. Because there are a variety of system beans available, it is quite likely that you will find one that suits your requirements.
-
To create an entirely new custom bean, you need to write your own Java bean class. Once you have written and compiled your bean class and placed it in the appropriate location, you can use the Web Customization Editor to automatically add it to a MicroStrategy Web page.
If a custom bean simply reads data from a data source and displays it on a MicroStrategy Web page, there is no need for an event handler. However, if the bean needs to change the data or perform some actions based on user interactions, you must add an event handler to the bean.
-
Adding an Event Handler to a Custom Bean
This topic provides sample code for creating a custom event handler class.
You can create a custom bean and event handler using the Web Customization Editor.
-
Creating a Custom Bean and Event Handler
The instructions in this topic walk you through the steps to create a custom bean and event handler using the Web Customization Editor. A plug-in is provided for you with samples Java classes for a custom bean, custom event handler, and custom transform.