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