JavaScript Files
To add custom JavaScript functionalityto Windchill JCA UI or pages, perform the following steps:
1. Create a folder at the following path: <customizationRootDirectory>/<module>/main/src_web. For example, ext folder.
2. Create a JavaScript file (extension .js or .JS) for the required functionality and add it to the new folder. For example, custom.js.
3. Create the custom.site.xconf file in the <customizationRootDirectory>/configurations/xconf folder, if it has not been already created.
4. Register the JavaScript file by adding or updating the following property in the custom.site.xconf file to point to the new JavaScript file.
<AddToProperty name="netmarkets.presentation.jsFiles" value="<folder>/<JS File Name>"/>
An example is given below:
<AddToProperty name="netmarkets.presentation.jsFiles" value="ext/custom.js"/>
You can add multiple JS files as a semicolon-separated list in the value.
Deploy Customization on Development Environment
For information on the CCD process for deployment, see Deploy Your Customizations on Your Development Environment.
Prepare CCD Package for Promotion
For information on the CCD process for promotion, see Deploying Code and Configuration Package.
Was this helpful?