Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    exportData in datasource with transformRequest

    Hello,
    is it possible to use the exportData (csv / xls) function with a datasource (in listgrid) that overwrites transformRequest and is implemented in Java (doesn't use a ds.xml file), or in this case only exportClientData works?
    So far I can't download a file despite exportResults = true?

    Best Regards

    #2
    exportData() exports data with a server-initiated request and the result never reaches the client except as a file, after export. So transformRequest() will not work to modify such an export, you need to have a server-side DMI instead.

    transformRequest() would also not work for listGrid.exportClientData() from a grid. The data is delivered in an undocumented format that includes metadata about field types, underlying values vs formatted value, etc.

    You can however do formatting and then pass data to DataSource.exportClientData().

    Comment

    Working...
    X