layoutInfo.setExpansion(row, col, type)

Sets the specified cell to expand to display an array of data (typically supplied by the toList function). See Create a Freehand Table for more information about ‘Expand Cell’.

Parameter

row

row index

col

column index

type

1: Horizontal expansion
2: Vertical expansion

Example

var q = runQuery('ws:global:Examples/AllSales');
FreehandTable1.layoutInfo.setCellBinding(1,0,3,"toList(q['State'],'sort=asc')");
FreehandTable1.layoutInfo.setExpansion(1,0,1); // horizontal expansion

Either syntax below can be used in component script:

layoutInfo.setExpansion                 // unqualified
FreehandTable1.layoutInfo.setExpansion  // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.