Thursday 20 March 2014

Oracle ADF : Apply view criteria programatically


Apply view criteria programatically



View criteria is used for applying a where condition in a view object for filtering the rows based on 
where condition. For accessing View criteria programmatically following steps need to be done –
1.Create VOImpl java class as following
 


2.Here we have a view crieteria as “highPaidEmployees” which will filter all the employees having 
salary greater than or equal to specified value.
 


3.After generating VOImpl class we have getter setter for bind variable used in view criteria 
4.Now we will write our custom method in VOImpl class to apply this criteria on vo.
 
 


5.Now this custom method can be exposed to client and used on ui page or can used
programmatically using OperationBinding.
For step by step learning follow this link
http://www.youtube.com/watch?v=04ZpxEn-xeA

No comments:

Post a Comment