MicroStrategy ONE

PromptsBean

A PromptsBean is the base object for handling all the prompts associated with a report. It contains methods to access individual prompt objects.

The Prompts Bean uses the PromptObject interface to gather information about a single prompt. This interface provides access to the WebPrompts collection and a WebPrompt (from the Web Objects API) for each prompt in the report for handling all aspects of prompt answering and manipulation. It provides the following range of information:

  • Access to Prompt Name, Description, Type, Question, and Current/Default Answer  

  • Access to Number of Prompts in a Report, Prompt XML, and Minimum and Maximum values for prompt answer  

  • Answer a Prompt, and Continue Report Execution

A PromptsBean can be created by directly extending the WebBean interface. Its state can be initialized from a report using the following code:

PromptsBean pb = rb.getPromptsBean();

See also