Skip to main content
12-Amethyst
March 11, 2026
Question

How to locate and register custom js

  • March 11, 2026
  • 1 reply
  • 74 views

Hi @TDT 

 

Reference topic: custom Picker Callback not working - PTC Community

 

Can you please show me the exact way and location to register custom js

In my case I have created custom js and registered at this location Windchill\codebase\netmarkets\jsp\custom\contextPickerJSP.jsp

 

<%@ include file="/netmarkets/jsp/util/begin.jspf"%>
<%@ taglib uri="http://www.ptc.com/windchill/taglib/core" prefix="wc"%>

<script type="text/javascript"
src="<%=request.getContextPath()%>/netmarkets/javascript/custom/contextPickerHelper.js">
</script><%@include file="/netmarkets/jsp/util/end.jspf"%>

 

1 reply

Fadel
23-Emerald I
March 13, 2026
  1. Place custom.jsfrag file under “<WT_HOME>\codebase\netmarkets\javascript\util\jsfrags\”

 

  1. To combine this custom.jsfrag file into windchill-all.js file execute below command in Windchill Shell:

 

        ant -f bin\jsfrag_combine.xml

 

Buiꓘa