Thursday, 20 March 2014

Oracle ADF : How to invoke / close popup programmatically ?



How to invoke / close popup programmatically ?
 
There are two ways to open popup programmatically-
 
a.Using popup component binding’s show() method
 
 


Same can be found here
http://docs.oracle.com/cd/E23549_01/apirefs.1111/e12419/tagdoc/af_popup.html
 
b.Invoking javascript for opening  popup programmatically 
 

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