|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ReportInfo
Interface ReportInfo represents a report,
Each report contains one or more report sheets.
Via ReportInfo users can access collection of report sheets, parameters, etc.
| Method Summary | |
|---|---|
boolean |
canExportDHTMLResult()
Deprecated. Needs to set the status for reports - APIConst.RPT_STATUS_CURRENT, APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL, or the server will use APIConst.RPT_STATUS_ALL as default value |
boolean |
canExportDHTMLResult(int status)
Checks if the report can export to DHTML result (.rsd result), this type of result can re-run as DHTML. |
java.lang.String[] |
getAllDataSource()
Deprecated. Needs to set the status for reports - APIConst.RPT_STATUS_CURRENT, APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL, or the server will use APIConst.RPT_STATUS_ALL as default value |
java.lang.String[] |
getAllDataSource(int status)
Gets all data source names a report uses. |
java.util.Vector |
getAvailableGroupFields()
Deprecated. You will not need to replace value options with available group fields when parameter is column. Example: You can comment the line in getRptDescPage.jsp like
//Vector grpCols = rptInfo.getAvailableGroupFields();
And you have to modify the Java code in getRptDescPage.jsp from
<%
if (desc.isColumn() && grpCols != null) {
%>
<select name="<%= APIConst.TAG_PARAM_PREFIX + desc.getName()%>" size="1">
<% int sz1 = grpCols.size();
for (int i1 = 0; i1 < sz1; i1++) {
String s = (String)grpCols.elementAt(i1);
to become
<%
if (desc.isColumn() ) {
%>
<select name="<%= APIConst.TAG_PARAM_PREFIX + desc.getName()%>" size="1">
<% Vector v = desc.getValueOptions(Locale.getDefault());
int sz1 = v.size();
for (int i1 = 0; i1 < sz1; i1++) {
String s = (String)v.elementAt(i1);
|
java.util.Vector |
getAvailableLanguages()
Deprecated. Needs to set the status for reports - APIConst.RPT_STATUS_CURRENT, APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL, or the server will use APIConst.RPT_STATUS_ALL as default value |
java.util.Vector |
getAvailableLanguages(int status)
Gets all of the Languages that the current report supports. |
java.util.Vector |
getBooleanColumns()
Returns boolean value fields of the report. |
ReportSheetInfo |
getCurrentReportSheet()
Deprecated. Needs to set the status for reports - APIConst.RPT_STATUS_CURRENT, APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL, or the server will use APIConst.RPT_STATUS_ALL as default value |
ReportSheetInfo |
getCurrentReportSheet(int status)
Returns the current report sheet information. |
java.lang.String |
getDefaultStyleGroupName()
Deprecated. Needs to set the status for reports - APIConst.RPT_STATUS_CURRENT, APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL, or the server will use APIConst.RPT_STATUS_ALL as default value |
java.lang.String |
getDefaultStyleGroupName(int status)
Gets the default style group name. |
java.util.Vector |
getOrderOfParams()
Deprecated. Needs to set the status for reports - APIConst.RPT_STATUS_CURRENT, APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL, or the server will use APIConst.RPT_STATUS_ALL as default value |
java.util.Vector |
getOrderOfParams(int status)
Returns the order of the parameters of the report. |
java.util.List<ParamInfo> |
getOriginalParamInfos(java.util.List<java.lang.String> rptSheets,
java.util.Map paramChangeProp)
Returns the original parameters of this report. |
java.lang.String |
getParamEngineId()
Deprecated. Needs to set the status for reports - APIConst.RPT_STATUS_CURRENT, APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL, or the server will use APIConst.RPT_STATUS_ALL as default value |
java.lang.String |
getParamEngineId(int status)
Returns the ID of the engine which generates parameters. |
java.util.Vector |
getParamInfos()
Deprecated. Needs to set the status for reports - APIConst.RPT_STATUS_CURRENT, APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL, or the server will use APIConst.RPT_STATUS_ALL as default value |
java.util.Vector |
getParamInfos(int status)
Returns the parameters of this report. |
java.util.List<ParamInfo> |
getParamInfos(java.util.List<java.lang.String> rptSheets,
java.util.Map paramChangeProp)
Returns the parameters of this report. |
java.util.Vector |
getParamInfosByParam(java.lang.String paramName,
java.lang.String value,
java.lang.String paramEngineId)
Returns the parameters of this report according to the name and the value of a specific parameter. |
java.util.Vector |
getParamInfosByParam(java.lang.String paramName,
java.lang.String value,
java.lang.String paramEngineId,
int status)
Returns the parameters of this report according to the name and the value of a specific parameter. |
java.util.Vector |
getParamInfosByValue(java.lang.String paramName,
java.lang.String[] values,
java.lang.String paramEngineId,
int status)
Returns the parameters of this report according to the name and the value of a specific parameter. |
java.util.Vector |
getParamInfosByValue(java.lang.String paramName,
java.lang.String value,
java.lang.String paramEngineId)
Returns the parameters of this report according to the name and the value of a specific parameter. |
java.util.Vector |
getParamInfosByValue(java.lang.String paramName,
java.lang.String value,
java.lang.String paramEngineId,
int status)
Returns the parameters of this report according to the name and the value of a specific parameter. |
java.util.Vector<CRDInfoKey> |
getQueryInfos()
Returns all queries which are used in the report. |
java.util.Vector |
getReportFontFiles()
Gets the font file names of a report. |
java.util.Vector |
getReportImageFiles()
Gets the image file names of a report. |
java.util.Vector |
getReportSheetInfos()
Deprecated. As of 8.0, replaced by getReportSheetInfos(int) with status APIConst.RPT_STATUS_ALL |
java.util.Vector |
getReportSheetInfos(int status)
Returns specified status sheets of this report. |
java.util.Vector |
getReportSubreports()
Gets the sub-report names of a report. |
java.util.Map |
getSheetParamNames(int status)
Returns all sheets and their parameters relationship Map |
java.util.Vector |
getStyleGroupInfos()
Deprecated. Needs to set the status for reports - APIConst.RPT_STATUS_CURRENT, APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL, or the server will use APIConst.RPT_STATUS_ALL as default value |
java.util.Vector |
getStyleGroupInfos(int status)
Returns the style group of the report. |
boolean |
hasPageSecurity()
Deprecated. Needs to set the status for reports - APIConst.RPT_STATUS_CURRENT, APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL, or the server will use APIConst.RPT_STATUS_ALL as default value |
boolean |
hasPageSecurity(int status)
Checks if the report has page security. |
boolean |
hasReportParam()
Deprecated. Needs to set the status for reports - APIConst.RPT_STATUS_CURRENT, APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL, or the server will use APIConst.RPT_STATUS_ALL as default value |
boolean |
hasReportParam(int status)
checks if any sheets in a report have parameters. |
boolean |
isPortletPreferred()
If the report contains only one report sheet, and the report sheet is portlet preferred. |
void |
removeParamEngineById(java.lang.String paramEngineId)
Removes engine object according to the ID of the engine which generates parameters. |
java.lang.String |
validateParameter(int status,
java.util.Properties prop)
Checks parameters validation, if all parameters pass the validation return null, otherwise return invalidation information. |
| Method Detail |
|---|
java.util.Vector getReportSheetInfos()
throws RptServerException
getReportSheetInfos(int) with status APIConst.RPT_STATUS_ALL
RptServerException - if an RptServerException occurs.ReportSheetInfo
java.util.Vector getReportSheetInfos(int status)
throws RptServerException
status - the status indicating which status sheet will be included in the result - APIConst.RPT_STATUS_CURRENT,
APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL
RptServerException - if an RptServerException occurs.ReportSheetInfo
java.util.Vector getParamInfos()
throws RptServerException
RptServerException - if an RptServerException occurs.ParamInfo
java.util.Vector getParamInfos(int status)
throws RptServerException
status - the status indicating sub reports of this report - APIConst.RPT_STATUS_CURRENT,
APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL
RptServerException - if an RptServerException occurs.ParamInfo
java.util.List<ParamInfo> getParamInfos(java.util.List<java.lang.String> rptSheets,
java.util.Map paramChangeProp)
throws RptServerException
rptSheets - the report sheets namesparamChangeProp - the property about parameter(s) changing information
RptServerException
java.util.List<ParamInfo> getOriginalParamInfos(java.util.List<java.lang.String> rptSheets,
java.util.Map paramChangeProp)
throws RptServerException
rptSheets - the report sheets namesparamChangeProp - the property about parameter(s) changing information
RptServerException
java.util.Vector getParamInfosByParam(java.lang.String paramName,
java.lang.String value,
java.lang.String paramEngineId)
throws RptServerException
paramName - the parameter name.value - the value of the parameter.paramEngineId - the ID of the engine which generates the parameters.
RptServerException - if an RptServerException occurs.ParamInfo
java.util.Vector getParamInfosByParam(java.lang.String paramName,
java.lang.String value,
java.lang.String paramEngineId,
int status)
throws RptServerException
paramName - the parameter name.value - the value of the parameter.paramEngineId - the ID of the engine which generates the parameters.status - the status for reports - APIConst.RPT_STATUS_CURRENT,
APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL
RptServerException - if an RptServerException occurs.
RptServerException
java.util.Vector getParamInfosByValue(java.lang.String paramName,
java.lang.String value,
java.lang.String paramEngineId)
throws RptServerException
paramName - the parameter name.value - the value of the parameter.paramEngineId - the ID of the engine which generates the parameters.
RptServerException - if an RptServerException occurs.ParamInfo
java.util.Vector getParamInfosByValue(java.lang.String paramName,
java.lang.String value,
java.lang.String paramEngineId,
int status)
throws RptServerException
paramName - the parameter name.value - the value of the parameter.paramEngineId - the ID of the engine which generates the parameters.status -
RptServerException - if an RptServerException occurs.
java.util.Vector getParamInfosByValue(java.lang.String paramName,
java.lang.String[] values,
java.lang.String paramEngineId,
int status)
throws RptServerException
paramName - the parameter name.values - the values of the parameter.paramEngineId - the ID of the engine which generates the parameters.status -
RptServerException - if an RptServerException occurs.
boolean hasReportParam()
throws RptServerException
RptServerException - if an RptServerException occurs.
boolean hasReportParam(int status)
throws RptServerException
status - the status for reports - APIConst.RPT_STATUS_CURRENT,
APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL
RptServerException
java.util.Map getSheetParamNames(int status)
throws RptServerException
status - the status for reports - APIConst.RPT_STATUS_CURRENT,
APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL
RptServerException
ReportSheetInfo getCurrentReportSheet()
throws RptServerException
RptServerException - if an RptServerException occurs.
ReportSheetInfo getCurrentReportSheet(int status)
throws RptServerException
status - the status for reports - APIConst.RPT_STATUS_CURRENT,
APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL
RptServerException - if an RptServerException occurs.
java.lang.String getParamEngineId()
throws RptServerException
RptServerException - if an RptServerException occurs.
java.lang.String getParamEngineId(int status)
throws RptServerException
status - the status for reports - APIConst.RPT_STATUS_CURRENT,
APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL
RptServerException - if an RptServerException occurs.
void removeParamEngineById(java.lang.String paramEngineId)
throws RptServerException
paramEngineId - the ID of the engine which generates parameters.
RptServerException - if an RptServerException occurs.
java.util.Vector getAvailableGroupFields()
throws RptServerException
//Vector grpCols = rptInfo.getAvailableGroupFields();
And you have to modify the Java code in getRptDescPage.jsp from
<%
if (desc.isColumn() && grpCols != null) {
%>
<select name="<%= APIConst.TAG_PARAM_PREFIX + desc.getName()%>" size="1">
<% int sz1 = grpCols.size();
for (int i1 = 0; i1 < sz1; i1++) {
String s = (String)grpCols.elementAt(i1);
to become
<%
if (desc.isColumn() ) {
%>
<select name="<%= APIConst.TAG_PARAM_PREFIX + desc.getName()%>" size="1">
<% Vector v = desc.getValueOptions(Locale.getDefault());
int sz1 = v.size();
for (int i1 = 0; i1 < sz1; i1++) {
String s = (String)v.elementAt(i1);
RptServerException - if an RptServerException occurs.
java.util.Vector getOrderOfParams()
throws RptServerException
RptServerException - if an RptServerException occurs.
java.util.Vector getOrderOfParams(int status)
throws RptServerException
status - the status for reports - APIConst.RPT_STATUS_CURRENT,
APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL
RptServerException - if an RptServerException occurs.
java.util.Vector getStyleGroupInfos()
throws RptServerException
RptServerException - if an RptServerException occurs.
java.util.Vector getStyleGroupInfos(int status)
throws RptServerException
status - the status for reports - APIConst.RPT_STATUS_CURRENT,
APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL
RptServerException - if an RptServerException occurs.
java.util.Vector getBooleanColumns()
throws RptServerException
RptServerException - if an RptServerException occurs.
java.util.Vector getAvailableLanguages()
throws RptServerException
RptServerException - if an RptServerException occurs.
java.util.Vector getAvailableLanguages(int status)
throws RptServerException
status - the status for reports - APIConst.RPT_STATUS_CURRENT,
APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL
RptServerException - if an RptServerException occurs.
boolean hasPageSecurity()
throws RptServerException
RptServerException - if an RptServerException occurs.
boolean hasPageSecurity(int status)
throws RptServerException
RptServerException - if an RptServerException occurs.
boolean canExportDHTMLResult()
throws RptServerException
RptServerException - if an RptServerException occurs.
boolean canExportDHTMLResult(int status)
throws RptServerException
status - the status for reports - APIConst.RPT_STATUS_CURRENT,
APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL
RptServerException - if an RptServerException occurs.
java.lang.String getDefaultStyleGroupName()
throws RptServerException
RptServerException - if an RptServerException occurs.
java.lang.String getDefaultStyleGroupName(int status)
throws RptServerException
status - the status for reports - APIConst.RPT_STATUS_CURRENT,
APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL
RptServerException - if an RptServerException occurs.
java.util.Vector getReportImageFiles()
throws RptServerException
RptServerException - if an RptServerException occurs.
java.util.Vector getReportFontFiles()
throws RptServerException
RptServerException - if an RptServerException occurs.
java.util.Vector getReportSubreports()
throws RptServerException
RptServerException - if an RptServerException occurs.
java.lang.String[] getAllDataSource()
throws RptServerException
RptServerException - if an RptServerException occurs.
java.lang.String[] getAllDataSource(int status)
throws RptServerException
status - the status for reports - APIConst.RPT_STATUS_CURRENT,
APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALL.
RptServerException - if an RptServerException occurs.
boolean isPortletPreferred()
throws RptServerException
RptServerException - if an RptServerException occurs.
java.lang.String validateParameter(int status,
java.util.Properties prop)
throws RptServerException
status - the status represents sheets of the report - APIConst.RPT_STATUS_CURRENT,
APIConst.RPT_STATUS_OPEN and APIConst.RPT_STATUS_ALLprop - the property of the task.
RptServerException - if an RptServerException occurs.
java.util.Vector<CRDInfoKey> getQueryInfos()
throws RptServerException
RptServerException - if an RptServerException occurs.CRDInfoKey
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||