Samples of Windchill Development:

Webject Samples:
Sample Display-Table Webject JSP, that displays my Employment History:
http://windchill.datajett.com//wc_dev/jsp/LJ_EmpHist.jsp.txt

The JSP file should be placed in your IE (InfoEngine) JSP folder:
<WT_HOME>\codebase\infoengine\jsp\
========================================================
It reads its data from a task xml file (Virtual Database [VDB]):
http://windchill.datajett.com/wc_dev/tasks/LJ_EmpHist.xml

The task xml file should be placed in your tasks/example folder:
<WT_HOME>\tasks\infoengine\examples\
========================================================
This JSP file below is also a Display-Table Webject, but uses a Windchill IE
SAK Java Bean and contains the employment history within:
http://windchill.datajett.com/wc_dev/jsp/LJ_EmpHist_JB.jsp.txt

It should also be placed in your IE (InfoEngine) JSP folder also:
<WT_HOME>\codebase\infoengine\jsp\
========================================================
All JSP files can then be viewed from your Virtual Windchill JSP location:
http://Host.Company.com/Windchill/infoengine/jsp/LJ_EmpHist.jsp.txt
or
http://Host.Company.com/Windchill/infoengine/jsp/LJ_EmpHist_JB.jsp.txt
========================================================

jsp- (most all code should be placed in your Windchill virtual jsp folder:

<WT_HOME>/codebase/infoengine/jsp )

Query Windchill, Oracle or Intralink
to query windchill/oracle/intralink for standard info:

??? wtpartmaster, epmdocumentmaster, wtdocument, workspace

========================================================

Customized workflows:

http://windchill.datajett.com/wc_dev/workflow/cust_wf.htm

========================================================

java- (most all code is generated with package lj_cust, which should be
located at <WT_HOME>/codebase/lj_cust - easily modifiable )

Some companies choose to auto truncate the extension on
their cad data files (epm-docs), through ini file settings:

<WT_HOME>\codebase\com\ptc\windchill\cadx\cfg\default\cadxhtmlui.ini

UploadDropNameFileExtension=true
UploadDropNumberFileExtension=true
AutoAssociateDropNameFileExtension=true
AutoAssociateDropNumberFileExtension=true

Rename project:

http://windchill.datajett.com/wc_dev/lj_cust/ObjMan_06.zip

command line:

To query objects 1st:

java lj_cust.ObjMan_06 -qb %.DRW
java lj_cust.ObjMan_06 -qb %.ASM
java lj_cust.ObjMan_06 -qb %.PRT

To rename objects 1st:

java lj_cust.ObjMan_06 -rb %.DRW
java lj_cust.ObjMan_06 -rb %.ASM
java lj_cust.ObjMan_06 -rb %.PRT

run program without arguments to see Usage:

java lj_cust.ObjMan_06

The rename program will rename all data files/objects that previously
contained file extensions.

It renames windchill epm-doc (drw, prt, asm) & wtpart objects to
truncate the extension of the windchill oracle number field.

from: xxx1.prt, xxx2.asm & xxx?.drw

to: xxx1, xxx2 & xxx?.D
(can be modified to a different extension for drawings = _D, ???)

Some firms link to name their asm & prt files the same for integrated/inseparable parts.
This program will rename the .PRT to .P, so there is no duplicate objects numbers:

http://windchill.datajett.com/wc_dev/lj_cust/PA_Ren_06.java

====================

Query LifeCycle States:
Simple java class to query lifeCycle states:

http://windchill.datajett.com/wc_dev/lj_cust/lifecycleState.java
http://windchill.datajett.com/wc_dev/lj_cust/lifecycleState.class


Example:

wt.lifecycle.State[0]: ACCEPTED
wt.lifecycle.State[1]: APPROVED
wt.lifecycle.State[2]: ASSEMBLY
wt.lifecycle.State[3]: ASSIGNED
wt.lifecycle.State[4]: CANCELLED
...............

====================

http://windchill.datajett.com/wc_dev/lj_cust/LJ_Objects_02.class http://windchill.datajett.com/wc_dev/lj_cust/LJ_Objects_02.java

java lj_cust.LJ_Objects_02
Introspection Runtime Mode = true
WtPart - Number: GC000002 - Name: LEG
WtPart - Number: GC000003 - Name: LEFT_ACTUATOR
........
Number of WTPartMaster Objects: 58

EpmDoc - Number: 00000001 - Name: xxx.prt
EpmDoc - Number: 00000002 - Name: yyy.asm
........
Number of EPMDocument Objects: 201

WtDocument - Number: 0000000042 - Name: wtpart_sql_chk.csv
WtDocument - Number: 0000000043 - Name: wtpart_sql_chk2.csv
WtDocument - Number: 1234.doc - Name: 1234.doc
........
Number of WTDocument Objects: 14

====================

SQL Query of a Windchill, Oracle or Intralink Database. Used to query
windchill/oracle/intralink for standard info (same as above JSP Query,
but this is a java application & output can go to html, txt (text),
cvs, etc):

Open Instructional & download Page:

http://windchill.datajett.com/DBJettJT/DBJettJT.htm