xforms:setvalue not working?

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

xforms:setvalue not working?

mjgraham
Hi,

I have an instance:

<xf:instance id="status">
  <status>
    <summary>No actions performed</summary>
  </status>
</xf:instance>

and I want to change the value of summary when I submit something:

<xforms:trigger>
  <xforms:label>Submit</xforms:label>
  <xforms:action ev:event="DOMActivate">                
    <xforms:setvalue ref="instance('status')/summary">Submitting
form</xforms:setvalue>
    <xforms:send submission="main"/>
  </xforms:action>
</xforms:trigger>

but an <xforms:output ref="instance('status')/summary"/> does not change
when the Submit button is pressed. What am I doing wrong?

    Cheers,

    Matthew




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: xforms:setvalue not working?

Erik Bruchez
Administrator
Matthew,

Hard to tell. Can you send a reproducible example?

-Erik

Matthew Graham wrote:

> Hi,
>
> I have an instance:
>
> <xf:instance id="status">
>  <status>
>    <summary>No actions performed</summary>
>  </status>
> </xf:instance>
>
> and I want to change the value of summary when I submit something:
>
> <xforms:trigger>
>  <xforms:label>Submit</xforms:label>
>  <xforms:action ev:event="DOMActivate">                    
> <xforms:setvalue ref="instance('status')/summary">Submitting
> form</xforms:setvalue>
>    <xforms:send submission="main"/>
>  </xforms:action>
> </xforms:trigger>
>
> but an <xforms:output ref="instance('status')/summary"/> does not change
> when the Submit button is pressed. What am I doing wrong?
>
>    Cheers,
>
>    Matthew
>
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws