MicroStrategy ONE

Generating Individual Prompt Blocks

This topic explains how the view and model blocks for individual prompts are generated and rendered. As explained in the Representation of PromptEditor (View block) and Representation of ReportInstanceModel (Model block) topics, the boolean value passed to PromptBaseLayout.xml (Server-side layout definition file) determines which block (view or model) to generate and start rendering.

  • If the boolean value passed is "true", the isDisplayingModel method in PromptBaseLayout.xml starts filling in the slot for the model block. It generates the PromptQuestionModel and starts rendering information that is required for all individual prompts (such as name, meaning and instructions). It uses the prompt's server-side layout definition file (referenced by the prompt style) to display the individual components.
  • If the boolean value passed is "false", the isDisplayingModel method in PromptBaseLayout.xml starts filling in the slot for the view block. It generates the PromptQuestionView and starts rendering information that is required for all individual prompts—SimpleAnswerView (prompt answers displayed for selection in the interactive area of the prompt editor) and ComplexAnswerView (prompt answers that cannot be displayed in the interactive area and are therefore, displayed as a string for selection). It uses the prompt's server-side layout definition file (referenced by the prompt style) to display the individual components.