HI folks,
today i am going to show some ADF features in this application with example application, Which was attached at end of this post.
Scenarios :
Input LOV,
AutoSuggest Behavior ,
Default action for enter button,
Programatic ViewCriteria creation.
Step 1 : create LOV on firstName in side the EmployeesView.
Add method for autosuggetbehavior to show auto suggestion feature, as shown below.
and then add code for searching the filtered item as shown below.
public void searchEvent(ActionEvent actionEvent) {
String name = this.firstNameBnd.getValue().toString();
DCBindingContainer bc = (DCBindingContainer)getBindings();
DCIteratorBinding iter = bc.findIteratorBinding("Emp_View1Iterator");
ViewObject vo = iter.getViewObject();
ViewCriteria vc = vo.createViewCriteria();
ViewCriteriaRow vcrow = vc.createViewCriteriaRow();
vcrow.setAttribute("FirstName", name);
vc.addRow(vcrow);
vo.applyViewCriteria(vc);
vo.executeQuery();
}
public BindingContainer getBindings(){
return BindingContext.getCurrent().getCurrentBindingsEntry();}
Thanks :)
today i am going to show some ADF features in this application with example application, Which was attached at end of this post.
Scenarios :
Input LOV,
AutoSuggest Behavior ,
Default action for enter button,
Programatic ViewCriteria creation.
Step 1 : create LOV on firstName in side the EmployeesView.
Step 2: creating LOV
Add form on jspx page and add autosuggest behavior to input text.
Add method for autosuggetbehavior to show auto suggestion feature, as shown below.
and then add code for searching the filtered item as shown below.
public void searchEvent(ActionEvent actionEvent) {
String name = this.firstNameBnd.getValue().toString();
DCBindingContainer bc = (DCBindingContainer)getBindings();
DCIteratorBinding iter = bc.findIteratorBinding("Emp_View1Iterator");
ViewObject vo = iter.getViewObject();
ViewCriteria vc = vo.createViewCriteria();
ViewCriteriaRow vcrow = vc.createViewCriteriaRow();
vcrow.setAttribute("FirstName", name);
vc.addRow(vcrow);
vo.applyViewCriteria(vc);
vo.executeQuery();
}
public BindingContainer getBindings(){
return BindingContext.getCurrent().getCurrentBindingsEntry();}
Thanks :)






