You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by JD Daniels <jd...@datatrio.com> on 2003/07/05 19:25:26 UTC

Flow Help

hello,

    I have a flow script.. what i want to do is perform a search, display
the results, so far so good. Now I provide an edit link to edit a result,
still good, but when the edit has been saved, i want to return to the search
result page. I display a notice page with sendPageAndWait() and provide a
link with the continuation, but when i follow it, i get a blank page... I
must be misunderstanding a simple concept here :(

Heres my Javascript:
Help???

function postTickets()
{
//snip the search form part
 while (true)
 {
  var act = cocoon.request.get("act");
  var id = cocoon.request.get("id");
  var ticketList = getManager().invoiceTicketList(project, client,
hardware_reference, billing_type, charge_type, tech, datestart, dateend);
  var rowCount = ticketList.rowCount;

  if (act == "remove")
  {
  }
  else if (act == "edit")
  {
   print("Sending Edit Page");
   sendPageAndWait("ManagerEditTicket.form");
  }
  else if (act == "commit")
  {
  }
else{
  sendPageAndWait("InvoiceTicketResults.jexl", {
      invoiceResultsTicketList: ticketList.rows,
     });
} }
}


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