TOC : Script API > JavaScript > JavaScript Events > OnBind > Script Execution Order >

 

Band Script Execution Order

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : Script API > JavaScript > JavaScript Events > OnBind > Script Execution Order >

 

Band Script Execution Order

 

 

Band scripts are executed in the display order in the report window. If a report is bound to multiple pages, script executions are repeated as many as the number of pages in sequence. Vertically repeating bands are executed downward and Horizontally repeating bands (bands in side band) are executed to the right.

 

Notes for band script :

 

The band size is determined by considering the size of components which are included in the band. If the band size is fit into the current page, the band is printed in the current page, otherwise printed in the next page. In this case, except bands repeated on every page such as page header, page footer and tail band, from the second page, band script executed in the current page, but the band itself is printed in next page, repeatedly .

 

So, a band or component may prints the current page number on the next page (i.e., the actual printed page shows the previous page number).  And if you print a global variable into a label, the value of global variable can be from the previous page.

 

 

Notes for scripting of data band and group header band :

 

Script execution of a data band is repeated  as many as the Repeat Number property value. If the value is 0,  repeated as many as the number of  data rows.  However, even if the value is 0, if the band includes crosstab, table, chart, ganttchart or region, the data band script is executed only one time.

 

For the case of master-detail band and group header band, the master band is repeated as many as its Repeat Number and detail band is repeated as many as its Repeat Number per one master execution. Script execution follows the same rule.

 

 

Controlling execution order of data band scripts :

 

To change script execution order between the same level data bands, use [Move Up] and [Move Down] in the data band popup menu.