Skip to Content
0
May 23, 2018 at 08:50 AM

productcockpit: new view

250 Views

Hi experts

I try to create a new view within productcockpit.

..backoffice-config.xml:

 <context component="pcmbackoffice-navibar-actions" merge-by="module">
     <y:actions xmlns:y="http://www.hybris.com/cockpit/config/hybris">
         <y:group qualifier="common">
             <y:action action-id="com.hybris.cockpitng.action.toggle" id="pcm-backoffice-triple-hierarchy-view" position="3">
                 <y:parameter>
                     <y:name>outputValue</y:name>
                     <y:value>"pcmbackoffice-triple-hierarchy-view"</y:value>
                 </y:parameter>
                 ...
             </y:action>
         </y:group>
     </y:actions>
 </context>

..backoffice-widgets.xml:

 <widget-extension widgetId="pcmbackoffice-contents">

     <widget id="pcmbackoffice-triple-hierarchy-view" widgetDefinitionId="com.hybris.cockpitng.extendedsplitlayout"
         template="false" slotId="views">
     </widget>

 </widget-extension>


Result: I get a new icon at the left navi-bar. After clicking on it the progressbar appears, but then the collectionBrowser-view is displayed.

Unfortunately there is no log-message and I do not know, how to debug it.

Any help appreciated. Thanks, Heiko