controloptions
expression in the layout of a form page.
controloptions = expression {
"fscdatatableconfig: {param1: 'value1', param2: 'value2'}"
}
Possible parameters for fscdatatableconfig
are described in the following list.
indexval
(int)indexh
(array)indexv
(array)visibilityhorizontal
(array)visibilityvertical
(array) xaxis
(string)yaxis
(string)tablelabel
(string)debug
(Boolean)displaychart
(Boolean)alternatecolorsubgroup
(Boolean)// If you have multiple groups for both columns and rows you can specify them
// in your dictionary
expression {
DataTableList[] @tableentries = null;
@tableentries += {
dtrowgroupname = "rowgroup 1",
dtrowname = "row 1",
dtcolgroupname = "colgroup 1",
dtcolname = "col 1",
dtvalue = 1
};
// … further data …
return @tableentries;
}
// Control configuration
// Debug mode is enabled so you can see the debug output in the console
controloptions = expression {
"fscdatatableconfig: {" +
"xaxis: \"X-Axis Text\"," +
"yaxis: \"Y-Axis Text\"," +
"tablelabel: \"Table Label\"," +
"debug: true,"
"alternatecolorsubgroup: false" +
"}"
}
For displaying a vertical bar chart, it is possible to use so called special fields. In this case the row in the dataset
should like the following:
expression {
DataTableList[] @tableentries = [];
@tableentries += {
dtrowgroupname = "rowgroup 1",
dtrowname = "row 1",
dtcolgroupname = "<V>", // special field identifier
dtcolname = "Unit Name", // string
dtvalue = 1
};
// … further data …
return @tableentries;
}
FSCDATATABLE@1.1001:ControlDataTable()
Additional Information