Tag Archives: Programmatic

Insert Rows in ADF View Object Programatically

Suppose that I have EmpVO view object which have below attributes EmpId, FirstName,┬áLastName We can do inserting rows by two ways in data model layer (Application Model or View Object classes) I will write my code in ApplicationModuleImpl class try … Continue reading

Posted in Oracle, Oracle ADF | Tagged , , , , , , | Leave a comment

How to Add an ActionListener programmatically

Using an EL String, we can add ActionListener in Oracle ADF using the below code: private ActionListener getActionListener(String el) { //here Testbean is the name of ManagedBean MethodExpression methodExp = getMethodExpressionForAction(el); return new MethodExpressionActionListener(methodExp); } private MethodExpression getMethodExpressionForAction(String actionName) { … Continue reading

Posted in Oracle, Oracle ADF | Tagged , , , , | Leave a comment

Applying Programmatically View Criteria based on Like “%String%” and with IN Clause in Oracle ADF

Use the method below code to apply a view criteria programmatically that has IN clause and Like clause: //Retrieving application module String filterList=”Comma,Separated,List” ApplicationModule applicationModule = Configuration.createRootApplicationModule(“”,”AppModuleLocal”); //retrieving view object ViewObjectImpl vo = (ViewObjectImpl)applicationModule.findViewObject(“”); //creating a view criteria ViewCriteria criteria … Continue reading

Posted in Oracle ADF | Tagged , , , | Leave a comment