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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Change Message Text in Change Request Popup dialog

YannickM
5-Regular Member

Change Message Text in Change Request Popup dialog

Hello together,

 

is it possible to change the text of the "Submit Now" / "Submit Later" Dialog in Change Request creation?

Capture.PNG

I found an article to disable the dialog: https://www.ptc.com/en/support/article/CS79510

But the text seems to be in a .class file. Is there a possibility to override it?

Thank you.

ACCEPTED SOLUTION

Accepted Solutions
HelesicPetr
22-Sapphire I
(To:YannickM)

Hi @YannickM 

Yes you can rewrite the java code and recompile the java file to class and rewrite the OOTB one.

 

file location> Windchill\src\com\ptc\windchill\enterprise\change2\change2ClientResource.java

rbEntry

    @RBEntry("<br><b>CONFIRMATION</b>: Submit the change object now?<br><br>Click \"Submit Now\" to submit the change object now.<br>Click \"Submit Later\" to submit the change object at another time.")
    @RBComment("The string displayed to a user when they attempt to submit a change object where Submit Now is enabled.  The <br> and <b> tags are needed because this text is dumped directly into HTML content at runtime.  There are three distinct sentences.  the first is the header message.  The remaining two are the instructions.")
    public static final String SUBMIT_NOW_MESSAGE = "SUBMIT_NOW_MESSAGE";

 just change the RBEntry to different text and compile the file. 

 

Following article describes how to compile java in windchill CS361074 - How to compile custom Java class in Windchill PLM

 

PetrH

View solution in original post

1 REPLY 1
HelesicPetr
22-Sapphire I
(To:YannickM)

Hi @YannickM 

Yes you can rewrite the java code and recompile the java file to class and rewrite the OOTB one.

 

file location> Windchill\src\com\ptc\windchill\enterprise\change2\change2ClientResource.java

rbEntry

    @RBEntry("<br><b>CONFIRMATION</b>: Submit the change object now?<br><br>Click \"Submit Now\" to submit the change object now.<br>Click \"Submit Later\" to submit the change object at another time.")
    @RBComment("The string displayed to a user when they attempt to submit a change object where Submit Now is enabled.  The <br> and <b> tags are needed because this text is dumped directly into HTML content at runtime.  There are three distinct sentences.  the first is the header message.  The remaining two are the instructions.")
    public static final String SUBMIT_NOW_MESSAGE = "SUBMIT_NOW_MESSAGE";

 just change the RBEntry to different text and compile the file. 

 

Following article describes how to compile java in windchill CS361074 - How to compile custom Java class in Windchill PLM

 

PetrH

Announcements

Top Tags