wt.query.template
Class ExportReportTemplate

java.lang.Object
  extended bywt.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:



Supported API: true
Extendable: false

See Also:
LoadReportTemplate

Field Summary
static String SEPARATOR
           
 
Constructor Summary
ExportReportTemplate()
           
 
Method Summary
private static void createFile(QueryResult qr)
           
private static void createXmlFile(ReportTemplate report, BufferedWriter writer)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEPARATOR

public static final String SEPARATOR
See Also:
Constant Field Values
Constructor Detail

ExportReportTemplate

public ExportReportTemplate()
Method Detail

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