Hi There,

Is it possible to have two CForm templates, which have the same data, just arranged in two different ways, and sharing the same flow script and the same form. Each form has a button that when clicked will show the other form.

I have these xml files:

form_template1.xml--for form 1
form_template2.xml--for form 2
form.xml--common to both forms

These associated sitemap fragments:

<map:match pattern="*.continue">
 <map:call continuation="{1}"/>
</map:match>

<map:match pattern="*-display-pipeline">
 <map:generate src="{1}_template.xml"/>
</map:match>

And in flowcript:

function two_forms() {
   var formname = "context://myapp/form1.xml";
   var pipelinename="form1-display-pipeline";

   /*more code */
   if (showPageAndContinue(pipelinename, form, selectListData)) {
         if(form.submitId="save") {
           /*code for save*/
           }
         if{form.submitId="form2") {
showPageAndContinue("form2-display-pipeline", form, selectListData)
         }
   }


The problem is that I am able to save data when on form1, but on form2, I get this error when I try to save: Sitemap: <map:call continuation> did not send a response at <map:call> and it says that my call failed in the sitemap on the line <map:call continuation="{1}"/> in the match for *.continue.

Any ideas re. what I am doing wrong would be appreciated.

thx.
Paul


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org

Reply via email to