Jdeveloper 12.1.2
Hi. I have an application module method called testCount that gets one of the app modules view objects (that is configured to run a view criteria) , it sets the bind variable, executes the view object, and gets the count and then returns it.
public int testScoresCount(Long prmiId){
int cnt = 0 ;
ViewObjectImpl vo = this.getSatActTestsPrmiIDEqualsVI() ;
vo.setNamedWhereClauseParam("bvPrmiId", prmiId);
vo.executeQuery();
cnt = vo.getRowCount();
return cnt ;
}
The method is exposed to the client.
In the past, I registered the method in the JSF binding page (with the parameter set), then created a bean with a variable and using bindings called the method.
Is it possible to just drag the _return_type from the data control onto the page (no code -- simple)?
I tried the following -- and it worked but with problems:
From the data control I opened up the method and dragged the method "_return_type_" onto the jsf page as an input text. When I run the page, the count does NOT show.
However, if I press F5 on the JSF page, it refreshes and the count shows up. Then if I press Next and go to the next record, the count does not refresh.
If I press f5 then the count refreshes.
How do I get this to automatically refresh every time the page changes records? I don't see anything on the bindings page to make it refresh "ifNeeded" (like a task flow does). I want to java avoid code.
Ideally, the refresh condition is not tied to a UI component -- I would like to just place #{bindings.return.inputValue} anywhere on the form.
Thank you,
Stuart