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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Windchill 10.1 and 10.2 Banner

ddemay
7-Bedrock

Windchill 10.1 and 10.2 Banner

Hello,



I am posting as a separate thread more details about my customization for a
Banner in 10.1 and 10.2 that extends PTC banner feature described in the
customizer's guide. I am seeking to have PTC work with me to add this out
of the box as part of a future release. I am adding the images posted on
the other thread here also.



I have developed a series of preferences to allow the banner to do the
following:



- Allow banner message to be updated by a preference, when updated (but out
of sight), banner will reappear to broadcast new message

- Specify the height of the banner without losing OOTB functionality of the
UI

- Allow font, font size, font color of message to be adjusted

- Allow background color of banner to be adjusted as well as what color
appears behind the Windchill logo

- Specify a different logo instead of the default ones provided by PTC

- Allow collapse of the banner

- Enable automatic collapse of the banner

- Specify what icon is to be used for the collapse banner icon

- Enable an external content file to be loaded instead of the message stored
in the preference string

- Disabling the banner functionality entirely



If you are not running 10.1 M040 - I can still support you but have to
integrate changes into files that may be different between the maintenance
releases.



If you ever change your mind about using it, it is very easily removed. As
I mention it is an extension of the OOTB functions.



Please feel free to contact me if you have any questions or are interested.
Clearly there is a need for this feature and it shouldn't require
development skills of system administrators to support it. That is why I
have spent over 200 hours working on this on-and-off to submit it to PTC. I
wanted to submit it for a presentation at PTC User conference in June, but
it was not ready yet.







Cheers,

David DeMay





















8 REPLIES 8

Hi David ,


I would be glad to get info on your implementation , It isexactly what we are looking for . ( Getting banner on top so that the resize does not have impact or does not cause banner overlap on the WC UI components .)



Can you share the details if possible



Regards,


Sriram Rammohan

While this doesn't deal with the resize of the banner, one thing that I just recently did was add some javascript to the begin_custom.jspf page so I can edit a text file and it each time the page is loaded in Windchill it will read the file instead of caching the page.

Within the begin.jspf page I have
<%@page import="java.io.FileReader"%>
<%@page import="java.io.BufferedReader"%>




<%
BufferedReader reader1 = new BufferedReader(new FileReader(application.getRealPath("/") + "netmarkets/jsp/util/SOMEFILETOREAD.txt"));
StringBuilder sb1 = new StringBuilder();
String line1;

while((line1 = reader1.readLine())!= null){
sb1.append(line1+"\n");
}
out.println(sb1.toString());
%>


Sri,



You can control the navigator resize by style sheet . Check below steps might works for you


1. Following goes in banner.txt


Windchill server will shut down for 1 hour and 15 minutes at 2:30AM PST/ 5:30AM EST (5:30PM Taipei UTC/GMT +8 hours)


.bannerdiv {


background: #ffebc6;


}




Hope this helps !!!



Thanks,
Shreyas



Thanks Shreya ! Perfect it was


Regards,


Sri

ddemay
7-Bedrock
(To:ddemay)

Yeah I think this gives you what is discussed in the PTC Customizer's guide.
My solution uses the ExtJS API from Sencha that PTC licensed and builds
their PTC JavaScript API on top of.



A link to their documentation below:



I would be interested in your final result. Using the information in the Windchill Customization guide is ok but on our 10.2 system the image file covers half my statement.

ddemay
7-Bedrock
(To:ddemay)

I'm setting up a site

We are on 10.2 m020

Announcements


Top Tags