Click or drag to resize
DashboardObjectBuildDataFieldsAndColumns Method DataPA OpenAnalytics
DataPA OpenAnalytics API Reference
Generates the JSON configuration for the table data fields and columns for the given DashboardObject and DataTable

Namespace: DataPAEnterpriseDashboard
Assembly: DataPAEnterpriseDashboard (in DataPAEnterpriseDashboard.dll) Version: 1.0.90.0 (1.0.90.0)
Syntax
public static void BuildDataFieldsAndColumns(
	DataTable dataTable,
	DashboardObject dashboardObject,
	ref string columns,
	ref string dataFields,
	ref string columnFormats,
	DashboardObjectColumnGroup[] columnGroups,
	CubeDataRenderer cube = null,
	HtmlGenericControl customStyleBlock = null,
	string pivotHeaderClassName = "",
	ref string columnDrilldowns = "",
	ref bool onlyOneDataColumn = false,
	ref bool onlyOneGroupColumn = false,
	bool pinPivotRowColumns = true
)

Parameters

dataTable
Type: System.DataDataTable
dashboardObject
Type: DataPAEnterpriseDashboardDashboardObject
columns
Type: SystemString
The column configuration for the javascript grid
dataFields
Type: SystemString
The datafield configuration for the javascript grid
columnFormats
Type: SystemString
An object collection detailing the rendering format of each column
columnGroups
Type: DataPAEnterpriseDashboardDashboardObjectColumnGroup
cube (Optional)
Type: DataPAEnterpriseDashboardCubeDataRenderer
customStyleBlock (Optional)
Type: System.Web.UI.HtmlControlsHtmlGenericControl
pivotHeaderClassName (Optional)
Type: SystemString
columnDrilldowns (Optional)
Type: SystemString
onlyOneDataColumn (Optional)
Type: SystemBoolean
onlyOneGroupColumn (Optional)
Type: SystemBoolean
pinPivotRowColumns (Optional)
Type: SystemBoolean
Remarks