我有一个 SAP Hybris backoffice-config.xml 的问题,我创建了一个名为 LockerOpenEvent 的新实体,它有四个属性,我添加了一个列表视图、高级搜索和编辑器区域,现在我的问题是编辑器区域。问题是另一个实体(Locker)的两个字段没有显示在编辑器区域中,但相同的字段在列表视图中可见,这是什么问题?我将错误发布到日志和感兴趣的代码标签中:
打开新实体时的错误日志(但在列表视图中出现两列):
WARN [hybrisHTTP25] [DataType] Qualifier [Locker] not found. Case insenitive resolution have found matching qualifier [locker]
打开编辑器区域时出现可视化问题的错误日志:
ERROR [hybrisHTTP36] [DefaultEditorAreaSectionRenderer] Property Locker.code was not found for type LockerOpenEvent
myExtension backoffice-config.xml
<context type="LockerOpenEvent">
<context merge-by="type" component="listview" >
<list-view:list-view
xmlns:list-view="http://www.hybris.com/cockpitng/component/listView"
refresh-after-object-creation="true">
<list-view:column qualifier="Locker.code" width="200px" />
<list-view:column qualifier="Locker.name" width="200px" />
<list-view:column qualifier="timestamp" width="200px" />
<list-view:column qualifier="user" width="200px" />
<list-view:column qualifier="drawerCode" width="200px" />
</list-view:list-view>
</context>
<context merge-by="type" component="editor-area" parent="GenericItem">
<editorArea:editorArea xmlns:editorArea="http://www.hybris.com/cockpitng/component/editorArea">
<editorArea:tab name="hmc.tab.general" >
<editorArea:section name="" >
<editorArea:attribute qualifier="user"/>
<editorArea:attribute qualifier="Locker.code" />
<editorArea:attribute qualifier="Locker.name" />
<editorArea:attribute qualifier="drawerCode" />
<editorArea:attribute qualifier="lockerDrawerOpeningEnum" editor="com.hybris.cockpitng.editor.nonoptionalenum" />
</editorArea:section>
</editorArea:tab>
</editorArea:editorArea>
</context>
</context>
非常感谢。