java.lang.Object | |||
↳ | com.microstrategy.web.transform.AbstractTransform | ||
↳ | com.microstrategy.web.transform.AbstractLayoutTransform | ||
↳ | com.microstrategy.web.app.transforms.AbstractPromptObjectTransform |
![]() |
The AbstractPromptObjectTransform is the base class we use for these prompt transforms should extend from.
All prompt transforms will be invoked from prompt's container class (PromptsClassicTransform).
It defines a generic layout for all prompt questions and it divides the rendering in following methods:
renderContent()
method.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected int | _blockCount | Denotes generic block count. | |||||||||
protected GGCalendar | _calendar | Represents calendar object. | |||||||||
protected String | _cssPrefix | Property for storing the value of the cssPrefix formal parameter, initialized with the
initializeCss method. |
|||||||||
protected int | _dataTypeForCalendar | Specifies data type for calendar. | |||||||||
protected String | _globalCss | Specifies CSS class of the main HTML container tag of the prompt information. | |||||||||
protected String | _imagesFolder | Indicates images folder path. | |||||||||
public FormalParameter | cssPrefix | Prefix to append to all css class names. | |||||||||
public FormalParameter | imgBackToTop | This field is deprecated. This formal parameter is no longer used. There are no references to this formal parameter in the code | |||||||||
public FormalParameter | imgCalendar | Specifies image to use when Calendar object is enabled and visible. | |||||||||
public FormalParameter | imgError | Specifies the image to use to highlight an error in a prompt. | |||||||||
protected boolean | isDhtmlMode | Indicates whether or not DHTML mode is enabled. | |||||||||
public FormalParameter | levelFlag | Specifies what fields in prompt question are displayed. | |||||||||
public FormalParameter | showRequired | Specifies whether or not to display 'Required' message at the end of prompt title. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AbstractPromptObjectTransform()
Default no-args constructor, initialize all the formal parameters.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FormalParameter |
addFormalParameter(String name, int type, Object defaultValue, String description)
Adds a formal parameter to this transform based upon given information.
| ||||||||||
boolean |
areThereAvailableSelections()
Indicates size of available selections.
| ||||||||||
int |
getAttrElemBlockCount()
Indicates block count, an incremental fetch value for displaying attribute's elements.
| ||||||||||
String | getDescriptor(String key, String defaultDescriptor) | ||||||||||
String |
getDescriptor(String key)
Get the descriptor for the given key. | ||||||||||
WebDimensionAttribute |
getDimensionAttribute(WebDisplayUnit unit)
Obtains the dimension attribute given the
WebDisplayUnit instance provided. | ||||||||||
boolean |
getMatchCaseSensitivity()
Indicates default value for match case checkbox.
| ||||||||||
int |
getObjectsBlockCount()
Indicates block count, an incremental fetch value for displaying list of objects.
| ||||||||||
ArrayList |
getPromptsList()
Returns an arraylist containing DisplayWebUnits.
| ||||||||||
boolean |
getShowRequired()
Indicates property value for whether or not displaying required message.
| ||||||||||
Class |
getSupportedBeanType()
Indicates Bean type of prompt object being used by the transform.
| ||||||||||
TagsFactory |
getTagsFactory()
Provides factory class for creating HTML tags.
| ||||||||||
void |
initializeCss()
Initializes the css information to be used by this transform.
| ||||||||||
void |
initializeImages()
Initializes the images to be used by this transform.
| ||||||||||
abstract boolean |
isAnswerComplex()
Checks whether a prompt has a default answer, and if it has, if the
default answer is complex.
| ||||||||||
boolean |
isBackToTopAnchorEnabled()
Indicates whether or not 'Back to Top' anchor is enabled for current prompt.
| ||||||||||
boolean |
isDhtmlMode()
Indicates whether or not DHTML mode is enabled.
| ||||||||||
boolean |
isDimensionalPrompt()
Determines whether or not given prompt was defined as Dimty prompt.
| ||||||||||
boolean | isForDefinition() | ||||||||||
boolean |
isItemKeptInCartAvailable()
Indicates property value for whether or not selected item in cart's 'From' list should be removed.
| ||||||||||
boolean |
isLocked(WebDisplayUnit unit)
Determines whether given
WebDisplayUnit unit is locked up. | ||||||||||
boolean |
isLockedForSearch(WebDisplayUnit unit)
Determines whether given
WebDisplayUnit unit is locked up for search only. | ||||||||||
boolean |
isPromptObjectInitialized()
Indicates whether or not given prompt is initialized.
| ||||||||||
boolean |
isPromptRequired()
Shortcut method to check whether the prompt is required.
| ||||||||||
boolean |
isPromptSummaryEnabled()
Indicates whether to display prompt summary or not.
| ||||||||||
void |
renderMinMaxHiddenValues(MarkupOutput out)
This method is deprecated.
the method is not been called by others.
| ||||||||||
void |
renderPromptAnswerMeaning(MarkupOutput out)
Renders prompt's meaning information.
| ||||||||||
void |
renderPromptBackToTopAnchor(MarkupOutput out)
Renders HTML anchor to allow end users to go back to Top of Prompts page.
| ||||||||||
void |
renderPromptContent(MarkupOutput out)
Renders the body of the prompt content.
| ||||||||||
void |
renderPromptDefaultAnswer(MarkupOutput out)
Renders HTML area with default answer definition.
| ||||||||||
void |
renderPromptErrorMessage(MarkupOutput out)
Renders a localized generic error message to end-users.
| ||||||||||
void |
renderPromptHiddenInputs(MarkupOutput out)
Renders the hidden inputs of this prompt.
| ||||||||||
void |
renderPromptIFrameRequest(MarkupOutput out)
Renders the content of the prompt in case of an IFrame request.
| ||||||||||
void |
renderPromptMeaning(MarkupOutput out)
Renders the meaning of the prompt.
| ||||||||||
void |
renderPromptNoSelectionsAvailable(MarkupOutput out)
Displays error message indicating that available list doesn't have any
selection available.
| ||||||||||
void |
renderPromptNotAnswered(MarkupOutput out)
Renders a localized message for indicating given prompt is not answered.
| ||||||||||
void |
renderPromptQuestion(MarkupOutput out)
Renders each of the prompt fields in corresponding order.
| ||||||||||
void |
renderPromptRestrictions(MarkupOutput out)
Renders prompt's restrictions.
| ||||||||||
void |
renderPromptSummary(MarkupOutput out)
Renders prompt's Summary section when Page is in 'Summary' mode.
| ||||||||||
void |
renderPromptSummaryAnswer(MarkupOutput out)
Renders the prompt's answer in a formatted string in 'Summary' mode.
| ||||||||||
void |
renderPromptSummaryTitle(MarkupOutput out)
Renders Prompt's title in 'Summary' mode.
| ||||||||||
void |
renderPromptTitle(MarkupOutput out)
Renders the title of the prompt.
| ||||||||||
void |
setAttrElemBlockCount(int count)
Specifies incremental fetch value for the size of block of attribute's elements to be displayed.
| ||||||||||
void |
setEnableBackToTopAnchor(boolean flag)
Specifies whether or not to display 'Back to Top' anchor.
| ||||||||||
void |
setIsItemKeptInCartAvailable(boolean flag)
Specifies flag value for enabling or disabling item removal in Cart prompt transforms.
| ||||||||||
void |
setLevelFlag(int level)
Specifies level of visibility for all fields in prompt question are displayed.
| ||||||||||
void |
setMatchCaseSensitivity(boolean flag)
Specifies default value for match case checkbox.
| ||||||||||
void |
setObjectsBlockCount(int count)
Specifies incremental fetch value for the size of block of objects to be displayed.
| ||||||||||
void |
setPromptSummary(boolean flag)
Specifies whether or not to enable prompt summary.
| ||||||||||
void |
setShowRequired(boolean show)
Specifies property for whether or not displaying required message.
| ||||||||||
void |
transform(Transformable data, MarkupOutput out)
Transforms the PromptObject and append the output to the MarkupOutput.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
arePromptsLoadedFirstTime()
Indicates whether or not prompts are loaded the firt time.
| ||||||||||
boolean |
checkLevel(int iLevelConst)
Indicates if the level parameter value contains given flag.
| ||||||||||
WebEvent |
getAnswerEvent()
Returns instance of prompt answer event.
| ||||||||||
String |
getArgumentName(int argumentId)
Returns an argument name for the given id.
| ||||||||||
WebDisplayUnits |
getAvailableDisplayUnits()
Specifies a
WebDisplayUnits collection of the available units of this prompt. | ||||||||||
GGCalendar |
getCalendar()
Returns a localized instance of Calendar component.
| ||||||||||
ContainerServices |
getContainerServices()
Retrieves the connected Container Services object.
| ||||||||||
String |
getDescriptor(int key)
Returns a descriptor (localized message) associated to this key.
| ||||||||||
WebDisplayHelper |
getDisplayHelper()
Provides an instance of Web display helper object.
| ||||||||||
String |
getErrorMessage(WebBeanError promptError)
Returns a localized error message.
| ||||||||||
int |
getIntValue(FormalParameter parameter)
Returns the
int value of a FormalParamter . | ||||||||||
Locale |
getLocale()
Returns instance of current Locale.
| ||||||||||
WebEvent | getMultipleEvent() | ||||||||||
String | getMultipleEventArgumentString(WebEvent event, int[] args) | ||||||||||
PromptObject |
getPrompt()
Indicates instance of PromptObject
PromptObject being transformed. | ||||||||||
AppContext |
getPromptsAppContext()
Determines prompt's AppContext.
| ||||||||||
PromptsBean |
getPromptsBean()
Indicates current instance of PromptsBean to be transformed.
| ||||||||||
RequestKeys | getRequestKeys() | ||||||||||
String |
getStringValue(FormalParameter parameter)
Returns the string value of the Formal Parameter.
| ||||||||||
boolean |
hasAnswer()
Indicates whether prompt instance has an answer in its definition.
| ||||||||||
void |
initializePromptContent()
Initializes infrastructure needed for rendering prompt.
| ||||||||||
void |
initializePromptObject()
Initializes prompt object to default values.
| ||||||||||
boolean |
isIFrameRequest()
Indicates whether or not Frame is active in Web application.
| ||||||||||
boolean |
isNodeComplex(WebNode node)
This method is deprecated.
This method has been deprecated since this is specific to expression prompts.
Use the method on AbstractPromptExpressionTransform. | ||||||||||
boolean |
isTrue(FormalParameter parameter)
Indicates if given
FormalParamter is a Boolean True instance. | ||||||||||
boolean |
isXDAReport()
Indicates whether or not this a prompted XDA Report.
| ||||||||||
boolean |
isXDA_CustomSQL_Report()
Indicates whether or not this a prompted CustomSQL Report.
| ||||||||||
boolean |
isXDA_MDX_Report()
Indicates whether or not this a prompted MDX Report.
| ||||||||||
ParameterBuilder |
newHiddenInputBuilder()
Retrieves a new instance of a Hidden Input Builder from the connected Container Services object.
| ||||||||||
NamespaceEncoder |
newNamespaceEncoder()
Retrieves a new instance of a Namespace Encoder from the connected Container Services object.
| ||||||||||
void | onBeforeApplyDefaultDisplaySettings() | ||||||||||
void |
processAvailableItems()
Initializes display settings for retrieving available items defined in prompt.
| ||||||||||
void |
processIncrementalFetch()
Initializes incremental fetching settings.
| ||||||||||
boolean |
renderLayout(MarkupOutput out)
Renders transform using layout infrastructure.
| ||||||||||
void |
setArgumentValue(int argumentId, String value)
Specifies a new argument value denoted by an unique Id.
| ||||||||||
void |
setExtraArguments()
Sets extra arguments for this prompt.
| ||||||||||
void |
setLocale(int localeId)
Sets active locale in Web application.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Denotes generic block count.
Determines size of elements page to be displayed.
Property for storing the value of the cssPrefix
formal parameter, initialized with the
initializeCss
method.
Specifies data type for calendar.
Specifies CSS class of the main HTML container tag of the prompt information.
Indicates images folder path.
This field is deprecated.
This formal parameter is no longer used. There are no references to this formal parameter
in the code
Specifies the image to use to going back to top link.
The value to indicate should be a valid image file name, with any necessary path information not included already on the
resourcesFolderImage
application configuration parameter.
Specifies image to use when Calendar object is enabled and visible.
The value to indicate should be a valid image file name, with any necessary path information not included already on the
resourcesFolderImage
application configuration parameter.
Specifies the image to use to highlight an error in a prompt.
The value to indicate should be a valid image file name, with any necessary path information not included already on the
resourcesFolderImage
application configuration parameter.
Indicates whether or not DHTML mode is enabled.
This values is initialized based on the
getPromptsBean().getOutputFormat()
method.
Specifies what fields in prompt question are displayed.
Prompt question is broken down in four visible fields: title, meaning, restriction and content.
Multiple fields can be displayed at the same time. Which fields to be displayed is indicated
by a bit-wise flag.
This flag is used as bit-wise value.
Allowed Values:
EnumPromptLevelFlags
LEVEL_SHOW_ALL
Specifies whether or not to display 'Required' message at the end of prompt title.
'Required' message is static and it's displayed along with prompt title. This message
can be either displayed or not.
This flag is used as boolean value.
Default no-args constructor, initialize all the formal parameters.
Adds a formal parameter to this transform based upon given information.
Auxiliar method to initialize or create a new Formal parameter. Intensively used
across all Prompt transforms.
name | the name of the formal parameter |
---|---|
type | the type of the formal parameter, as defined in the FormalParameter constants. |
defaultValue | the default value |
description | Description of the FP, to use by the style catalog. |
Indicates size of available selections.
Indicates block count, an incremental fetch value for displaying attribute's elements.
This value is used to determine the number of attribute's elements displayed per page or block.
Note: incremental fetch isn't supported by all prompt types and styles. Available only in expression and element
prompts with Cart styles, and some Hierarchical prompts.
Get the descriptor for the given key.
The key is searched exactly as given in the Messages bundle.
If a descriptor is not found for the given key it returns [na]key | input key as a String , for example, mstrWeb.1 |
---|
String corresponding to the key sent in as parameter, for example, Home
.
Obtains the dimension attribute given the WebDisplayUnit
instance provided.
unit | WebDisplayUnit initialized instance to analyze |
---|
WebDimensionAttribute
instance with the information obtained from the
input parameter.Indicates default value for match case checkbox.
Intended for prompt styles where searches on attributes or objects are supported, such as
cart prompts. Default value is determined by a project preference available in Web application.
any prompts that have a search field with a 'match case' check box will default to this property value.
Indicates block count, an incremental fetch value for displaying list of objects.
This value is used to determine the number of objects displayed per page or block.
Note: incremental fetch isn't supported by all prompt types and styles. Available only in object
prompts with Cart styles and most Hierarchical prompts.
Returns an arraylist containing DisplayWebUnits.
This list can be processed by a layout file using a "list" structure.
For example:
This snippet shows how the "list" structure gets its elements using the
getPromptsList function. The "render" method receives an item from the
list as an argument to give back some output.
Indicates property value for whether or not displaying required message.
Indicates Bean type of prompt object being used by the transform.
Provides factory class for creating HTML tags.
This TagsFactory
instance is a factory class which will allow
the creation of Tag
objects in order to create HTML tags.
Initializes the css information to be used by this transform.
Initializes the images to be used by this transform.
Checks whether a prompt has a default answer, and if it has, if the default answer is complex. Complex answers are those that cannot be displayed by the prompt answer input interface, so they need to be rendered in a separate window
Indicates whether or not 'Back to Top' anchor is enabled for current prompt.
Indicates whether or not DHTML mode is enabled.
Determines whether or not given prompt was defined as Dimty prompt.
Prompt is considered dimensional prompt if level flag allows to display default answer
and prompt's answer is considered as complex and prompt's type is Dimty.
Indicates property value for whether or not selected item in cart's 'From' list should be removed.
Determines whether given WebDisplayUnit
unit is locked up.
Tests if the lock type is DssXmlLockCustom
or DssXmlLockLimit
, in which case returns
True
unit | WebDisplayUnit to test. |
---|
True
if attribute is locked. Returns False
otherwise.Determines whether given WebDisplayUnit
unit is locked up for search only.
Tests if the lock type is DssXmlLockCustom
in which case
returns True
.
unit | WebDisplayUnit to test. |
---|
True
if attribute is locked. Returns False
otherwise.Indicates whether or not given prompt is initialized.
Shortcut method to check whether the prompt is required.
Indicates whether to display prompt summary or not.
This method is deprecated.
the method is not been called by others.
Renders hidden values for prompt's max/min limits.
Append prompt restrictions as hidden values to be used in DHTML mode for
validating dates vs the minimum/maximum values if there are any.
out | the transform output |
---|
Renders prompt's meaning information.
For the current answer, it renders it's meaning. Used when rendering
the prompt summary, or when the prompt has a complex answer.
out | the transform output |
---|
Renders HTML anchor to allow end users to go back to Top of Prompts page.
This anchor won't be rendered if given prompt happens to be first one in collection when displaying all
prompts in one page.
out | MarkupOutput where to write anchor. |
---|
Renders the body of the prompt content.
Each concrete class must override this method.
out | the transform output |
---|
Renders HTML area with default answer definition.
This answer is displayed below prompt question and it's only
informative.
out | where to write the output of the method. |
---|
Renders a localized generic error message to end-users.
Error is displayed mostly when a validation fails either in backend or SDK.
It is enabled in all prompt types and styles.
out | the transform output |
---|
Renders the hidden inputs of this prompt.
The inputs are retrieved from the answer event.
out | the transform output |
---|
Renders the content of the prompt in case of an IFrame request.
This method should be processed by the child transform if needed. Likely, when
Hierarchical Prompt tree style is being processed.
out | the transform output. |
---|
Renders the meaning of the prompt.
Meaning information is available in Prompt's definition.
It is rendered under the title.
out | the transform output |
---|
Displays error message indicating that available list doesn't have any
selection available.
Available mostly with embedded promtps, where second prompt doesn't have
selections. Error must be displayed to inform end-users.
out | the transform output |
---|
Renders a localized message for indicating given prompt is not answered.
It creates an HTML SPAN tag whose inner text is consisted of localized message
associated to descriptor id 1068 ('Prompt not answered').
out | MarkupOutput where to write message. |
---|
Renders each of the prompt fields in corresponding order.
Level is checked before rendering each prompt field. The rendering order
is as follows: title, error message (if any), meaning, restrictions, content or
no selections available (if applies), and finally default answer.
Each of these fields has its own render method, for example, title gets rendered
by function renderPromptTitle.
out | MarkupOutput instance where to append the transform output. |
---|
Renders prompt's restrictions.
Restrictions are available in current prompt's definition.
out | the transform output |
---|
Renders prompt's Summary section when Page is in 'Summary' mode.
It displays summary title and immediately it displayes summary answer.
out | the transform output |
---|
Renders the prompt's answer in a formatted string in 'Summary' mode.
out | the transform output |
---|
Renders Prompt's title in 'Summary' mode.
out | the transform output |
---|
Renders the title of the prompt.
out | the transform output. |
---|
Specifies incremental fetch value for the size of block of attribute's elements to be displayed.
count | int number of elements to display per page. |
---|
Specifies whether or not to display 'Back to Top' anchor.
Property being set by Prompts container transform.
flag | boolean true to display anchor. |
---|
Specifies flag value for enabling or disabling item removal in Cart prompt transforms.
flag | boolean true to remove selected item in 'From' list. |
---|
Specifies level of visibility for all fields in prompt question are displayed.
Prompt question is broken down in four visible fields: title, meaning, restriction and content.
Multiple fields can be displayed at the same time. Which fields to be displayed is indicated
by a bit-wise flag.
Allowed Values:
EnumPromptLevelFlags
level | bit-wise flag |
---|
Specifies default value for match case checkbox.
Intended for prompt styles where searches on attributes or objects are supported, such as
cart prompts. Default value is determined by a project preference available in Web application.
any prompts that have a search field with a 'match case' check box
flag | true to check off match case checkbox. |
---|
Specifies incremental fetch value for the size of block of objects to be displayed.
count | number of objects to display per page. |
---|
Specifies whether or not to enable prompt summary.
Used when prompt summary has to be displayed. Instead of rendering all prompt
quiestion fields, a brief prompt summary of current will be displayed.
flag | true enables prompt summary. |
---|
Specifies property for whether or not displaying required message.
show | boolean flag, true if 'Required' message gets displayed at the of the prompt title. |
---|
Transforms the PromptObject and append the output to the MarkupOutput.
Here, all output transformation take place. PromptObject is processed in order
to generate corresponding output through MarkupOutput instance.
Which type of output, either Prompt summary or prompt question, is determined here.
Images and prompt content get initialized prior to rendering prompt fields.
data | Transformable instance, hence the prompt to transform. |
---|---|
out | MarkupOutput where to append output by this Transform |
Indicates whether or not prompts are loaded the firt time.
It looks for any 'prompt' hidden value in request indicating there was a prompt request to
be processed. This means, user has started editing any prompt in report.
Indicates if the level parameter value contains given flag.
Level flag is used for determining which sections in prompt will be displayed.
iLevelConst | level flag |
---|
Returns instance of prompt answer event.
Returns an argument name for the given id.
Argument will be read from prompt's Answer event arguments collection.
Since the argument name depends on the PromptPosition, this method automatically returns the
argument corresponding to the current Prompt.
argumentId | the id |
---|
Specifies a WebDisplayUnits
collection of the available units of this prompt.
This collection is used for rendering prompt question.
Returns a localized instance of Calendar component.
This object is used for creating an calendar HTML object used for entering date values.
Retrieves the connected Container Services object.
If anything fails along the way, returns null.
Returns a descriptor (localized message) associated to this key.
key | int value for key or descriptor Id. |
---|
Provides an instance of Web display helper object.
This inteface is used to generate display XML containing both the contents
of an object (e.g. the current state of a filter) and a list of available objects which
the user can choose from to add to the object.
WebObjectsException | which must be handled. |
---|
Returns a localized error message.
Error message is associated to promptError code returned by SDK. It's
associated to a generic error message to be displayed.
promptError | instance of WebBeanError, most likely an validation error thrown in process prompt phase. |
---|
Returns the int
value of a FormalParamter
.
The FormalParamter
needs to be of type Integer
.
parameter | the formal parameter to check |
---|
Returns instance of current Locale.
Locale is used for localizing all messages displayed to end user.
Indicates instance of PromptObject PromptObject
being transformed.
This interface represents information about a single prompt.
It manages its position property and a WebPrompt object.
Determines prompt's AppContext.
It creates an AppContext from Prompt's Bean context.
Indicates current instance of PromptsBean to be transformed.
Returns the string value of the Formal Parameter.
parameter | the formal parameter to check |
---|
Indicates whether prompt instance has an answer in its definition.
It could be either a default or previous answer.
Initializes infrastructure needed for rendering prompt.
Part of initialization process requires to process or initialize at least three main areas:
Incremental fetch, available items and set extra arguments. Incremental fetch process will initialize
all corresponding objects needed for displaying it, if available. Available Items process, will require
few calls to SDK in order to retrieve information from backend. Setting extra arguments will add
at the end of the prompt's HTML form, all request parameters for persistance needed to be passed on every request.
Most likely, each prompt transform extending this interface will overwrite any of these functions. Each prompt type and
style might have different ways of initializing their data.
WebObjectsException | if an error occurs. Functions invoking this method must handle this exception accordingly. |
---|
Initializes prompt object to default values.
Here, properties for determining whether or not prompts are sorted by
required and level flag are specified.
Indicates whether or not Frame is active in Web application.
This method is deprecated.
This method has been deprecated since this is specific to expression prompts.
Use the method on AbstractPromptExpressionTransform.
Indicates if a single subexpression is considered as Complex.
An expression is complex if it cannot be created using the Web interface.
This is used by ExpressionPrompts transforms to determine if the Answer is Complex.
node | the root node of the subexpression to check |
---|
Indicates if given FormalParamter
is a Boolean True instance.
parameter | the formal parameter to check |
---|
Indicates whether or not this a prompted XDA Report.
Indicates whether or not this a prompted CustomSQL Report.
Indicates whether or not this a prompted MDX Report.
Retrieves a new instance of a Hidden Input Builder from the connected Container Services object.
If anything fails along the way, returns null.
Retrieves a new instance of a Namespace Encoder from the connected Container Services object.
If anything fails along the way, returns null.
Initializes display settings for retrieving available items defined in prompt.
This function will be responsible of initializing the settings for default highlighting and default selection
prior to getting a formatted DisplayXML, which is used for rendering prompt question. These settings will
be used for getting the available display units collection, which is used to display all available objects to
end user.
It will turn on default selection should be enabled. It will turn on default highlighting should be enabled.
It will turn off whether default highlighting preventing it from being detailed.
These settings will be applied to a WebDisplayHelper object, property part of current PromptObject. It is used to generate display XML containing
both the contents of an object (e.g. the current state of a filter) and a list of available objects which
the user can choose from to add to the object.
WebObjectsException | this exception must be handled. |
---|
Initializes incremental fetching settings.
This function has to be overwritten for prompts different to element
and object. It gets instance of WebPrompt by calling PromptObject.getWebPrompt()
function; WebPrompt is an interface that represents a prompt object. It defines functionality common
to all prompt types.
Depending upon what prompt type is, either element or object, properties for
incremental fetch are set. For element prompts, WebPrompt instance is cast to WebElementsPrompt
class and function setBlockCount is called.
In the case of an object prompt, we cast WebPrompt instance to a WebObjectsPrompt class. Here,
search object (WebSearch instance) gets modified. Name pattern and block count are set.
WebObjectsException | needs to be handled. |
---|
Renders transform using layout infrastructure.
It process prompt transform through Layouts and if this approach fails
a localized error message (descript 'An error has ocurred on this page' denoted by
descriptor id 116) is displayed.
out | where to write Prompt layout. |
---|
Specifies a new argument value denoted by an unique Id.
This new argument will set to prompt's Answer event arguments collection.
argumentId | the id |
---|---|
value | to be used for setting argument |
Sets extra arguments for this prompt.
These arguments will be render later as hidden inputs.
Sets active locale in Web application.
Locale is used for localizing all messages displayed to end user.
localeId | indicates country language to be used. |
---|