Sum of two input fields as total for third input field

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

Sum of two input fields as total for third input field

JohnBampton
Hello all,


Just wondering how I get the total of two decimal input fields and display this in a third field?

Regards,

John.
Reply | Threaded
Open this post in threaded view
|

Re: Sum of two input fields as total for third input field

Jeroen Hoffman

I suggest to use an XPath expression in the calculate attribute of the bind
element on you third field.

An example here http://www.w3.org/TR/2007/CR-xforms11-20071129/#model-prop-calculate

Jeroen Hoffman


JohnBampton wrote:

> Hello all,
>
>
> Just wondering how I get the total of two decimal input fields and display
> this in a third field?
>
> Regards,
>
> John.
>


--
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