ComponentOne Web API Edition
Data Source Customization
Services > Data Engine Services > Manage Data Sources > Data Source Customization

While working with DataEngine in your Web API application, you might want to customize the data source properties. DataEngine provides the following ways to customize your data source.

Customize the maximum value

User can customize the maximum value count of the aggregated result data. Once the aggregated data is generated, user can use the SetDataEngineAnalysisResultMaxCount  property to specify whether the aggregated result data is valid for serialization. In case the count exceeds the maximum value, an exception will be thrown.

The user can increase the maximum value or change the view definition to solve the exception. There is no limitation by default.

Example Code
Copy Code
IAppBuilder.SetDataEngineAnalysisResultMaxCount(int count)

Set the default workspace path

In DataEngine services, the default workspace path is “application base path + /data”. The user can use the following method to customize the default workspace path:

Example Code
Copy Code
IAppBuilder.SetDefaultWorkspacePath (string path)