Server-Side Row Model - Exporting

Summary

  • Exporting reports works fine when using the Server-Side Row Model
  • AdapTable enables developers to create report data on the server and pass to client for export

When running reports, AdapTable typically gathers the data required to run a Report, and then exports it to the specified destination.

But when using the Sever-Side Row Model, you will likely want to supply the data to be exported.

Note

  • AdapTable will then still take care of ensuring the data is sent to the appropriate destination
  • Some reports - e.g. Selected Data - can be run fully on the client even when using Server-Side Row Model

This is done via the processExport property in Export Options - which takes the form of a function, which if provided, will be invoked when a Report is run.

The function receives a ProcessExportContext object, and returns (in the form of an ExportResultData object), the data for the Report which will be exported by AdapTable

Find Out More

See Processing Reports for full information on how to process reports so they can be evaluated on the server

SSRM - Exporting
Fork
  • In this example we create a Custom Report called US Golden Athletes which exports all US Athletes who have won a Gold medal
  • We provide and implementation for the processExport property in Export Options in order to gather the report data on the Server, and return it to AdapTable to be exported as needed