<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : Script API > JavaScript > JavaScript API > Component > ReportTemplate > Method >GetComponentByName |
Gets the component of the given name.
Prototype :
object GetComponentByName
(
string ComponentName
)
Arguments :
ComponentName |
Component Name |
Example :
var objComp = ReportTemplate.GetComponentByName("Report1");
if(objComp != null) {
objComp.SetBackgroundImageURL("ozp://img/logo.jpg");
}
Available Events :
OnBind, OnInitialize, OnStartBind