Interface WebExpressionPrompt
- 
- All Superinterfaces:
- EnumWebPersistableState,- KeyedObject,- Persistable,- WebDisplayUnit,- WebFeatures,- WebObjectInfo,- WebPrompt,- WebPromptSite
 
 public interface WebExpressionPrompt extends WebPrompt Represents an expression prompt, whose answer is of typeWebExpression. This object corresponds to 3 types of prompt in desktop (Attribute Qualification, Hierarchical, Metric Qualification).- 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 WebExpressiongetAnswer()Returns the current prompt answer.WebFoldergetCustomDisplayedForms()Returns a set of forms this prompt will qualify on, whengetDisplayedForms()isEnumWebDisplayedForms.WebDisplayedFormsCustomFor setting up custom display forms, first need to callsetDisplayedForms(int)to set it toEnumWebDisplayedForms.WebDisplayedFormsCustom, then populate the folder returned from this method.WebExpressiongetDefaultAnswer()Returns the default prompt answerWebAttributeFormgetDefaultForm()This optional property is used only with expression prompts of type attribute form qualification.WebFunctiongetDefaultFunction()This optional property is applicable only to the expression prompts supporting the SAP Variables.intgetDisplayedForms()Returns which forms will be qualified upon, from the enumerationEnumWebDisplayedForms.intgetExpressionType()Returns expression type.WebMDXDisplayUnitgetMDXDisplayUnit(WebAttribute attribute)This method returns the MDXDisplayUnit associated with the attribute.WebObjectInfogetOrigin()Returns a object that shall be used to obtained list of objects that can be used in the expression.WebObjectInfogetOrigin(boolean createIfNull)Returns a object that shall be used to obtained list of objects that can be used in the expression.WebExpressiongetPreviousAnswer()Returns the previous prompt answerWebFoldergetSuggestedAnswers()WebFoldergetSuggestedAnswers(boolean createIfNull)WebExpressionsetAnswer(WebExpression answer)Sets the current prompt answer.voidsetDefaultForm(WebAttributeForm af)voidsetDisplayedForms(int forms)voidsetExpressionType(int type)voidsetOrigin(WebObjectInfo origin)- 
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, validate
 - 
Methods inherited from interface com.microstrategy.web.objects.WebPromptSitegetPromptInstances
 
- 
 
- 
- 
- 
Method Detail- 
getExpressionTypeint getExpressionType() Returns expression type. The possible expression types are the following subset from theEnumDSSXMLExpressionType: DssXmlFilterSingleMetricQual, DssXmlFilterAttributeIDQual, DssXmlFilterAttributeDESCQual, DssXmlFilterAllAttributeQual.- Returns:
- expression type.
 
 - 
setExpressionTypevoid setExpressionType(int type) - Since:
- MicroStrategy Web 9.0.0
 
 - 
getAnswerWebExpression getAnswer() Returns the current prompt answer. If there is no answer available, an emptyWebExpressionis returned, which can be used to build answer.- Returns:
- the current prompt answer
 
 - 
setAnswerWebExpression setAnswer(WebExpression answer) Sets the current prompt answer. Internally this method creates a new copy of theanswerobject and stores it as the current answer. (If theanswerobject is the same as the current answer no copy is created).- Parameters:
- answer- a prompt answer
- Returns:
- a current answer that is a newly created copy of the answerobject.
 
 - 
getDefaultAnswerWebExpression getDefaultAnswer() Returns the default prompt answer- Returns:
- the default prompt answer
 
 - 
getPreviousAnswerWebExpression getPreviousAnswer() Returns the previous prompt answer- Returns:
- the previous prompt answer
 
 - 
getOriginWebObjectInfo getOrigin() throws WebObjectsException Returns a object that shall be used to obtained list of objects that can be used in the expression. It can be any of the following types:WebSearch,WebFolder,WebAttribute,WebDimension, orWebMetric.In case of search object, the user can modify the search criterion that is used in generating the available object list. The search object can also be used to incrementally fetch the available object list. In case the origin property is missing, the WebExpressionPrompt object would set origin property to be a search object to show all objects of type dimension and folder under the system folder "Data Explorer". As stated, the users can then modify the search object as they wish. For example, they can search for all objects of type dimension in the project root. - Returns:
- a object that shall be used to obtained list of objects that can be used in the expression.
- Throws:
- WebObjectsException
 
 - 
