MicroStrategy ONE
WebConstantPrompt
The WebPrompt can be cast into a specific interface based on the type of the prompt. The specification for the WebConstantPrompt is discussed below.
The constant prompt is the simplest of all prompts. It accepts basic data types that can be represented as a string as an answer to the prompt. For example, a constant prompt can be of type string, integer, date, and so on. The DataType property, which corresponds to EnumDSSXMLDataType, specifies the data type for the constant prompt. The list of supported constant prompts is shown below.
EnumDSSXMLPromptType | EnumDSSXMLDataType |
---|---|
DSSXmlPromptString |
DSSXmlDataTypeChar |
DSSXmlPromptBoolean |
DSSXmlDataTypeBool |
DSSXmlPromptLong |
DSSXmlDataTypeLong |
DSSXmlPromptDouble |
DSSXmlDataTypeDouble |
DSSXmlPromptDate |
DSSXmlDataTypeDate |
The answer to the constant prompt is saved as the string representation of the data value. MicroStrategy Intelligence Server requires the answer to the constant prompt to be specified as a text value of an XML node. The setAnswer method validates that the provided string can be converted to the prompts data type. If the minimum and maximum properties are set, the setAnswer method also checks if the specified value is within boundaries.