I am trying to export the results of a datasource query, which I have achieved using exportClientData(). The performance of this call is horrid, so I need to use exportData() instead. When using the latter, the file downloaded is complete empty.
Here is the datasource:
Can anyone tell me why it is empty? I can only assume its because it is not using my fetch operation binding?
Here is the datasource:
Code:
<DataSource serverType="sql" dbName="CSODatabaseCITIES"
ID="Reading"
schema="dynamic"
tableName="sensor_reading"
qualifyTableName="false">
<fields>
</fields>
<operationBinding operationType="fetch" qualifyColumnNames="false" sqlPaging="none" dropExtraFields="false">
<serverObject className="net.emnet.csonet.server.dmi.ReadingOperations" />
<customSQL>call #schema.reading_pivot($dateCollectedMin, $dateCollectedMax, ${rawValue.nodeListing}, ${rawValue.sensorListing})</customSQL>
</operationBinding>
<operationBinding operationType="add" requires="false" />
<operationBinding operationType="remove" requires="false" />
<operationBinding operationType="update" requires="false" />
</DataSource>