OracleArea51

Sponsored By Chola Global Services LLC

Customizing Query Bean to Extend/Override the functionality of GO button

E-mail
(1 vote, average 5.00 out of 5)

When we develop Search Page using Query bean it renders a Go button, and OAF handles it's functionality. We need not to write any code for it(when we clicks on GO button it queries VO). But still there may be some situations where we want to write our own code that should be executed on the click of "Go" button like we want modify where clause/add some order by clause or some other operation like changing the property of some items(Based on PPR).

Don't have an Vision instance to practice these tutorials? Visit http://cholagls.com/products-/11i-virtual-machine for details.Our smart solution to smart people like you !!

To Override/Extend the functionality of "GO" button we have to add following piece of code to ProcessFormRequest method of controller class:
Step 1: Get Handle for Query bean
Step 2: Check whether "Go" button has been pressed.

 OAQueryBean query1 = (OAQueryBean)webBean.findIndexedChildRecursive("Region2");
 if(query1.getGoButtonName()!=null)
 {
 //Write your code here
 }

Reetesh
Points: 2031
Contact Author | Website :
 

Related Posts:

relatedArticles
Trackback(0)
Comments (0)add comment

Write comment

busy