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!

Programmatically trigger task flow navigation to inline-popup BTF call

KevinAngusJul 7 2011 — edited Jul 7 2011
Hi folks,

Jdeveloper/ADF 11.1.1.4.

I have a bounded task flow where "ViewA" has a control flow case called "schedule" that links it to a task flow call "scheduleBTF". The task flow call uses the inline-popup dialog framework.

ViewA ----schedule----> scheduleBTF

Currently, I have a command button on the page for ViewA which an action of "schedule". This launches the scheduleBTF successfully in an embedded window.

What I would like to do is diaplay a yes/no/cancel dialog for the user to choose from a couple of different options before the scheduleBTF is launched.

I have added a backing bean method for the action of the command button that shows the dialog popup if necessary.

My question is how do I trigger the task flow navigation to the called BTF from the DialogListener method?

Based on code from From Frank Nimphius' book I tried the following:
ControllerContext ccontext = ControllerContext.getInstance();
//define the viewId of the view in the bounded task flow
//to navigate to next
String viewId = "scheduleBTF";
ccontext.getCurrentViewPort().setViewId(viewId);
However I got an error that the View ID is invalid. I appreciate a bounded task flow is not a view, is there another method for BTF calls? Should this work and I have mistyped something somewhere?

Cheers,

Kevin
This post has been answered by kojot on Jul 7 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 4 2011
Added on Jul 7 2011
2 comments
4,068 views