Page from Windchill Header

Page from Windchill Header
Slide Note
Embed
Share

Requirement to enable linking from a Windchill page to another webpage functionality, previously available in v8.0 but not in v9.1. The suggested solution involves adding a link to the Global Navigation menu for the My Home web portal. Steps include copying the header actions model to add a new action, defining new actions in custom-actions.xml, as well as labels and JSP for the new action. Images provided illustrate the process visually.

  • Windchill
  • Web Page
  • Global Navigation
  • Linking
  • Customization

Uploaded on Feb 20, 2025 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Adding a Link to Another Web Page from Windchill Header

  2. Requirement Need to be able to get to another Web Page from a Windchill page. Functionality used to be available in v8.0. Not available in v9.1.

  3. Suggested Solution Add a link to the Global Navigation menu for the My Home web portal. Was unable to determine where to change code to make the image an active link.

  4. Copied the header actions action model to add new action. <model name="header actions"> <description>actions that appear in the top right of the header</description> <action name= myHome" type="navigation"/> <action name="separator" type="separator"/> <action name="clipboard" type="netmarkets"/> <action name="separator" type="separator"/> <action name="globalWindchillHelp" type="netmarkets"/> <action name="separator" type="separator"/> <action name="emailPage" type="project"/> <action name="separator" type="separator"/> <action name="hotList" type="user"/> </model>

  5. Defined new action in custom-actions.xml. <objecttype name="navigation" class="" resourceBundle="com.ptc.core.ui.navigationRB"> <action name= myHome" enabledwhensuspended="true" renderType="GENERAL"> <command url="/com/myCompany/jsp/portal/myHome.jsp" windowType="popup"/> </action> </objecttype> Defined new action labels in navigationRB.rbInfo. navigation.ideHome.description.value=My Home navigation.ideHome.description.comment=Used to open a new window to the My Portal Home navigation.ideHome.tooltip.value=Open My Portal Home

  6. Defined new action JSP. <%@ include file="/netmarkets/jsp/util/begin.jspf"%> <%@ taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%> <% String portal = ""; try { wt.util.WTProperties wtproperties = wt.util.WTProperties.getLocalProperties(); portal = wtproperties.getProperty("wt.MyHome.jsp"); //contains url for web page } catch (Exception e) { out.println(e); } %> <script> window.open("<%=portal%>"); window.close(); </script> <%@ include file="/netmarkets/jsp/util/end.jspf"%>

More Related Content