Package com.microstrategy.web.objects
Interface WebHyperLinkAnswer
-
public interface WebHyperLinkAnswerThe WebHyperLinkAnswer interface represents a target prompt's answer This interface is only applicable for executable Hyperlink.- Since:
- MicroStrategy Web 8.1.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAnswerMode()Returns answer modeRWGroupByElementsgetDynamicSelectorValue(java.lang.String originalID)Calculates a list of selector values and group by units, whose values are needed to answer the target prompt.java.util.ListgetDynamicUnits()Calculates a list of template and group by units, whose values are needed to answer the target prompt.java.util.ListgetDynamicUnits(WebReportGrid grid)Calculates a list of template and group by units, whose values are needed to answer the target prompt.java.util.ListgetDynamicUnits(WebReportGrid grid, boolean includeAllValidUnitsForDynamic)Calculates a list of template and group by units, whose values are needed to answer the target prompt.java.lang.StringgetFormID()It's only for a constant prompt, it will return a form id; for other prompt types, return null; Typically, a form id and an attribute id are grouped to uniquely determine a form.java.lang.StringgetPromptId()Returns target prompt IDjava.lang.StringgetPromptOriginId()Returns target prompt origin ID.intgetPromptOriginType()Returns target prompt origin type.intgetPromptType()Returns target prompt type.java.lang.ObjectgetStaticAnswer()Returns the static answer if the AnswerMode == STATIC.voidsetAnswerMode(int am)Set the answer modevoidsetFormID(java.lang.String formID)Set form id for a dynamically answered constant prompt.voidsetPrompt(java.lang.String id, int pt)Set the target prompt for this answer.voidsetPromptOrigin(java.lang.String id, int type)Set target prompt origin.
-
-
-
Method Detail
-
getPromptType
int getPromptType()
Returns target prompt type.- Returns:
- an int specify the target prompt type, the type refers to
EnumDSSXMLPromptType
-
getPromptId
java.lang.String getPromptId()
Returns target prompt ID- Returns:
- A String representing the ID of the target prompt.
-
setPrompt
void setPrompt(java.lang.String id, int pt)Set the target prompt for this answer.- Parameters:
id- A String representing the ID of the target prompt.pt- A int representing the type of the target prompt, the type refers toEnumDSSXMLPromptType- Since:
- MicroStrategy Web 9.0.0
-
getPromptOriginId
java.lang.String getPromptOriginId()
Returns target prompt origin ID. The Origin ID is the ID of the source attribute for the target prompt of this answer.- Returns:
- A String representing the ID of the source
WebAttributefor the targetWebPromptof this answer.
-
getPromptOriginType
int getPromptOriginType()
Returns target prompt origin type. The Origin type is the type of the source attribute for the target prompt of this answer. This will be a value fromEnumDSSXMLObjectTypes.- Returns:
- a int representing the type of of the source
WebAttributefor the targetWebPromptof this answer.
-
setPromptOrigin
void setPromptOrigin(java.lang.String id, int type)Set target prompt origin. The origin is the source attribute for the target prompt of this answer- Parameters:
id- The ID of the source attribute for the target prompt of this answer.type- The type of the source attribute for the target prompt of this answer. This will be a value fromEnumDSSXMLObjectTypes.- Since:
- MicroStrategy Web 9.0.0
-
getAnswerMode
int getAnswerMode()
Returns answer mode- Returns:
- a int from
EnumLinkAnswerModerepresenting the mode of this answer.
-
setAnswerMode
void setAnswerMode(int am)
Set the answer mode- Parameters:
am- An int fromEnumLinkAnswerModerepresenting the answer mode.- Since:
- MicroStrategy Web 9.0.0
-
getStaticAnswer
java.lang.Object getStaticAnswer()
Returns the static answer if the AnswerMode == STATIC. Otherwise it returns null. The returned object type depends on the prompt type. For example, for element prompts it will be aWebElementsobject.- Returns:
- a
Objectrepresenting the static answer
-
getDynamicUnits
java.util.List getDynamicUnits() throws WebObjectsExceptionCalculates a list of template and group by units, whose values are needed to answer the target prompt. This list is calculated based on the current user selections and the current template unit position within the grid template.- Returns:
- a
Listrepresenting the Dynamic Units for the answer. - Throws:
WebObjectsException
-
getDynamicUnits
java.util.List getDynamicUnits(WebReportGrid grid) throws WebObjectsException
Calculates a list of template and group by units, whose values are needed to answer the target prompt. This list is calculated based on the current user selections and the current template unit position within the grid template.- Parameters:
grid- The WebReportGrid object where the grid elements will be obtained.- Returns:
- a
Listrepresenting the Dynamic Units for the answer. - Throws:
WebObjectsException
-
getDynamicUnits
java.util.List getDynamicUnits(WebReportGrid grid, boolean includeAllValidUnitsForDynamic) throws WebObjectsException
Calculates a list of template and group by units, whose values are needed to answer the target prompt. This list is calculated based on the current user selections and the current template unit position within the grid template.- Parameters:
grid- The WebReportGrid object where the grid elements will be obtained.include- all the valid units for dynamic- Returns:
- a
Listrepresenting the Dynamic Units for the answer. - Throws:
WebObjectsException
-
getFormID
java.lang.String getFormID()
It's only for a constant prompt, it will return a form id; for other prompt types, return null; Typically, a form id and an attribute id are grouped to uniquely determine a form. UsegetPromptOriginId()to get the attribute id.- Returns:
- form id of the constant prompt
-
setFormID
void setFormID(java.lang.String formID)
Set form id for a dynamically answered constant prompt.- Parameters:
formID-
-
getDynamicSelectorValue
RWGroupByElements getDynamicSelectorValue(java.lang.String originalID)
Calculates a list of selector values and group by units, whose values are needed to answer the target prompt. This list is calculated based on the selectors which targets to the grid, and values in the page by field.- Parameters:
originalID- The ID of the prompt target element.- Returns:
- a
RWGroupByElementsrepresenting the Dynamic Units for the answer.
-
-