com.microstrategy.web.objects.WebHyperLinkAnswer |
The WebHyperLinkAnswer interface represents a target prompt's answer This interface is only applicable for executable Hyperlink.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract int |
getAnswerMode()
Returns answer mode
| ||||||||||
abstract List |
getDynamicUnits()
Calculates a list of template and group by units, whose values are needed to answer
the target prompt.
| ||||||||||
abstract List |
getDynamicUnits(WebReportGrid grid, boolean includeAllValidUnitsForDynamic)
Calculates a list of template and group by units, whose values are needed to answer
the target prompt.
| ||||||||||
abstract List |
getDynamicUnits(WebReportGrid grid)
Calculates a list of template and group by units, whose values are needed to answer
the target prompt.
| ||||||||||
abstract 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.
| ||||||||||
abstract String |
getPromptId()
Returns target prompt ID
| ||||||||||
abstract String |
getPromptOriginId()
Returns target prompt origin ID.
| ||||||||||
abstract int |
getPromptOriginType()
Returns target prompt origin type.
| ||||||||||
abstract int |
getPromptType()
Returns target prompt type.
| ||||||||||
abstract Object |
getStaticAnswer()
Returns the static answer if the AnswerMode == STATIC.
| ||||||||||
abstract void |
setAnswerMode(int am)
Set the answer mode
| ||||||||||
abstract void |
setFormID(String formID)
Set form id for a dynamically answered constant prompt.
| ||||||||||
abstract void |
setPrompt(String id, int pt)
Set the target prompt for this answer.
| ||||||||||
abstract void |
setPromptOrigin(String id, int type)
Set target prompt origin.
|
Returns answer mode
EnumLinkAnswerMode
representing the mode of this answer.
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.
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.
grid | The WebReportGrid object where the grid elements will be obtained. |
---|
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.
grid | The WebReportGrid object where the grid elements will be obtained. |
---|
WebObjectsException |
---|
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. Use getPromptOriginId()
to get the attribute id.
Returns target prompt ID
Returns target prompt origin ID. The Origin ID is the ID of the source attribute for the target prompt of this answer.
WebAttribute
for the target WebPrompt
of this answer.
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 from EnumDSSXMLObjectTypes
.
WebAttribute
for the target WebPrompt
of this answer.
Returns target prompt type.
EnumDSSXMLPromptType
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 a WebElements
object.
Set the answer mode
am | An int from EnumLinkAnswerMode representing the answer mode. |
---|
Set form id for a dynamically answered constant prompt.
Set the target prompt for this answer.
id | A String representing the ID of the target prompt. |
---|---|
pt | A int representing the type of the target prompt, the type refers to EnumDSSXMLPromptType |
Set target prompt origin. The origin is the source attribute for the target prompt of this answer
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 from EnumDSSXMLObjectTypes . |