信息页面中的高级属性面板
此面板与在 高级属性面板 示例中使用的面板相同,并且仅显示在 Carambola 对象类型信息页面中的选项卡上。
此面板的操作位于 Carambola 对象类型的信息页面中:
<action name="infoPageExample">
<command url="ptc1/tcomp/infoPage?typeIdForTypeLookup=com.ptc.carambola.
customization.examples.infoPage.Carambola" windowType="page"/>
</action>
用于从 JSP 调用操作的操作标记会将参数 "tlnAction" 和 "tlnType" 添加到 infoPage URL 中,以告知系统导航至 Carambola 信息页面中包含 "attributePanel" 操作组件的选项卡。
<%
HashMap<String,String> advPanelInfoPageParams = new HashMap<String,String>();
// automatically forward to the tab for attribute panel.
advPanelInfoPageParams.put("tlnAction", "attributePanel");
advPanelInfoPageParams.put("tlnType","carambola"); %>
<jca:action actionName="infoPageExample" actionType="carambola"
button="false" params="<%=advPanelInfoPageParams%>" shellURL="true"/>
attributePanel 操作 (针对对象类型 "carambola" 定义) 与用于在高级属性面板示例中显示面板的操作相同:
<action name="attributePanel">
<component name="attributesTable" typeBased="true" windowType="page"
urlParams="typeIdForTypeLookup=com.ptc.carambola.customization.examples.
attributePanel.AttributePanelExampleObject"
<label>Advanced Attribute Panel</label>
</action>
虽然 attributePanel 操作位于信息页面目录操作模型中,但不在 Carambola 类型的选项卡集操作模型中,因此系统会在信息页面中为其创建新选项卡。
请注意,即使信息页面适用于 Carambola 对象,该面板仍适用于 AttributePanelExampleObject。原因在于面板构建器所返回的基准对象为 AttributePanelExampleObject
有关面板和用于生成面板的构建器的详细信息,请参阅高级属性面板示例。
示例的位置
要导航至产品中的此示例,请转至“自定义” > “组件目录” > “属性面板” > “信息页面中的高级属性面板”
此示例的操作
操作名称
对象类型名称
文件
infoPageExample
carambola
\config\actions\Carambola-actions.xml
此示例的操作模型
这对您有帮助吗?