Hi list,
Would there be an extensive example on how to handle currencies properly within xforms ? Thank you in advance, Niko, -- 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 |
Administrator
|
Niko,
I don't think we have such a thing. The first key though is making sure you treat all currency data as XPath xs:decimal types before performing operations on them. -Erik On Sep 15, 2008, at 6:59 PM, Nicolas Modrzyk wrote: > Hi list, > > Would there be an extensive example on how to handle currencies > properly within xforms ? > > Thank you in advance, > > Niko, > > -- > 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 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi Erik,
Thanks for the hint. Right now, some users wants to display: 1,000 with an actual value of: 1000 For currencies, sometimes we have 1000.00 and other times 1000,00 but you still want to be able to add them up. I'll start pointing users to your answer as a start. Thanks ! Nicolas, On Fri, Sep 19, 2008 at 3:23 AM, Erik Bruchez <[hidden email]> wrote: > Niko, > > I don't think we have such a thing. > > The first key though is making sure you treat all currency data as XPath > xs:decimal types before performing operations on them. > > -Erik > > On Sep 15, 2008, at 6:59 PM, Nicolas Modrzyk wrote: > >> Hi list, >> >> Would there be an extensive example on how to handle currencies >> properly within xforms ? >> >> Thank you in advance, >> >> Niko, >> >> -- >> 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 > > -- > 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 > 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 |
Administrator
|
Nicolas,
Good. Further notes: if values are typed as xs:decimal with xforms:bind/@type, then with xforms:output/@ref they will be formatted according to: http://www.orbeon.com/ops/doc/reference-xforms-2#xforms-formatting However for xforms:input, they will show as they are currently in the instance. Ideally, currencies would be normalized in the instance, e.g. like 1000.00. -Erik On Sep 18, 2008, at 3:51 PM, Nicolas Modrzyk wrote: > Hi Erik, > > Thanks for the hint. > Right now, some users wants to display: > 1,000 > with an actual value of: > 1000 > For currencies, sometimes we have 1000.00 and other times 1000,00 but > you still want to be able to add them up. > > I'll start pointing users to your answer as a start. > > Thanks ! > > Nicolas, > > On Fri, Sep 19, 2008 at 3:23 AM, Erik Bruchez <[hidden email]> > wrote: >> Niko, >> >> I don't think we have such a thing. >> >> The first key though is making sure you treat all currency data as >> XPath >> xs:decimal types before performing operations on them. >> >> -Erik >> >> On Sep 15, 2008, at 6:59 PM, Nicolas Modrzyk wrote: >> >>> Hi list, >>> >>> Would there be an extensive example on how to handle currencies >>> properly within xforms ? >>> >>> Thank you in advance, >>> >>> Niko, >>> >>> -- >>> 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 >> >> -- >> 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 >> 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 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Erik,
I've forwarded your answer to the designated user developing with currencies here. Will give you some feedback, and hopefully an example on how he dealt with it. Thanks a lot ! Niko On Fri, Sep 19, 2008 at 1:09 PM, Erik Bruchez <[hidden email]> wrote: > Nicolas, > > Good. Further notes: if values are typed as xs:decimal with > xforms:bind/@type, then with xforms:output/@ref they will be formatted > according to: > > http://www.orbeon.com/ops/doc/reference-xforms-2#xforms-formatting > > However for xforms:input, they will show as they are currently in the > instance. Ideally, currencies would be normalized in the instance, e.g. like > 1000.00. > > -Erik > > On Sep 18, 2008, at 3:51 PM, Nicolas Modrzyk wrote: > >> Hi Erik, >> >> Thanks for the hint. >> Right now, some users wants to display: >> 1,000 >> with an actual value of: >> 1000 >> For currencies, sometimes we have 1000.00 and other times 1000,00 but >> you still want to be able to add them up. >> >> I'll start pointing users to your answer as a start. >> >> Thanks ! >> >> Nicolas, >> >> On Fri, Sep 19, 2008 at 3:23 AM, Erik Bruchez <[hidden email]> wrote: >>> >>> Niko, >>> >>> I don't think we have such a thing. >>> >>> The first key though is making sure you treat all currency data as XPath >>> xs:decimal types before performing operations on them. >>> >>> -Erik >>> >>> On Sep 15, 2008, at 6:59 PM, Nicolas Modrzyk wrote: >>> >>>> Hi list, >>>> >>>> Would there be an extensive example on how to handle currencies >>>> properly within xforms ? >>>> >>>> Thank you in advance, >>>> >>>> Niko, >>>> >>>> -- >>>> 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 >>> >>> -- >>> 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 >>> 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 > > -- > 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 > 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 |
Free forum by Nabble | Edit this page |