Reputation: 89
In backoffice there is a widget for export and import for Product. With this functionality, a user can select what columns can be exported as described here.
I read here but doesn't specify how it can be configured on other Types, like Customer.
Is this something can be configured with other types?
Upvotes: 1
Views: 3339
Reputation: 20065
You can add actions using in your backoffice-config.xml
file. Cf. Configuring UI in Backoffice
<context component="myListviewActions" type="Customer">
<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="com.hybris.cockpitng.listview.action.export.csv" property="exportColumnsAndData" />
</y:group>
</y:actions>
</context>
Here is a list of some actions exemple :
<y:action action-id="com.hybris.cockpitng.action.delete" property="currentObject"/>
<y:action action-id="com.hybris.backoffice.widgets.actions.sync" property="currentObject"/>
<y:action action-id="com.hybris.cockpitng.action.flexibletoggle">
<y:parameter>
<y:name>viewMode</y:name>
<y:value>hidden</y:value>
</y:parameter>
<y:parameter>
<y:name>breakpoint</y:name>
<y:value>m</y:value>
</y:parameter>
</y:action>
<y:action action-id="com.hybris.cockpitng.action.create" property="pageable.typeCode">
<y:parameter>
<y:name>triggerContext</y:name>
<y:value>pcmbackoffice</y:value>
</y:parameter>
</y:action>
<y:action action-id="com.hybris.cockpitng.listview.action.export.csv" property="exportColumnsAndData"/>
<y:action action-id="com.hybris.cockpitng.action.edit" property="selectedObjects" triggerOnKeys="^e">
<y:parameter>
<y:name>forwardSelectionToSocket</y:name>
<y:value>selectedItemsToEdit</y:value>
</y:parameter>
<y:parameter>
<y:name>forwardSelectionAs</y:name>
<y:value>list</y:value>
</y:parameter>
</y:action>
There are more you can find exemple with a research in your workspace.
Upvotes: 2
Reputation: 111
You can decide on which actions are available via config.xml. See the <context type="Product" component="listviewactions">
for inspiration and define alike configuration for your type.
Upvotes: 4
Reputation: 5758
My knowledge Excel import/export only for products in OOTB. Maybe you can make custom development for it or use below OOTB functionality:
Upvotes: 1