cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

onclick javascript not getting called from action

anabors-keating
4-Participant

onclick javascript not getting called from action

I have a custom action defined on more part actions. I want to add an onclick handler to prevent my action getting called for Separable attribute value. I have javascript ready. when I place my custom javascript method in begin_custom.jspf its not getting called. could you please explain is there any step missing in the way that I am doing? 1. Defined onclick on custom-actions.xml 2. Created javascript method in \netmarkets\jsp\util\begin_custom.jspf

1 REPLY 1

To add a new javascript function, you should use a jsfrag file.

Extract from the customization guide :

To add any custom javascript to all the pages, you should create a new custom

jsfrag file. The file needs to be deployed in: codebase\netmarkets\

javascript\util\jsfrags

The file can be named custom.jsfrag or any other name that is not already in

use.

To include the file in all pages run the combine command. This will make the js

available in main.js: Windchill/bin>ant -f jsfrag_combine.xml

Announcements

Top Tags