Oracle ADF- How to Programmatically access an attribute value-Techartifact

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.

Oracle ADF- Creating ADF Business Component View Objects on More that one Entity Object — Techartifact

One of the common requirements when building an application on relational database tables is the ability to incorporate attribute from different sources into a data view which is more representative of the application requirement, rather than the database schema. ADF Business Components provides a powerful feature which can be used, for example, when viewing Emp data, you would want to displayed Department Name from the Dept table rather than just DeptId, which is less intuitive to the end users. This ADF Insider Essentials explains how you can do this.

Reference- ADF insider essential