Interface WebConstantPrompt

    • Method Detail

      • getDataType

        int getDataType()
        Returns the prompts data type. The possible values are the following supbset from the EnumDSSXMLDataType: DssXmlDataTypeChar, DssXmlDataTypeBool, DssXmlDataTypeLong, DssXmlDataTypeDouble, DssXmlDataTypeDate.
      • setDataType

        void setDataType​(int dataType)
        Sets the data type of the prompt. This will only work properly on a prompt definition, not a prompt question. The possible values are the following supbset from the EnumDSSXMLDataType: DssXmlDataTypeChar, DssXmlDataTypeBool, DssXmlDataTypeLong, DssXmlDataTypeDouble, DssXmlDataTypeDate.
        Since:
        MicroStrategy Web 9.0.0
      • getAnswer

        java.lang.String getAnswer()
        Returns the current prompt answer
        Returns:
        the current prompt answer
      • setAnswer

        void setAnswer​(java.lang.String answer)
        Sets the current prompt answer
        Parameters:
        answer - a prompt answer
      • getDefaultAnswer

        java.lang.String getDefaultAnswer()
        Returns the default prompt answer
        Returns:
        the default prompt answer
      • setDefaultAnswer

        void setDefaultAnswer​(java.lang.String ans)
        Sets the default prompt answer. This only works on a prompt definition, not a prompt question.
        Since:
        MicroStrategy Web 9.0.0
      • getPreviousAnswer

        java.lang.String getPreviousAnswer()
        Returns the previous prompt answer
        Returns:
        the previous prompt answer
      • validate

        void validate()
               throws WebObjectsException
        For specified data type getDataType(), validates whether prompt answer is in correct format and within minimun and maximum limits. An exception is thrown if one of the conditions fails - check the error code to see which test failed.
        Specified by:
        validate in interface WebPrompt
        Throws:
        WebAPIHelperException - Signals that the prompt answer failed validation requirements.
        WebObjectsException
        Since:
        MicroStrategy Web 7.5.0