getOriginWebObjectInfo getOrigin(boolean createIfNull) throws WebObjectsException Returns a object that shall be used to obtained list of objects that can be used in the expression. It can be any of the following types:WebSearch,WebFolder,WebAttribute,WebDimension, orWebMetric.In case of search object, the user can modify the search criterion that is used in generating the available object list. The search object can also be used to incrementally fetch the available object list. In case the origin property is missing, based on the parameter createIfNull the WebExpressionPrompt object would set origin property to be a search object to show all objects of type dimension and folder under the system folder "Data Explorer". As stated, the users can then modify the search object as they wish. For example, they can search for all objects of type dimension in the project root. - Parameters:
- createIfNull- if true returns the default search object (to show all objects of type dimension and folder under the system folder "Data Explorer".)
- Returns:
- a object that shall be used to obtained list of objects that can be used in the expression.
- Throws:
- WebObjectsException
- Since:
- MicroStrategy Web 9.0.0
 
 - 
setOriginvoid setOrigin(WebObjectInfo origin) throws WebObjectsException - Throws:
- WebObjectsException
- Since:
- MicroStrategy Web 9.0.0
 
 - 
getDefaultFormWebAttributeForm getDefaultForm() This optional property is used only with expression prompts of type attribute form qualification. Foe such prompts the prompt designer may optionally indicate a default attribute form that the GUI should highlight when presenting available forms for an attribute. In this case the origin property is of typeWebAttributewhich indicates that there is only one attribute you can use to build the expression. The expectation is that the Web application shows this form as highlighted, in case the application user has not explicitly highlighted any other attribute form.- Returns:
- the default attribute form or null
 
 - 
setDefaultFormvoid setDefaultForm(WebAttributeForm af) - Since:
- MicroStrategy Web 9.0.0
 
 - 
getDisplayedFormsint getDisplayedForms() Returns which forms will be qualified upon, from the enumerationEnumWebDisplayedForms.- Returns:
- A value from EnumWebDisplayedForms, corresponding to the forms that should be shown. WhenEnumWebDisplayedForms.WebDisplayedFormsCustomreturned from this method, that meansgetCustomDisplayedForms()will return the list of form objects.
- Since:
- MicroStrategy Web 8.0.0
 
 - 
setDisplayedFormsvoid setDisplayedForms(int forms) - Since:
- MicroStrategy Web 9.0.0
 
 - 
getCustomDisplayedFormsWebFolder getCustomDisplayedForms() Returns a set of forms this prompt will qualify on, whengetDisplayedForms()isEnumWebDisplayedForms.WebDisplayedFormsCustomFor setting up custom display forms, first need to callsetDisplayedForms(int)to set it toEnumWebDisplayedForms.WebDisplayedFormsCustom, then populate the folder returned from this method. Any modification of the returnedWebFolderobject (adding, deleting, reordering) will affect the custom display forms for this prompt.- Returns:
- A WebFoldercontains custom displayed form objects.nullwill be returned if currentgetDisplayedForms()is notEnumWebDisplayedForms.WebDisplayedFormsCustom
- Since:
- MicroStrategy Web 9.0.0
 
 - 
getDefaultFunctionWebFunction getDefaultFunction() This optional property is applicable only to the expression prompts supporting the SAP Variables. For such an expression prompt, the prompt answer consists a single subexpression under the root node whose function isEnumDSSXMLFunction.DssXmlFunctionTuple. The single subexpression must in turn be rooted at this function.- Returns:
- an function object or null if there is no such an auxilliary object.
- Since:
- MicroStrategy Web 8.0.1
 
 - 
getMDXDisplayUnitWebMDXDisplayUnit getMDXDisplayUnit(WebAttribute attribute) This method returns the MDXDisplayUnit associated with the attribute. The method returns a nonnullvalue only for attributes which are part of the answer expression in a MDX report. In all other cases, the return value would benull.- Since:
- MicroStrategy Web 8.1.2
 
 - 
getSuggestedAnswersWebFolder getSuggestedAnswers() - Since:
- MicroStrategy Web 9.0.0
 
 - 
getSuggestedAnswersWebFolder getSuggestedAnswers(boolean createIfNull) - Since:
- MicroStrategy Web 9.0.0
 
 
- 
 
-