BindData Method

The BindData method downloads metadata and data from the Siebel Server to the client proxy, and then binds this data to the user interface. The list columns that a list applet uses is an example of metadata, and the record set that this list applet uses is an example of data. The BindData method uses the following syntax:

BindData(searchData, options); 

For example, the following code in the renderer.js file uses the BindData method:

this.GetSearchCtrl().BindData(searchData, options); 

For another example, the following code gets the value for a control from the presentation model, and then binds this value to this control:

CustomPR.prototype.BindData = function(){    
 var controlSet = pm.Get("GetControls");    
  for(var controlName in controlSet){    
   if(controlSet.hasOwnProperty(controlName)){    
    var control = controlSet[controlName];    
     // Get value for this control from presentation model and bind it to 
      //the control.    
    }    
  }    
}; 

Siebel Open UI expects the physical renderer to use the BindData method to bind data to the physical control. The BindData method also gets the initial value from the presentation model, and then attaches this value to the control.

For information about: