Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
Hello Everyone,
Has anyone succeeded in implementing a Dynamic banner on top of the Windchill page near the Windchill logo to relay messages to Users like Maintenance details of the system for example?
I know of the static display banner which can be used to display text that is updated with a restart of the Windchill, but I'm looking at some ways where it needs to be dynamic without a restart of Windchill, like display content from a text file stored somewhere
Thanks in advance!
Amar
Solved! Go to Solution.
I have a couple of solutions that take effect without a restart (they typically apply at the next page refresh or login
The first is following PTC's instructions for modifying Banner.txt (We have been using this since 11.2)
Additionally, I was able to take this another step further and use the reference here (https://www.w3schools.com/howto/howto_js_alert.asp) in addition to banner.txt to create some custom banners. This did require some additional logic and a new JSP file. The result is a maintenance banner that is seen at login / and page refresh... and a "Terms of Use" banner that covers the page, and is only seen once as long as the person agrees to the terms of use.
I have a couple of solutions that take effect without a restart (they typically apply at the next page refresh or login
The first is following PTC's instructions for modifying Banner.txt (We have been using this since 11.2)
Additionally, I was able to take this another step further and use the reference here (https://www.w3schools.com/howto/howto_js_alert.asp) in addition to banner.txt to create some custom banners. This did require some additional logic and a new JSP file. The result is a maintenance banner that is seen at login / and page refresh... and a "Terms of Use" banner that covers the page, and is only seen once as long as the person agrees to the terms of use.
Thanks for responding @jbailey
But i have a question, even with this approach of having a separate jsp & a .txt file to store content, wont it require a Method server restart every time if the content to be displayed is changed in the .txt file?
Nope, the jsp files are read real-time. do the simple example in the banner.txt.
Note: This step only needs to be done once (to enable the functionality)
Once that enables the banner, modifications to banner.txt are read without restart. The banner is "disabled" by commenting out the banner text you display.
Example: with banner text on:
<font face="verdana">
<!-- Banner begins here -->
Windchill server will be down 1/1 for maintenance
<!-- Banner ends here -->
</font>
Example with banner text off:
<font face="verdana">
<!-- Banner begins here -->
<!-- Windchill server will be down 1/1 for maintenance -->
<!-- Banner ends here -->
</font>
@amar_karthi This is one of the new Enhancements in 12.1, that we got thank to SAAS transition , now you can configure this from UI ,without any physical access on server :
I use the banner.txt that @jbailey mentioned too. It does not require a system restart. I have 3 commands in the bin folder to make this easier. One turns it on, one turns banner off and the last one edits the message which just launches me into vi. I typically use it for upcoming system changes, ongoing performance issue alerts or April Fools Day fun.
@avillanueva this can be done now from UI (12.1), without any RDP access , https://www.ptc.com/en/support/article/CS378733
There is a video attached above
True, however many customers are months (if not a year or more) from moving to Windchill 12.1 or later.
I'm from TS Europe, a lot of my customers are planning to upgrade to 12.1 , have no idea how it looks oversea .