wt.query.template
Class LoadSingleReportTemplate

java.lang.Object
  extended bywt.query.template.LoadSingleReportTemplate

public class LoadSingleReportTemplate
extends Object

Creates and persists a ReportTemplate object based on input from the command line.

Example Usage:

 java wt.query.template.LoadSingleReportTemplate ReportName FolderName PathToXMLFile [ContainerPath] [-replace]
 java wt.query.template.LoadSingleReportTemplate MyReport /System C:/reports/MyQuery.xml "/wt.inf.container.OrgContainer=DefaultOrg/wt.inf.library.WTLibrary=Windchill PDM"
 

This command would create the report "MyReport" in the System folder and set the Query XML to the contents of the file "C:/reports/MyQuery.xml". If an absolute path is not specified, then the default directory will be searched (wt.loadFiles.reports). The last argument is optional and it defines the container path. If no container path is specified, then the Site container is used when creating the ReportTemplate.

The replace option "-replace" can be used to update existing reports if they exist. If the report exists, then the Query XML attribut is set and the object is updated. If the report does not exist, then the normal create is done.



Supported API: true
Extendable: false


Field Summary
private static String REPLACE_OPTION
          Command line method for loading a single ReportTemplate.
 
Constructor Summary
LoadSingleReportTemplate()
           
 
Method Summary
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

REPLACE_OPTION

private static final String REPLACE_OPTION
Command line method for loading a single ReportTemplate.

See Also:
Constant Field Values
Constructor Detail

LoadSingleReportTemplate

public LoadSingleReportTemplate()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception