How to access binding to read and write values from and to business service.Sometimes you require to read the value of custName binding and convert it to lowercase.
public void buttonPressBinding (ActionEvent actionEvent) {
//add event code here.................
AttributeBinding attr = (AttributeBinding)getBindings().getControlBinding("custName");
String selectCust =(String)attr.getInputvalue();
attr.setInputValue(selectedCust.toLowerCase());
}
getControlBinding() – this method name get the binding by the name passed into as parameter.
AttributeBinding – is used to reference an attriubute binding to custName.