TOC : Script API > JavaScript > JavaScript API > Component > ReportTemplate > Method >

 

SetBindingOrderList

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : Script API > JavaScript > JavaScript API > Component > ReportTemplate > Method >

 

SetBindingOrderList

 

 

Sets the binding order of reports added to the report template.

 

 

 

Prototype :

 

void SetBindingOrderList

(

        string BindingOrderList

)

 

 

 

Arguments :

 

BindingOrderList

report binding order list

 

 

 

Reference :

 

Apply only to the multiple report type.

 

Report names are separated by comma(,) in the list.

 

The component names in the list are ignored.

 

SetBindingOrderList() can be used to set not only the binding order of reports but also some reports to be excluded from binding. For example when Report1, Report2, Report3 are designed in sequence, to bind Report1, Report3 in sequence, excluding Report2, create script as below:

     ReportTemplate.SetBindingOrderList("Report3,Report1");

 

But if a report is once excluded, it cannot be bound never again:

ReportTemplate.SetBindingOrderList("Report3,Report1");

ReportTemplate.SetBindingOrderList("Report3,Report1,Report2");

The second line won't bind Report2.

 

 

 

Example :

 

ReportTemplate.SetBindingOrderList("Report3,Report2,Report1");

 

 

 

Available Events :

 

OnInitialize