MicroStrategy ONE
Using the PromptsBean
This section discusses the following steps required for creating a PromptsBean and displaying the prompts question to the user. The accompanying code sample serves as a guide to help you get started with your customizations.
-
Creating the ReportBean
The steps are identical to the ones listed in the Creating the ReportBean section for instructions on using the ReportBean.
-
Setting or Restoring State
The steps are identical to the ones listed in the Setting or Restoring State section for instructions on using the ReportBean.
-
Getting the PromptsBean
Here, use the getPromptsBean() method from the ReportBean interface. The method returns the embedded PromptsBean. If this report does not contains any prompt questions, then the returned PromptsBean does not contain any PromptObject.
-
Rendering the Data
This step is similar to the Rendering the Data section for instructions on using the ReportBean. The only difference is that the transform(TransformInstance) method is applied to the PromptsBean; not to the ReportBean.:
The PromptsBean extends Transformable the interface. It specifies at run-time the appropriate transform (from its collection) that is used for rendering the data. This data is rendered using the transform(TransformInstance) method. The transform() method triggers a call to the default transform object registered to the calling PromptsBean. The The transform() method results are stored in MarkupOutput object. The send() method of the MarkupOutput object records the result of the transformation and displays the prompt questions to the screen.