Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
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?
Solved! Go to Solution.
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)
Guidance basically came from here : https://www.w3schools.com/howto/howto_js_alert.asp
The banner info is stored in banner.txt
Then I include a jsp file to control behavior (file in the same location as banner... begin_custom.jspf)
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)
Guidance basically came from here : https://www.w3schools.com/howto/howto_js_alert.asp
The banner info is stored in banner.txt
Then I include a jsp file to control behavior (file in the same location as banner... begin_custom.jspf)
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
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.
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:
Messages are externalized.