on 07-01-2019 5:18 PM
For the same type we have code as below:
For list view
<context merge-by="type" parent="GenericItem" type="PartFitsModel" component="listview">
<list-view:list-view>
<list-view:column qualifier="product"/>
<list-view:column qualifier="modelJd.name"/>
<list-view:column qualifier="modelJd"/>
<list-view:column qualifier="comment"/>
</list-view:list-view>
</context>
For editor area
<context merge-by="type" parent="GenericItem" type="PartFitsModel" component="editor-area">
<editorArea:editorArea name="">
<editorArea:essentials>
<editorArea:essentialSection name="hmc.essential">
<editorArea:attribute qualifier="product"/>
<editorArea:attribute qualifier="modelJd.name"/>
</editorArea:essentialSection>
</editorArea:essentials>
</context>
But the modelJd.name doesnot work for editor area.
modelJd is a type in partFitsModel, and name is an attribute in modelJd type. It works with listview but not with editor area. Should I have to write a renderer.
Hi - please try the following:
<context ....>
...
...
<editorArea:essentials>
<editorArea:essentialSection name="hmc.essential">
<editorArea:attribute qualifier="product"/>
<editorArea:attribute qualifier="modelJd"/>
</editorArea:essentialSection>
</editorArea:essentials>
...
...
</context>
<context type="ModelJd" component="base">
<y:base xmlns:y="http://www.hybris.com/cockpit/config/hybris">
<y:labels>
<y:label>name</y:label>
</y:labels>
</y:base>
</context>
You can check https://answers.sap.com/questions/12759433/how-to-display-relational-attribute-in-list-view-o.html?c... for an example.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Please try below snippet of code.
<context merge-by="module" parent="GenericItem" type="modelJd" component="base" module="cockpit">
<y:base xmlns:y="http://www.hybris.com/cockpit/config/hybris">
<y:labels>
<y:label>name</y:label>
</y:labels>
</y:base>
</context>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.