Skip to main content
5-Regular Member
August 28, 2023
Solved

Change Message Text in Change Request Popup dialog

  • August 28, 2023
  • 1 reply
  • 1287 views

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.

Best answer by HelesicPetr

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

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
August 28, 2023

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