Click or drag to resize
DashboardObjectDataTableToJson Method DataPA OpenAnalytics
DataPA OpenAnalytics API Reference
Convert the given table to a JSON string

Namespace: DataPAEnterpriseDashboard
Assembly: DataPAEnterpriseDashboard (in DataPAEnterpriseDashboard.dll) Version: 1.0.90.0 (1.0.90.0)
Syntax
public static string DataTableToJson(
	DataTable dataTable,
	DashboardObject dashboardObject,
	long maxJSONLength,
	bool isPivot = false
)

Parameters

dataTable
Type: System.DataDataTable
The data table that contains the data
dashboardObject
Type: DataPAEnterpriseDashboardDashboardObject
The dashboard object the data belongs to
maxJSONLength
Type: SystemInt64
The max length of the returned JSON string
isPivot (Optional)
Type: SystemBoolean
True if this object is a pivot table

Return Value

Type: String
JSON representation of the given table based on the given dashboardObject
Exceptions
ExceptionCondition
InvalidOperationExceptionInvalidOperationException if the data is too large
Remarks