Announcement

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

    com.isomorphic.js.JSExpression in exportClientData

    Hello,
    We are using SmartClient_80_Pro

    I have a grid which uses clientOnly data source. I get the data from server and use ListGrid.setData(rpcResponse.data.rows) to set the data and use
    DataSource.testData = rpcResponse.data.rows to set the data for the datasource.

    I use ListGrid.exportClientData({exportAs:'xls',exportDisplay:'download'}); to export the data.

    In the exported spreadsheet, some columns have the correct value and some columns are populated with values such as com.isomorphic.js.JSExpression@2018b5b7, they look like reference to objects.

    See attached jpeg file which has the image of the grid and the exported spreadsheet.

    Any suggestions on what could possibly be happening here and how to get around this? Any suggestions on how to look into this problem will be helpful too.

    Thanks!
    Attached Files

    #2
    The only way we can imagine this happening is that XML is being passed to setData() and being translated as componentXML, in which case a tag like <js> or <JS> will become a JSExpression.

    If you are in fact passing XML to some SmartClient Server API but it seems valid, please show it.

    Comment


      #3
      The returned data from server is not in XML format. It is an array of HashMaps returned from java server.The fields in the grid are dynamic, they are created based on user selection, and there are hidden columns in the grid.

      We only find this problem happening on our QA server (apache 2 webserver and Tomcat application server). The same code and the same data works fine on our development machines.

      Is there a way for us to debug (or inspect) exportClientData? If the data is shown correctly in the grid, they should be exported correctly.

      Thanks!

      Comment


        #4
        It's not a matter of data being returned from the server - read more closely, this is about XML data being passed to SmartClient Server APIs - is this happening?

        Note that the difference between the two environments suggests a misdeployment. The behavior of the XML->Java/JS translator is influenced by the .ds.xml files found under isomorphic/system/schema - if not all of those are present, or some of your application DataSources are missing, this would change the behavior.

        Comment

        Working...
        X