I am using a read-only grid to show data for reports. I need to export the data to excel but the grid has more than 50 columns. I have already tried default export to excel feature and a!exportDataStoreEntityToExcel() function but none of these worked. FYI:
Is there any way I can export the data to excel?
Discussion posts and replies are publicly visible
Please share the configuration
a!httpResponse( /* * Set an HTTP header that tells the client that the body of the response * will be a CSV attachment. */ headers: { a!httpHeader( name: "Content-Disposition", value: "attachment; filename=" & char( 34 ) & "agniwesh" & now() & ".csv" & char( 34 ) ) }, /* * Create a CSV value of 'local!user' and place it in the response body. */ body: { "Id,name,age,comment" & char( 10 ) & joinarray( a!forEach( items: local!details, expression: { joinarray( merge( { char( 34 ) & fv!item.id & char( 34 ) }, { char( 34 ) & fv!item.name & char( 34 ) } ), "," ) } ), char( 10 ) ) } )
Hi Karthik. Could you tell me what was the alternate approach implemented after decommissioning?