Skip to Content
0
Former Member
Nov 01, 2017 at 05:43 AM

How to eanable and diable actions in backoffice?

551 Views

I have created one action for product synchronization using backoffice hybris 6.3. It is working for list view but the same button is not enabling in editor area it is always disabled. I have used the below configuration

     <y:actions xmlns:y="http://www.hybris.com/cockpit/config/hybris" >
         <y:group qualifier="common">
             <y:label>actiongroup.common</y:label>
             <y:action action-id="xyz.backoffice.actions.ProductSynchronizationAction" property="currentObject" />
         </y:group>
     </y:actions>
 </context>
 <context merge-by="type" type="Product" component="listviewactions">
     <y:actions xmlns:y="http://www.hybris.com/cockpit/config/hybris" >
         <y:group qualifier="common">
            <y:action action-id="xyz.backoffice.actions.ProductSynchronizationAction" property="selectedObjects"/>
         </y:group>
     </y:actions>
 </context>