Class ReportServiceHelper
java.lang.Object
com.ptc.windchill.enterprise.report.ReportServiceHelper
- All Implemented Interfaces:
RemoteAccess
This helper class executes windchill report template based reports and third party jasper reports
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumReportFormatType enum used in executeThirdPartyReport it passes index value to executeThirdPartyReport
Supported API: true
Extendable: false -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDELEGATE_NAME to get report in formats of PDF, XML, CSV, HTML_WITH_SORTING, HTML_WITH_MERGING, HTML_WITH_SORTING_AND_MERGING
Supported API: true
Extendable: falsestatic final StringFORMAT parameter to declare FORMAT_DELEGATE
Supported API: true
Extendable: falsestatic final StringFORMAT_DELEGATE parameter to declare report will have delegated format
Supported API: true
Extendable: falsestatic final StringCustom input page will be ignore
Supported API: true
Extendable: falsestatic final StringSORT_ORDER to get report in sorted order.Fields inherited from interface wt.method.RemoteAccess
versionID -
Method Summary
Modifier and TypeMethodDescriptionstatic voidexecuteReport(WTReference reference, Map params, ReportServiceHelper.ReportFormatType reportFormatType, OutputStream output) Executes the report on server and writes the output to the OutputStream.
-
Field Details
-
FORMAT
FORMAT parameter to declare FORMAT_DELEGATE
Supported API: true
Extendable: false- See Also:
-
FORMAT_DELEGATE
FORMAT_DELEGATE parameter to declare report will have delegated format
Supported API: true
Extendable: false- See Also:
-
DELEGATE_NAME
DELEGATE_NAME to get report in formats of PDF, XML, CSV, HTML_WITH_SORTING, HTML_WITH_MERGING, HTML_WITH_SORTING_AND_MERGING
Supported API: true
Extendable: false- See Also:
-
SORT_ORDER
SORT_ORDER to get report in sorted order. Can be use with parameters like SORT_ASCENDING, SORT_DESCENDING, SORT_BY_INDEX
Supported API: true
Extendable: false- See Also:
-
IGNORE_CUSTOM_INPUT_PAGE
Custom input page will be ignore
Supported API: true
Extendable: false- See Also:
-
-
Method Details
-
executeReport
public static void executeReport(WTReference reference, Map params, ReportServiceHelper.ReportFormatType reportFormatType, OutputStream output) throws WTException Executes the report on server and writes the output to the OutputStream.
Supported API: true- Parameters:
reference- windchill report WTReferenceparams- report parametersreportFormatType- report format typeoutput- where the output of the report is written to. (This object should be closed by stream creator this method will not close OutputStream object)- Throws:
WTException
-