Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[ ADF, JDev12.1.3 ] Programmatically call ExecuteWithParams operations when the page is loaded. How

FlattitNov 14 2014 — edited Nov 14 2014

Hallo,

in a btf I have a "readonly" page that uses many VO istances (for fields, tables, ...).

When the page is loaded I need to call for each VO its ExecuteWithParams operation.

I would drag&drop (in cascade) the ExecuteWithParams operation of each VO in the task flow but the problem is that I need to perform some logic to call them.

E.g. I have some cases in which I need to exec a VO and then pass the value of a field of the returned record to the ExecuteWithParams of another VO.

I guess that I cannot handle this "declaratively" in the taskflow but I have to use some code in a managed bean.

Till now I added to the bindings of the page the ExecuteWithParams action of each VO.

I know that to call the ExecuteWithParams of each VO I can use a code like this...

OperationBinding operationBinding = BindingsUtils.getBindings().getOperationBinding("ExecuteWithParamsToCall");

operationBinding.getParamsMap().putAll(paramsMap);

Object result = operationBinding.execute();

if (!operationBinding.getErrors().isEmpty()) {

  return false;

  }

... but the problem is... when and where have I to call it?

I wrote in the view scoped managed bean a public function initPage() tha calls all the ExecuteWithParams.

How can I use this function?

Can I use it during lazy loading fo the page?

Can I use it as method call to place in the btf before the page? I've to confess that I've already tried this way but it didn't work...

Besides, after calling an ExecuteWithParams of a VO, as I said before, I may have the need to process the VO after its execution to gather the values of some fields (I will pass these values to the ExecuteWithParams of another VO).

Can I access the iterator from the bean using the iterator binding?

Many thanks,

Federico

This post has been answered by kdario on Nov 14 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 12 2014
Added on Nov 14 2014
9 comments
537 views