Announcement

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

    CSV Export & column titles

    Hello,

    Is it by design that the datasource CSV export does not export the datasource column titles, but instead the field names?

    The Excel exports on the other hand exports the column titles as expected.

    This can also be seen in the showcase example here: http://www.smartclient.com/smartgwtee/showcase/#excel_export

    #2
    Different export formats have different defaults for whether field names are used vs titles, based on whether those exports are most often used for data exchange vs reports seen directly by end users.

    You can control whether titles or field names are used via DSRequest.exportFieldTitles and related APIs.

    Comment


      #3
      Thank you for the defaults explanation, it makes sense.

      Originally posted by Isomorphic View Post
      You can control whether titles or field names are used via DSRequest.exportFieldTitles and related APIs.
      DSRequest.exportFieldTitles seems to be the server side API, is there perhaps a client side API that would do the same?

      Comment


        #4
        Yes, the client-side docs for DSRequest have similar properties - take a look at the overview of different settings, some of which are on UI components.

        Comment

        Working...
        X