Skip to Content
0
Jul 01, 2019 at 04:18 PM

How can I render a an attribute of a child in editor area of product cockpit

272 Views

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.