wt.query.template
Class ExportReportTemplate
java.lang.Object
wt.query.template.ExportReportTemplate
- public class ExportReportTemplate
- extends Object
Exports selected Report Templates from the database. The symbol '%' can be
used as a wildcard in the report name to find the best fit. Just specifying
the % will find all the reports.
Example Usage:
java wt.query.template.ExportReportTemplate ReportName ContainerPath [true|false]
java wt.query.template.ExportReportTemplate User% "/wt.inf.container.OrgContainer=DefaultOrg/wt.inf.library.WTLibrary=Windchill PDM" true
The second argument is optional and specifies the container path. If not
specified, then the site container is used to find the report template.
The last argument is also optional and the default is true. This argument
specifies whether the container criteria should be hierarchical. If true,
then the criteria will match the specified container or any of its parent
containers. If false, then only the specified container wil be matched.
Generates Name/Value pairs of Report Template attributes to the file exportreports.csv
The attributes are as follows:
- command(ReportTemplate)
- folder
- name(Report Template name)
- description (commas replace with space)
- xml(file location)
- xslType(DEL, URL or empty)
- service(HTML, XML, CSV.....)
- containerPath
- url1(required for xslType = URL)
- url2
Supported API: true
Extendable: false
- See Also:
LoadReportTemplate
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SEPARATOR
public static final String SEPARATOR
- See Also:
- Constant Field Values
ExportReportTemplate
public ExportReportTemplate()
main
public static void main(String[] args)
createFile
private static void createFile(QueryResult qr)
throws WTException
- Throws:
WTException
createXmlFile
private static void createXmlFile(ReportTemplate report,
BufferedWriter writer)
throws WTException
- Throws:
WTException