Package com.microstrategy.web.objects
Interface WebConstantPrompt
- 
- All Superinterfaces:
- EnumWebPersistableState,- KeyedObject,- Persistable,- WebDisplayUnit,- WebFeatures,- WebObjectInfo,- WebPrompt,- WebPromptSite
 - All Known Subinterfaces:
- WebTimePrompt
 
 public interface WebConstantPrompt extends WebPrompt This interface represents constant prompt.- Since:
- MicroStrategy Web 7.3.1 or earlier
 
- 
- 
Field Summary- 
Fields inherited from interface com.microstrategy.utils.serialization.EnumWebPersistableStateBARE_MINIMAL_STATE_INFO, MAXIMAL_STATE_INFO, MINIMAL_STATE_INFO, TYPICAL_STATE_INFO
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetAnswer()Returns the current prompt answerintgetDataType()Returns the prompts data type.java.lang.StringgetDefaultAnswer()Returns the default prompt answerjava.lang.StringgetPreviousAnswer()Returns the previous prompt answervoidsetAnswer(java.lang.String answer)Sets the current prompt answervoidsetDataType(int dataType)Sets the data type of the prompt.voidsetDefaultAnswer(java.lang.String ans)Sets the default prompt answer.voidvalidate()For specified data typegetDataType(), validates whether prompt answer is in correct format and within minimun and maximum limits.- 
Methods inherited from interface com.microstrategy.utils.KeyedObject_getObKey
 - 
Methods inherited from interface com.microstrategy.utils.serialization.PersistablerestoreState, restoreState, saveState, saveState, saveState, saveState
 - 
Methods inherited from interface com.microstrategy.web.objects.WebDisplayUnitaddDetails, applyVisitor, canHighlight, getChildUnits, getDisplayName, getDisplayUnitType, hasDetails, highlightUnit, highlightUnit, isHighlighted, isObjectInfo, isSelected, setDisplayName, setSelected
 - 
Methods inherited from interface com.microstrategy.web.objects.WebFeaturesisFeatureAvailable, isFeatureAvailable
 - 
Methods inherited from interface com.microstrategy.web.objects.WebObjectInfobuildShortObjectAttributes, buildShortXML, getAbbreviation, getAccessGranted, getAncestors, getCardStatus, getCertifiedInfo, getComments, getContainerDid, getContainerType, getCreationTime, getCreationTimeStamp, getDataSources, getDescription, getExtendedType, getFactory, getFlags, getIconPath, getID, getModificationTime, getModificationTimeStamp, getName, getNonSchedulable, getOtherNameTransCount, getOwner, getParent, getPreSaveAsFlags, getProjectId, getProjectName, getPropertyFlags, getPropertySetFilter, getPropertySets, getRecommendationInfo, getSecurity, getState, getSubType, getType, getVersionID, getViewMediaSettings, getVisualizationViewMode, getXML, getXML, hasOwner, isAncestorNamedFolder, isDirty, isEmbedded, isHidden, isNew, isPopulated, populate, populate, setAbbreviation, setComments, setDataSources, setDescription, setExtendedType, setFlags, setHidden, setIconPath, setName, setNonSchedulable, setPreSaveAsFlags, setPropertyFlags
 - 
Methods inherited from interface com.microstrategy.web.objects.WebPromptanswerPrompt, buildShortAnswerXML, getAnswerXML, getAnswerXML, getAnswerXML, getBrowsableDataSourceFlags, getDisplayHelper, getDisplayHelper, getDisplayProperties, getDSSPromptType, getKey, getMax, getMeaning, getMerge, getMessageId, getMin, getPIN, getPrimaryLocation, getPromptType, getReuse, getShortAnswerXML, getShortAnswerXML, getShortPa, getShortPa, getTitle, getUserAnswers, getXDATypes, hasAnswer, hasDefaultAnswer, hasOriginalAnswer, hasPreviousAnswer, isAnswerEmpty, isCanceled, isClosed, isRequired, isUsed, populateAnswer, resetAnswer, resetToDefault, setCanceled, setClosed, setMax, setMeaning, setMin, setRequired, setReuse, setTitle
 - 
Methods inherited from interface com.microstrategy.web.objects.WebPromptSitegetPromptInstances
 
- 
 
- 
- 
- 
Method Detail- 
getDataTypeint getDataType() Returns the prompts data type. The possible values are the following supbset from theEnumDSSXMLDataType:DssXmlDataTypeChar, DssXmlDataTypeBool, DssXmlDataTypeLong, DssXmlDataTypeDouble, DssXmlDataTypeDate.
 - 
setDataTypevoid 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 theEnumDSSXMLDataType:DssXmlDataTypeChar, DssXmlDataTypeBool, DssXmlDataTypeLong, DssXmlDataTypeDouble, DssXmlDataTypeDate.- Since:
- MicroStrategy Web 9.0.0
 
 - 
getAnswerjava.lang.String getAnswer() Returns the current prompt answer- Returns:
- the current prompt answer
 
 - 
setAnswervoid setAnswer(java.lang.String answer) Sets the current prompt answer- Parameters:
- answer- a prompt answer
 
 - 
getDefaultAnswerjava.lang.String getDefaultAnswer() Returns the default prompt answer- Returns:
- the default prompt answer
 
 - 
setDefaultAnswervoid 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
 
 - 
getPreviousAnswerjava.lang.String getPreviousAnswer() Returns the previous prompt answer- Returns:
- the previous prompt answer
 
 - 
validatevoid validate() throws WebObjectsExceptionFor specified data typegetDataType(), 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:
- validatein interface- WebPrompt
- Throws:
- WebAPIHelperException- Signals that the prompt answer failed validation requirements.
- WebObjectsException
- Since:
- MicroStrategy Web 7.5.0
 
 
- 
 
-