|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FillQueryContext
A QueryContext is used to resolve context prompting that may appear during document refresh.
A Context is used to avoid ambiguity when defining a query.
To retrieve a list of QueryContext needed to resolve context prompting
a RetrieveQueryContext object must be added to the RetrieveMustFillInfo object passed to
ReportEngine.getDocumentInformation.
Example: Retrieve a documents QueryContexts.
RetrieveMustFillInfo fillInfo = RetrieveMustFillInfo.Factory.newInstance();
RetrieveQueryContext queryContextInfo = RetrieveQueryContext.Factory.newInstance();
fillInfo.setRetrieveQueryContext(queryContextInfo);
Action[] actions = new Action[1];
// Add a Refresh action to the Action array.
actions[0] = Refresh.Factory.newInstance();
// Obtain a DocumentInformation object from the ReportEngine.
DocumentInformation boDocInfo = boRepEng.getDocumentInformation(docid,fillInfo,actions,null,null);
if (boDocInfo.getMustFillQueryContexts())
{
QueryContext[] boQueryInfo = boDocInfo.getQueryContextsArray();
}
Example: Set the list of QueryContexts to be sent to a document.
FillQueryContexts boQueryContext = FillQueryContexts.Factory.newInstance();
FillQueryContext[] fillQueryContext=new FillQueryContext[1];
fillQueryContext[0] = FillQueryContext.Factory.newInstance();
fillQueryContext[0].setID(boQueryInfo[0].getUID());
String[] strValue = {"Reservations"};
fillQueryContext[0].setValuesArray(strValue);
boQueryContext.setFillQueryContextListArray(fillQueryContext);
RetrieveData retBOData = RetrieveData.Factory.newInstance();
RetrieveView retBOView = RetrieveView.Factory.newInstance();
retBOData.setRetrieveView(retBOView);
actions[0]= boQueryContext;
boDocInfo = boRepEng.getDocumentInformation(reference,fillInfo,actions,null,retBOData);
QueryContext,
FillQueryContext,
FillQueryContexts,
QueryContext,
RetrieveView,
RetrieveData,
PromptInfo,
Action,
FillPrompts,
FillPrompt,
PromptValue,
RangePromptValue,
ReportEngine| Nested Class Summary | |
|---|---|
static class |
FillQueryContext.Factory
A class with methods for creating instances of the FillQueryContext type. |
| Field Summary | |
|---|---|
static org.apache.xmlbeans.SchemaType |
type
Internal Use Only. |
| Method Summary | |
|---|---|
org.apache.xmlbeans.XmlString |
addNewValues()
Appends and returns a new empty value as the last Values element |
void |
addValues(java.lang.String values)
Appends the value as the last Values element. |
java.lang.String |
getID()
Internal Use Only. |
java.lang.String[] |
getValuesArray()
Internal Use Only. |
java.lang.String |
getValuesArray(int i)
Internal Use Only. |
org.apache.xmlbeans.XmlString |
insertNewValues(int i)
Inserts and returns a new empty value as the ith Values element |
void |
insertValues(int i,
java.lang.String values)
Inserts the Values element at the specified index position. |
boolean |
isNilValuesArray(int i)
Checks if the Values" element is nil at the specified index position. |
void |
removeValues(int i)
Removes the Values element at the specified index position. |
void |
setID(java.lang.String id)
Sets the query context ID. |
void |
setNilValuesArray(int i)
Checks if the Values element is nil at the specified index position. |
void |
setValuesArray(int i,
java.lang.String values)
Sets a single query context value in the array of values. |
void |
setValuesArray(java.lang.String[] valuesArray)
Sets the array of strings containing query context values to be passed to the document when it is refreshed. |
int |
sizeOfValuesArray()
Returns the number of Values element. |
org.apache.xmlbeans.XmlString |
xgetID()
Internal Use Only. |
org.apache.xmlbeans.XmlString[] |
xgetValuesArray()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetValuesArray(int i)
Internal Use Only. |
void |
xsetID(org.apache.xmlbeans.XmlString id)
Internal Use Only. |
void |
xsetValuesArray(int i,
org.apache.xmlbeans.XmlString values)
Internal Use Only. |
void |
xsetValuesArray(org.apache.xmlbeans.XmlString[] valuesArray)
Internal Use Only. |
| Field Detail |
|---|
static final org.apache.xmlbeans.SchemaType type
Internal Use Only.
| Method Detail |
|---|
java.lang.String[] getValuesArray()
Internal Use Only.
java.lang.String getValuesArray(int i)
Internal Use Only.
org.apache.xmlbeans.XmlString[] xgetValuesArray()
Internal Use Only.
org.apache.xmlbeans.XmlString xgetValuesArray(int i)
Internal Use Only.
boolean isNilValuesArray(int i)
i - the index of the Values element
true if the Values element is nil, otherwise falseint sizeOfValuesArray()
void setValuesArray(java.lang.String[] valuesArray)
values - An array of strings containing query context values.FillQueryContext,
FillQueryContexts,
QueryContext,
RetrieveView,
RetrieveData,
Action,
FillPrompts,
FillPrompt,
PromptValue,
RangePromptValue,
ReportEngine
void setValuesArray(int i,
java.lang.String values)
Note: Before using this function,
#setValues(java.lang.String[] values) has to be called
to initialize the array.
i - The index of the query context value to be set.value - A single query context value.FillQueryContext,
FillQueryContexts,
QueryContext,
RetrieveView,
RetrieveData,
Action,
FillPrompts,
FillPrompt,
PromptValue,
RangePromptValue,
ReportEnginevoid xsetValuesArray(org.apache.xmlbeans.XmlString[] valuesArray)
Internal Use Only.
void xsetValuesArray(int i,
org.apache.xmlbeans.XmlString values)
Internal Use Only.
void setNilValuesArray(int i)
i - the index of the Values element
void insertValues(int i,
java.lang.String values)
i - the index of the Values element.values - the String value of Value element.void addValues(java.lang.String values)
values - the String value of Value element.org.apache.xmlbeans.XmlString insertNewValues(int i)
i - the index of the Values element
org.apache.xmlbeans.XmlString addNewValues()
void removeValues(int i)
i - the index of the Values elementjava.lang.String getID()
Internal Use Only.
org.apache.xmlbeans.XmlString xgetID()
Internal Use Only.
void setID(java.lang.String id)
ID - the query context ID.FillQueryContext,
FillQueryContexts,
QueryContext,
RetrieveView,
RetrieveData,
Action,
FillPrompts,
FillPrompt,
PromptValue,
RangePromptValue,
ReportEnginevoid xsetID(org.apache.xmlbeans.XmlString id)
Internal Use Only.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||