Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hi...
How do we include our own JavaScript code within the WebClient? We have some functionality that we need to build to extend the UI beyond what the Presentation Templates can provide. We can get everything done that we need to if we can #1) include our own JavaScript functions in the HTML pages that are sent to the client, and #2) invoke that JavaScript from the elements that we can create in Rich Content fields. We know about, and will manage on our own, any of the cross-browser JavaScript incompatibilities.
Example:
var experiment = "<!-- MKS HTML --><script type=\"text/javascript\">function clicked(){ alert(\"hi mom\");}</script><button onclick()=\"clicked()\">Testing</button>";
delta.setFieldValue("Test Result Rollup", experiment);
The button shows up, but it is not responding to the click event.
For us, this will shortly become a very important thing to be able to do. The reason is that the capability of the current Integrity User Interface that is based on Presentation Templates has prevented us from coming up with a solution to our User-Interface needs. The essential problem is that we need to greatly simplify things for our users by creating a UI that can update multiple items and multiple item-types all at once from a single user-action, depending on the context of what the user is viewing. The Presentation Templates, and the single-item-centric design, of the Integrity UI prevent us from accomplishing what we need to do. We can manage the transactions that need to be processed for updating multiple items from one user-action.
Please advise.
-Sean
Solved! Go to Solution.
For anyone else interested in this functionality, pease contact PTC Integrity Support to be associated with feature request RFC 997194/CS186914: Is it possible to make custom JavaScript functions available in the Integrity WebClient? .
You may also be interested in the broader feature RFC 131213/CS 86890: Use standard HTML and CSS for presentation templates and dashboards.
Regards,
Kael
Hello Sean,
The only part of the product that supports any sort of custom JavaScript is reports. The main reason for this appears to be related to security concerns.
Please open a case with PTC Integrity Support to create a feature request. If you feel strongly about this also discuss this with your account manager.
Regards,
Kael
Thanks, Kael... I'll enter a case for this.
-Sean
For anyone else interested in this functionality, pease contact PTC Integrity Support to be associated with feature request RFC 997194/CS186914: Is it possible to make custom JavaScript functions available in the Integrity WebClient? .
You may also be interested in the broader feature RFC 131213/CS 86890: Use standard HTML and CSS for presentation templates and dashboards.
Regards,
Kael