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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Where is the JSP page that builds the Windchill homepage?

avillanueva
22-Sapphire II

Where is the JSP page that builds the Windchill homepage?

I am looking to insert something that interacts with the lightbox (yellow banner) only on the homepage invocation. Normally, I can figure out where that is generated but does anyone know the main JSP for the user homepage?

ACCEPTED SOLUTION

Accepted Solutions

Maybe try here?

Copy  home customization action model from <Windchill>\codebase\config\actions\navigation-actinModels.xml to custom-actionModels.xml, and add the customization action defined in step 1 

(ref https://www.ptc.com/en/support/article/CS210123?source=search)

 

I decided it was easier to create my own banners and jsp behavior... (although I would be interested in adding interactive notices in my banners as well) 

 

jbailey_0-1689779424436.png

Guidance basically came from here : https://www.w3schools.com/howto/howto_js_alert.asp

 

The banner info is stored in banner.txt 

jbailey_1-1689779547701.png

Then I include a jsp file to control behavior (file in the same location as banner... begin_custom.jspf)

 

View solution in original post

6 REPLIES 6

Maybe try here?

Copy  home customization action model from <Windchill>\codebase\config\actions\navigation-actinModels.xml to custom-actionModels.xml, and add the customization action defined in step 1 

(ref https://www.ptc.com/en/support/article/CS210123?source=search)

 

I decided it was easier to create my own banners and jsp behavior... (although I would be interested in adding interactive notices in my banners as well) 

 

jbailey_0-1689779424436.png

Guidance basically came from here : https://www.w3schools.com/howto/howto_js_alert.asp

 

The banner info is stored in banner.txt 

jbailey_1-1689779547701.png

Then I include a jsp file to control behavior (file in the same location as banner... begin_custom.jspf)

 

avillanueva
22-Sapphire II
(To:jbailey)

Found the solution to the lightbox here:

Windchill/app/#netmarkets/jsp/componentCatalog/inlineMessageComponent.jsp 

 

Something you may want to consider before you go too far down this path... PTC is changing the banner functionality in WC 13. Pg 464ish describes some of the new methodology

 

https://www.ptc.com/support/-/media/support/refdocs/Windchill_PDMLink/13,-d-,0/WindchillCustomizationGuide_13_0_0_0.pdf?sc_lang=en&source=search

avillanueva
22-Sapphire II
(To:jbailey)

I am a year or so away from 13 but thanks. Looks like that would replace my legacy method I implemented and be easier to send messages. I would likely adopt that. 

What I am looking to do in this thread is different. I am looking to send a lightbox message to warn users that they have late CNs or tasks. It displays then disappears. Slightly different than a banner message. I use those for denoting DEV/TEST, server downtimes, or other communications to all users.

Nice.. I would be interested in how you make that happen, it is something I have been asked about here.

avillanueva
22-Sapphire II
(To:jbailey)

Here is the magic:

PTC.messaging.showInlineMessage([{
            MessageTitle: '<%=properties.getString("title")%>',
            Messages: messages,
            MessageType: 'FAILURE'
        }]);

We have this block in a Javascript method that we call onload (window.onload = createWarning();)

When the page is accessed, we formulate a message array of strings (one per line), add pass that in. Looks like this:

avillanueva_0-1690403250136.png

Messages are externalized.

 

 

Announcements

Top Tags