其他 Windchill 功能 > 製造流程管理 > 自訂 MPMLink 瀏覽器 > 啟動 JSP 自訂頁
  
啟動 JSP 自訂頁
在自訂 Windchill MPMLink 的流程中,您可能已建立某些 JSP 頁。例如,使用在「製造關聯零件結構瀏覽器」中找到的零件清單產生報告的自訂 JSP 頁。請遵循下列步驟來建立啟動器,其將從「製造關聯零件結構瀏覽器」執行此報告,完成後,會為瀏覽器重新整理任何新資訊。
* 
在此範例中,自訂 JSP 頁的名稱是 customReport.jsp
1. 停止應用伺服器。
2. customReport.jsp 複製到應用伺服器的已知 netmarkets 目錄。例如,<Windchill>\codebase\netmarkets\jsp\my-company\customReport.jsp。執行此操作可定義將用於啟動 JSP 頁的 URL。例如,ptc1/my-company/customReport
3. 使用 LaunchCustomURLAction 作為指令類別,將項目新增至 custom-actions.xml 以及以上定義的 URL:
<objecttype name="mapsb" resourceBundle="com.example.mapsb.customMAPSBActionsRB">
....
<action name="customReportGWT" ajax="component">
<command class="com.ptc.cat.ui.client.action.LaunchCustomURLAction" method="execute"
url="/ptc1/my-company/customReport" windowType="popup"/>
<supportedTypes>
<type value="wt.part.WTPart"/>
</supportedTypes>
</action>
...
4. 針對「製造關聯零件結構瀏覽器」將項目新增至 custom-actionsModels.xml。在此範例中,已在 mapsbUstreamSideToolBar UI 元件中新增:
<actionmodels>
...
<model name="mapsbUpstreamSideToolBar">
...
<action name="customReportGWT" type="mapsb"/>
5. 重新啟動應用伺服器。