Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Hello, please tell me how I can add my button to some page that will run java code?
Solved! Go to Solution.
https://wnc_host/Windchill/netmarkets/test.jsp
new Ajax.Request('netmarkets/test.jsp', {
method:'get',
onSuccess: function(transport) {
var response = transport.responseText || "no response text";
alert("Success! \n\n" + response);
},
onFailure: function() { alert('Something went wrong...'); }
});
This information is just an example of how you can invoke a Java code.
Most of new administrative UI use Angular, you can see examples in the directory: Windchill_home/codebase/apps/
Hi Vlad,
Can you add more details, what type of page you want to customize?
Did you read Windchill Customizer guide?
Windchill UI use different technology, solution may be different.
To invoke java code, you can use: Servlet, JSP, IE tasks, REST Services, RMI call via http...
Hello, Ivan, I want to add a button to the main page, when you click on the button to run exactly java code, for example, the output of the contents of the database table. Foreign objects I created according to the documentation in the jsp file
https://wnc_host/Windchill/netmarkets/test.jsp
new Ajax.Request('netmarkets/test.jsp', {
method:'get',
onSuccess: function(transport) {
var response = transport.responseText || "no response text";
alert("Success! \n\n" + response);
},
onFailure: function() { alert('Something went wrong...'); }
});
This information is just an example of how you can invoke a Java code.
Most of new administrative UI use Angular, you can see examples in the directory: Windchill_home/codebase/apps/