You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by stefan pickschneider <pi...@freenet.de> on 2005/04/13 17:12:26 UTC
Flows & Continuation
Hello everybody,
we have a problem using continuations...
we have two forms: editParent and editChild -
both use flowscript.
in the editparent form is a repeater that shows
the assigned child. if the user adds an child
the editChild form is opened.
so far we couldn't figure out how one can return to the
continuation-state of the flowscript editParent.js after
finishing flow editChild.js.
both forms are opened in the same window.
editParent.js looks like
...
while (true) {
...
form.showform("editParent-showform");
...
if (addChild) {
form.sendPageAndWait("editChild.html");
// >>> continue here after editChild is done
// add child to repeater
}
if (save) {
break;
}
}
editChild.js
...
form.showform("editChild-showform");
...
// return to parent continuation
// HOW?
We have tried to submit the current continuation id of the parent
to the editChild flow /*{"continuationId":cocoon.continuation.id}*/
and after the child form is saved redirecting back to this id,
but only an empty editParent form is shown - the continuation doesn't
seem to be resumed.
Any ideas?
Thanks a lot!
stefan.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org