Wizard functionality

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Wizard functionality

Jimmy
I'm working on a wizard with three sections; personal, other, confirm.
The button works fine going from "personal" to "other" but the form crashes when going from "other" to "confirm".
I'm a bit puzzled by the if then else statement in xml.

<fr:button xxforms:modal="true" ref=".[instance('fr-form-instance')/internal/part != 'confirm']">
          <xforms:label>
                  <xhtml:img width="16" height="16" src="/apps/fr/style/images/pixelmixer/right_16.png" alt=""/>
                  <xhtml:span>Next</xhtml:span>
          </xforms:label>
	 <xforms:setvalue ev:event="DOMActivate" ref="instance('fr-form-instance')/internal/part"
         value="if (. = 'personal') then 'other' else if (. = 'other') then 'confirm' else ''"/>
</fr:button>
Reply | Threaded
Open this post in threaded view
|

Re: Wizard functionality

Erik Bruchez
Administrator
For reference, the markup that was swallowed by Nabble:

<fr:button xxforms:modal="true" ref=".[instance('fr-form-instance')/internal/part != 'confirm']">
          <xforms:label>
                  <xhtml:img width="16" height="16" src="/apps/fr/style/images/pixelmixer/right_16.png" alt=""/>
                  <xhtml:span>Next</xhtml:span>
          </xforms:label>
<xforms:setvalue ev:event="DOMActivate" ref="instance('fr-form-instance')/internal/part"
         value="if (. = 'personal') then 'other' else if (. = 'other') then 'confirm' else ''"/>
</fr:button>

I don't see anything blatantly wrong with the code above. What does the crash look like?

-Erik

On Fri, Mar 18, 2011 at 7:24 AM, Jimmy <[hidden email]> wrote:
I'm working on a wizard with three sections; personal, other, confirm.
The button works fine going from "personal" to "other" but the form crashes
when going from "other" to "confirm".
I'm a bit puzzled by the if then else statement in xml.




                 Next




--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Wizard-functionality-tp3387322p3387322.html
Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Wizard functionality

Jimmy
There's no error message. But it is complaining about some response element:
<p:output name="response" id="xforms-response"/>
Here's the resource:
oxf:/ops/xforms/xforms-server.xpl
Reply | Threaded
Open this post in threaded view
|

Re: Wizard functionality

Jimmy
I'll attach the file. Maybe some one could have a look..

personuppg.xhtml
Reply | Threaded
Open this post in threaded view
|

Re: Re: Wizard functionality

Erik Bruchez
Administrator
With a recent build, I am able to navigate fine between pages.

Can you try 3.9 RC1?

-Erik

On Thu, Mar 24, 2011 at 2:27 AM, Jimmy <[hidden email]> wrote:

> I'll attach the file. Maybe some one could have a look..
>
> http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n3401979/personuppg.xhtml
> personuppg.xhtml
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Wizard-functionality-tp3387322p3401979.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Wizard functionality

Jimmy
Yeah, that did it. Works fine now with the 3.9 build.
Reply | Threaded
Open this post in threaded view
|

Re: Re: Wizard functionality

Jimmy
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Re: Wizard functionality

Jimmy
You can ignore the post made earlier. I found the error right away, typically.