On 7 Dec 2003, at 16:59, Marcin Okraszewski wrote:

Hello,
I want to make a cancel action. On Wiki pagaes I found fallowing method:

"After pressing an action button, the form will normally always be redisplayed, unless the event handling code explicitely disables this (*by using the endFormProcessing method on the form object*)."

So I did fallowing widget:

    <wd:action id="cancel" action-command="cancel">
      <wd:label>cancel</wd:label>
      <wd:on-action>
        <javascript>
          event.source.form.endFormProcessing();
        </javascript>
      </wd:on-action>
    </wd:action>

but unfortunately I receive fallowing error:

TypeError: endFormProcessing is not a function.

I couldn't also find "endFormProcessing" in Woody2.js.

How to use it or is there any other way to finish flow without Validating form?

in the model:

<wd:submit id="cancel" action-command="cancel" validate="false">
        <wd:label>Cancel</wd:label>
</wd:submit>

in the template :

<wt:widget id="cancel"/>

in the Flowscript:

. . .
form.load (bizdata);
form.showForm (formURI);
if ("cancel".equals (form.submitId)) {
        // this was cancelled
        . . .
}
// this was not cancelled
. . .


HTH

regards Jeremy

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Reply via email to