Post-Expansion Script
This section continues the example from the previous section (Pre-Expansion Script).
In this example, you will assign every fifth row of the table a thick border. This formatting should be applied to the post-expansion table, so you will place the code for this after the expandCalcTable() function.
1. Right-click anywhere on the table, and select 'Script' from the context menu. This opens the Script Editor to edit the element script.
2. Add a “for” loop after the expandCalcTable() function. The full script should appear as follows:
rowBackground[1] = [255,0,0];
cellBackground[2][1] = [255,255,0];
expandCalcTable();
for (i=4; i<table.length; i+=5) {
rowBorder[i] = StyleConstant.THICK_LINE;
}
3. Preview the result.

| << Pre-Expansion Script | © 1996-2013 InetSoft Technology Corporation (v11.5) | 3.8 Charts >> |