on ‎2018 Jan 24 12:06 PM
From the release notes of hybris 6.6 its clear that hybris is not providing the excel import/export functionality in backoffice and cockpit. However when I installed OOB it only shows export to CSV file option. No excel export was available in backoffice.
Please help me out to enable excel export function in hybris 6.6
Request clarification before answering.
For anyone interested: in order to enable excel import/export to item types different than Product:
in this example we got to add import/export to Category item type
<?xml version="1.0" encoding="UTF-8"?><config xmlns="http://www.hybris.com/cockpit/config">
<context merge-by="type" type="Category" component="listviewactions" module="platformbackoffice">
<y:actions xmlns:y="http://www.hybris.com/cockpit/config/hybris" xmlns:advanced-search="http://www.hybris.com/cockpitng/config/advancedsearch" xmlns:c="http://www.hybris.com/cockpitng/config/common" xmlns:df="http://www.hybris.com/cockpitng/component/dynamicForms" xmlns:dsb="http://www.hybris.com/cockpitng/config/dashboard" xmlns:editorArea="http://www.hybris.com/cockpitng/component/editorArea" xmlns:explorer-tree="http://www.hybris.com/cockpitng/config/explorertree" xmlns:grid-view="http://www.hybris.com/cockpitng/component/gridView" xmlns:list-view="http://www.hybris.com/cockpitng/component/listView" xmlns:na="http://www.hybris.com/cockpitng/config/notifications" xmlns:simple-search="http://www.hybris.com/cockpitng/config/simplesearch" xmlns:wz="http://www.hybris.com/cockpitng/config/wizard-config">
<y:group qualifier="common">
<y:action action-id="com.hybris.backoffice.widgets.actions.sync" property="selectedObjects"/>
</y:group>
<y:extended-group qualifier="export" show-group-header="false">
<y:action action-id="com.hybris.backoffice.widgets.actions.excel.export" property="pageable.typeCode">
<y:parameter>
<y:name>actionName</y:name>
<y:value>label.export.excel</y:value>
</y:parameter>
</y:action>
<y:action action-id="com.hybris.backoffice.widgets.actions.excel.exporttemplate" property="pageable.typeCode">
<y:parameter>
<y:name>actionName</y:name>
<y:value>label.export.exceltemplate</y:value>
</y:parameter>
</y:action>
<y:action action-id="com.hybris.cockpitng.listview.action.export.csv" property="exportColumnsAndData">
<y:parameter>
<y:name>actionName</y:name>
<y:value>label.export.csv</y:value>
</y:parameter>
</y:action>
<y:extended-action action-id="com.hybris.backoffice.widgets.actions.excel.export"/>
</y:extended-group>
</y:actions>
</context>
</config>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The out-of-the-box Export to Excel tool, supports attributes of the following types: String, Number, Date, Boolean, and all enums which extend de.hybris.platform.core.model.enumeration.EnumerationMetaTypeModel, because this the Boolean and list attributes are being displayed like you mentioned.
So in order to export (or import) new attributes which are references to another types (in your case, the custom map), you need to provide appropriate translators and validators to it. I would kindly ask you to check how to do it using our help pages Excel Translators in Backoffice and Excel Validators in Backoffice.
For further content, I also kindly suggest you to check this Excel Export and Import in Backoffice Framework - Technical Details.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the use of this Excel Export facility when it only works with the Product type as in most applications the Product model is extended to include new attributes??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As Lukasz commented, Excel export/import is only applied to Product type by default. You can find it in the following page. https://help.hybris.com/6.6.0/hcd/bb77d8ae51e546138bec07a396f0803e.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.