layoutInfo.setCellBinding(row, col, type, value)
Sets the value of the specified cell in a Freehand Table.
Parameter
- row
-
row index
- col
-
column index
- type
-
1: plain text
2: field name
3: formula script - value
-
value for the cell
Example
// Set cell value to static text (type=1):
FreehandTable1.layoutInfo.setCellBinding(1,0,1,'label text');
// Set cell value to a field name (type=2):
FreehandTable1.layoutInfo.setCellBinding(1,0,2,'State');
// Set cell value to results of a formula (type=3):
FreehandTable1.layoutInfo.setCellBinding(1,0,3,"toList(q['Date'],'sort=asc, rounddate=year')");
|
Either syntax below can be used in component script:
For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required. |