Skip to Content
author's profile photo Former Member
Former Member

How we can export data from OMS perspective to CSV ?

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Apr 01, 2015 at 09:09 PM

    Hi,

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

    Cheers, Wojtek

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 01, 2015 at 11:48 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 02, 2015 at 08:28 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.