Saturday, March 19, 2011

View Criteria and CRITERIA_AUTO_EXECUTE Property - ADF 11g PS3

Quick update for previous blog post - View Criteria and CRITERIA_AUTO_EXECUTE Property. Sample application for that post was implemented quite long time ago in 2009. We were checking recently, same functionality on ADF 11g PS3 - to control programmatically View Criteria execution mode. In order to make it work now, code should be changed slightly - add two lines of code:

1. Reset View Criteria, this will clean previously assigned parameter values
2. Save View Criteria state, this will store new value for CRITERIA_AUTO_EXECUTE parameter

Sample code to change CRITERIA_AUTO_EXECUTE parameter and save View Criteria state:


4 comments:

Corneliu said...

Hi,

I make a search and after reseting the ViewCriteria, the iterator on page won't reset to its previous state.

Should the Iterator automaticaly reset also when I reset the ViewCriteria?

Regards Corneliu

Corneliu said...

Hi,

Should the iterator auto reset when I reset a view criteria?
Because on the page the iterator still remains with the values from search.

Regards Corneliu

Andrejus Baranovskis said...

Hi,

It will happen, only if Query Auto Execute is set to True.

Andrejus

Corneliu said...

Thanks,

It works

Corneliu