|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Prompt
The Prompt interface provides access to the properties and functionalities of the prompt mechanism.
Depending on the properties of the prompt, values can be entered from a list of values, or manually, or both. Some prompts can have more than one value, and some prompts can be nested.
Prompts must be answered (filled) every time the query is executed with
DataProvider.runQuery; when the document is
refreshed with DocumentInstance.refresh.
PromptType,
Prompts,
Lov,
Values| Method Summary | |
|---|---|
void |
enterValues(java.lang.String[] values)
Enters values for the prompt. |
void |
enterValues(ValueFromLov[] values)
Enters a ValueFromLov for the Prompt. |
java.lang.String[] |
getCurrentValues()
Gets the current values entered for the prompt. |
ValueFromLov[] |
getCurrentValuesFromLov()
Gets the current ValueFromLov entered for the
Prompt. |
DataProvider[] |
getDataProviders()
Returns an array containing the data provider(s) attached to this prompt. |
java.lang.String[] |
getDefaultValues()
Gets the default values for the prompt. |
ValueFromLov[] |
getDefaultValuesFromLov()
Gets the default ValueFromLov for the Prompt. |
java.lang.String |
getID()
Returns an identifier independent from the Preferred Viewing Locale. |
java.lang.String |
getInputFormat()
Returns the input format for the prompt. |
Lov |
getLOV()
Gets the list of values associated with the prompt. |
java.lang.String |
getName()
Gets the name of the prompt. |
ObjectType |
getObjectType()
Gets the type of values the prompt takes. |
java.lang.String[] |
getPreviousValues()
Gets the previous values for the prompt. |
ValueFromLov[] |
getPreviousValuesFromLov()
Gets the previous ValueFromLov for the Prompt. |
PromptType |
getType()
Gets the prompt type. |
boolean |
hasLOV()
Checks if this prompt has an associated list of values. |
boolean |
isConstrained()
Checks if the user must answer a prompt with a value from a list of values. |
boolean |
isOptional()
Checks if entering a value for this Prompt is optional or not. |
boolean |
isRowIndexed()
Returns true if the Lov associated to the
Prompt is indexed. |
void |
removeValues(java.lang.String[] values)
Removes values that have been entered for the prompt. |
void |
removeValuesFromLov(ValueFromLov[] value)
Removes ValueFromLov objects that have been entered for
the Prompt. |
boolean |
requireAnswer()
Checks if the prompt requires an answer. |
| Method Detail |
|---|
boolean requireAnswer()
Returns false, if the prompt is optional.
boolean isConstrained()
list of values. This property is set when the prompt is
defined.
ObjectType getObjectType()
ObjectTypeboolean hasLOV()
Prompt.getLOV(),
Lovjava.lang.String getName()
The name of the prompt is the string entered as the question for the user, for example, "Enter the year".
PromptType getType()
PromptTypejava.lang.String getInputFormat()
Unless this is a date prompt, this method always returns "" if
ReportEngine.getCanEditDocument() returns false.
That is to say, the ReportEngine instance used to open
this DataProvider was opened to run Desktop Intelligence
documents.
java.lang.String[] getDefaultValues()
Values.isDefault(int).java.lang.String[] getPreviousValues()
java.lang.String[] getCurrentValues()
void enterValues(java.lang.String[] values)
values
parameter.
values - an array containing the values to be entered for the promptLovvoid removeValues(java.lang.String[] values)
values - an array containing the values to be removed from the promptLov getLOV()
Prompt.hasLOV(),
LovDataProvider[] getDataProviders()
ReportEngine.getCanEditDocument() returns false.
That is to say, the ReportEngine instance was opened to
run Desktop Intelligence documents.
DataProvidervoid enterValues(ValueFromLov[] values)
ValueFromLov for the Prompt.
If the Prompt is constrained, use values from the list of
values to create the values parameter.
values - an array containing the values to be entered for the promptLovValueFromLov[] getCurrentValuesFromLov()
ValueFromLov entered for the
Prompt.
ValueFromLov for
the Prompt.ValueFromLov[] getDefaultValuesFromLov()
ValueFromLov for the Prompt.
Use this method to pre-select or highlight particular values in the
Prompt.
ValueFromLov for the
Prompt. Values.isDefault(int).ValueFromLov[] getPreviousValuesFromLov()
ValueFromLov for the Prompt.
ValueFromLov for
the Prompt.void removeValuesFromLov(ValueFromLov[] value)
ValueFromLov objects that have been entered for
the Prompt.
value - An array containing the ValueFromLov to be
removed from a Prompt.boolean isRowIndexed()
true if the Lov associated to the
Prompt is indexed.
true if values are indexed or false
if they are not.Lovboolean isOptional()
Prompt is optional or not.
true if entering value is optional, otherwise false.java.lang.String getID()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||