cancel
Showing results for 
Search instead for 
Did you mean: 

How we can export data from OMS perspective to CSV ?

Former Member
0 Kudos

Hi Experts,

In Oms backoffice, there is no way to export data from the List View widget to the list.csv file

How we can do that ?

Thanks

Houssem

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member632755
Active Contributor
0 Kudos

Hi,

sorry, I'm not very into the oms 🙂 I guess that in this case the easiest would be to create your own custom action to do the export.

You may use org.zkoss.zhtml.Filedownload.save(csvContent, "text/comma-separated-values;charset=UTF-8", "list.csv") to write the file to the browser. The csv generation is rather straigtforward and you should be able to use the standard Java to get it.

Cheers, Wojtek

Former Member
0 Kudos

Hi ,

Thank you for your answer.

I confirm that this functionnality is available in hybris 5.4.0, but it's not applicable in OMS perspective

I have used the same code as described in this follwing link : https://wiki.hybris.com/pages/viewpage.action?pageId=249496136

but CSV export does'nt work because listview used in OMS perspective is not the same as listview in other backoffice perspectives.

com.hybris.cockpitng.widgets.common.listview.controller.ListViewController

com.hybris.cockpitng.widgets.listview.ListViewController

That's why CSV export does'nt work and exported Columns and Data are always null when clic on CSV export button in OMS perspective.

Is there any way to run CSV export in OMS perspective ?

Thanks

Houssem

former_member632755
Active Contributor
0 Kudos

Hi,

since hybris 5.4.0 this is a functionality built-in to the backoffice. You can find details here.

Cheers, Wojtek