I have noticed what
appears to be a calculation bug in OPS.
Steps to
reproduce
Goto:
Notice on line 5
there are 2 checkbox to indicate whether taxpayer and
spouse.
There is also a view
button that links to to the worksheet where the calculation of line 5 takes
place.
You will notice that
I initialized the taxpayer as checked or = 'X'
If you check both of
the boxes you will notice that the value doesn't chnage, even though it is bound
to line F on the worksheet. If you click" View" next to line 5 you will se
that line F = 800, which is what line 5 should equal with both boxes
checked.
Even if you dont
click view, it is easy to see something is going wrong:
If you change
line 2, for instance to anything else, you will see line 5 goto
800.
What could be
wrong?
Richard Braman http://www.taxcodesoftware.org -- 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 |
Administrator
|
Richard,
I am unable to access the URL you mention (server does not respond). It would help us reproducing the issue if you can create a subset of the form that we can run in the XForms sandbox. Alex On 3/4/06, Richard Braman <[hidden email]> wrote: > > I have noticed what appears to be a calculation bug in OPS. > > Steps to reproduce > Goto: > http://24.75.221.234:8080/taxcode/1040ez > > Notice on line 5 there are 2 checkbox to indicate whether taxpayer and > spouse. > There is also a view button that links to to the worksheet where the > calculation of line 5 takes place. > > You will notice that I initialized the taxpayer as checked or = 'X' > > If you check both of the boxes you will notice that the value doesn't > chnage, even though it is bound to line F on the worksheet. If you click" > View" next to line 5 you will se that line F = 800, which is what line 5 > should equal with both boxes checked. > > Even if you dont click view, it is easy to see something is going wrong: > If you change line 2, for instance to anything else, you will see line 5 > goto 800. > > What could be wrong? > > > > > Richard Braman > mailto:[hidden email] > 561.748.4002 (voice) > > http://www.taxcodesoftware.org > Free Open Source Tax Software > > > -- > 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 > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Sorry I had the server down for a sec. Its back on now.
-----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro Vernet Sent: Tuesday, March 07, 2006 5:34 PM To: [hidden email] Subject: Re: [ops-users] calc bug? Richard, I am unable to access the URL you mention (server does not respond). It would help us reproducing the issue if you can create a subset of the form that we can run in the XForms sandbox. Alex On 3/4/06, Richard Braman <[hidden email]> wrote: > > I have noticed what appears to be a calculation bug in OPS. > > Steps to reproduce > Goto: > http://24.75.221.234:8080/taxcode/1040ez > > Notice on line 5 there are 2 checkbox to indicate whether taxpayer and > spouse. There is also a view button that links to to the worksheet > where the calculation of line 5 takes place. > > You will notice that I initialized the taxpayer as checked or = 'X' > > If you check both of the boxes you will notice that the value doesn't > chnage, even though it is bound to line F on the worksheet. If you > click" View" next to line 5 you will se that line F = 800, which is > what line 5 should equal with both boxes checked. > > Even if you dont click view, it is easy to see something is going > wrong: If you change line 2, for instance to anything else, you will > see line 5 goto 800. > > What could be wrong? > > > > > Richard Braman > mailto:[hidden email] > 561.748.4002 (voice) > > http://www.taxcodesoftware.org > Free Open Source Tax Software > > > -- > 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 > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 |
Administrator
|
Richard,
I am not sure to understand what the issue is. On box 5, you would like the user to be able to select only one of checkboxes? That is: none selected, you selected, or spouse selected, but not you and spouse. Is that it? You have some <xforms:bind calculate="..."> to prevent both checkboxes from being selected but that doesn't work as you expect. Is that the issue? Alex On 3/7/06, Richard Braman <[hidden email]> wrote: > Sorry I had the server down for a sec. Its back on now. > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of > Alessandro Vernet > Sent: Tuesday, March 07, 2006 5:34 PM > To: [hidden email] > Subject: Re: [ops-users] calc bug? > > > Richard, > > I am unable to access the URL you mention (server does not respond). It > would help us reproducing the issue if you can create a subset of the > form that we can run in the XForms sandbox. > > Alex > > On 3/4/06, Richard Braman <[hidden email]> wrote: > > > > I have noticed what appears to be a calculation bug in OPS. > > > > Steps to reproduce > > Goto: > > http://24.75.221.234:8080/taxcode/1040ez > > > > Notice on line 5 there are 2 checkbox to indicate whether taxpayer and > > > spouse. There is also a view button that links to to the worksheet > > where the calculation of line 5 takes place. > > > > You will notice that I initialized the taxpayer as checked or = 'X' > > > > If you check both of the boxes you will notice that the value doesn't > > chnage, even though it is bound to line F on the worksheet. If you > > click" View" next to line 5 you will se that line F = 800, which is > > what line 5 should equal with both boxes checked. > > > > Even if you dont click view, it is easy to see something is going > > wrong: If you change line 2, for instance to anything else, you will > > see line 5 goto 800. > > > > What could be wrong? > > > > > > > > > > Richard Braman > > mailto:[hidden email] > > 561.748.4002 (voice) > > > > http://www.taxcodesoftware.org > > Free Open Source Tax Software > > > > > > -- > > 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 > > > > > > > > > -- > Blog (XML, Web apps, Open Source): > http://www.orbeon.com/blog/ > > > > > > > -- > 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 > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Hi Alex.
No, I am thankfully passed the exclusive checkbox issue, but both boxes on line 5 can be checked :) Let me try to re-explain. Bascially when you check one of the boxes on line 5, it changes the value of line 5 to 800, which is incorrect. Page 1 line 5 derives its value from Page 2, line F see code below). If you click "view" next to page 1 line 5, or if you click page 2 at the bottom, you will notice line F is 4000, not 800. Note: If you change the value of any other contol on the page, say line 2, line 5 gets correctly updated to 4000. Note: Line 5, Line F would only be 800 if both boxes on line 5 are checked. It appears that the recalc is stopping for some reason. In the code line 5 is bind id is f1-22 which looks like this: <xforms:bind id="f1-22" nodeset="/form/f1040ez/SEQ0815" calculate=" if (instance('f1040ez')//f1040ez/SEQ0775 eq 'X' or instance('f1040ez')//f1040ez/SEQ0770 eq 'X') then instance('standard-deduction-worksheet')//wksht/lineF else if (instance('f1040ez')//f1040ez/SEQ0030 eq '') then 8200 else 16400 "/> So if either checkbox is checked it looks to lineF lineF is <xforms:bind id="f2-6" nodeset="instance('standard-deduction-worksheet')//wksht/lineF" calculate=" instance('standard-deduction-worksheet')//wksht/lineD + instance('standard-deduction-worksheet')//wksht/lineE"/> -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro Vernet Sent: Thursday, March 09, 2006 8:34 PM To: [hidden email] Subject: Re: [ops-users] calc bug? Richard, I am not sure to understand what the issue is. On box 5, you would like the user to be able to select only one of checkboxes? That is: none selected, you selected, or spouse selected, but not you and spouse. Is that it? You have some <xforms:bind calculate="..."> to prevent both checkboxes from being selected but that doesn't work as you expect. Is that the issue? Alex On 3/7/06, Richard Braman <[hidden email]> wrote: > Sorry I had the server down for a sec. Its back on now. > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of > Alessandro Vernet > Sent: Tuesday, March 07, 2006 5:34 PM > To: [hidden email] > Subject: Re: [ops-users] calc bug? > > > Richard, > > I am unable to access the URL you mention (server does not respond). > It would help us reproducing the issue if you can create a subset of > the form that we can run in the XForms sandbox. > > Alex > > On 3/4/06, Richard Braman <[hidden email]> wrote: > > > > I have noticed what appears to be a calculation bug in OPS. > > > > Steps to reproduce > > Goto: > > http://24.75.221.234:8080/taxcode/1040ez > > > > Notice on line 5 there are 2 checkbox to indicate whether taxpayer > > and > > > spouse. There is also a view button that links to to the worksheet > > where the calculation of line 5 takes place. > > > > You will notice that I initialized the taxpayer as checked or = 'X' > > > > If you check both of the boxes you will notice that the value > > doesn't chnage, even though it is bound to line F on the worksheet. > > If you click" View" next to line 5 you will se that line F = 800, > > which is what line 5 should equal with both boxes checked. > > > > Even if you dont click view, it is easy to see something is going > > wrong: If you change line 2, for instance to anything else, you > > will see line 5 goto 800. > > > > What could be wrong? > > > > > > > > > > Richard Braman > > mailto:[hidden email] > > 561.748.4002 (voice) > > > > http://www.taxcodesoftware.org > > Free Open Source Tax Software > > > > > > -- > > 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 > > > > > > > > > -- > Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ > > > > > > > -- > You receive this message as a subscriber of the > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ f1040ez.xsl (56K) Download Attachment |
Administrator
|
Richard,
I have a hard time figuring out what is going on in this case without running your code locally. Maybe someone else in the list can figure this out. Alex On 3/10/06, Richard Braman <[hidden email]> wrote: > Hi Alex. > > No, I am thankfully passed the exclusive checkbox issue, but both boxes > on line 5 can be checked :) Let me try to re-explain. Bascially when > you check one of the boxes on line 5, it changes the value of line 5 to > 800, which is incorrect. Page 1 line 5 derives its value from Page 2, > line F see code below). If you click "view" next to page 1 line 5, or > if you click page 2 at the bottom, you will notice line F is 4000, not > 800. Note: If you change the value of any other contol on the page, say > line 2, line 5 gets correctly updated to 4000. Note: Line 5, Line F > would only be 800 if both boxes on line 5 are checked. It appears that > the recalc is stopping for some reason. > > In the code line 5 is bind id is f1-22 which looks like this: > > <xforms:bind id="f1-22" nodeset="/form/f1040ez/SEQ0815" calculate=" > if (instance('f1040ez')//f1040ez/SEQ0775 > eq 'X' or instance('f1040ez')//f1040ez/SEQ0770 eq 'X') then > > instance('standard-deduction-worksheet')//wksht/lineF > else > if > (instance('f1040ez')//f1040ez/SEQ0030 eq '') then > 8200 > else > 16400 > > "/> > > So if either checkbox is checked it looks to lineF > > lineF is > <xforms:bind id="f2-6" > nodeset="instance('standard-deduction-worksheet')//wksht/lineF" > calculate=" > > instance('standard-deduction-worksheet')//wksht/lineD + > instance('standard-deduction-worksheet')//wksht/lineE"/> > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of > Alessandro Vernet > Sent: Thursday, March 09, 2006 8:34 PM > To: [hidden email] > Subject: Re: [ops-users] calc bug? > > > Richard, > > I am not sure to understand what the issue is. On box 5, you would like > the user to be able to select only one of checkboxes? That is: none > selected, you selected, or spouse selected, but not you and spouse. Is > that it? You have some <xforms:bind calculate="..."> to prevent both > checkboxes from being selected but that doesn't work as you expect. Is > that the issue? > > Alex > > On 3/7/06, Richard Braman <[hidden email]> wrote: > > Sorry I had the server down for a sec. Its back on now. > > > > -----Original Message----- > > From: [hidden email] [mailto:[hidden email]] On Behalf Of > > Alessandro Vernet > > Sent: Tuesday, March 07, 2006 5:34 PM > > To: [hidden email] > > Subject: Re: [ops-users] calc bug? > > > > > > Richard, > > > > I am unable to access the URL you mention (server does not respond). > > It would help us reproducing the issue if you can create a subset of > > the form that we can run in the XForms sandbox. > > > > Alex > > > > On 3/4/06, Richard Braman <[hidden email]> wrote: > > > > > > I have noticed what appears to be a calculation bug in OPS. > > > > > > Steps to reproduce > > > Goto: > > > http://24.75.221.234:8080/taxcode/1040ez > > > > > > Notice on line 5 there are 2 checkbox to indicate whether taxpayer > > > and > > > > > spouse. There is also a view button that links to to the worksheet > > > where the calculation of line 5 takes place. > > > > > > You will notice that I initialized the taxpayer as checked or = 'X' > > > > > > If you check both of the boxes you will notice that the value > > > doesn't chnage, even though it is bound to line F on the worksheet. > > > > If you click" View" next to line 5 you will se that line F = 800, > > > which is what line 5 should equal with both boxes checked. > > > > > > Even if you dont click view, it is easy to see something is going > > > wrong: If you change line 2, for instance to anything else, you > > > will see line 5 goto 800. > > > > > > What could be wrong? > > > > > > > > > > > > > > > Richard Braman > > > mailto:[hidden email] > > > 561.748.4002 (voice) > > > > > > http://www.taxcodesoftware.org > > > Free Open Source Tax Software > > > > > > > > > -- > > > 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 > > > > > > > > > > > > > > > -- > > Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ > > > > > > > > > > > > > > -- > > 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 > > > > > > > > > -- > Blog (XML, Web apps, Open Source): > http://www.orbeon.com/blog/ > > > > > -- > 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 > > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Richard, have you got anything you can send over so I can have a look?
Ryan Puddephatt Software Engineer TFX Group - IT UK 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 >-----Original Message----- >From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro >Vernet >Sent: 13 March 2006 21:08 >To: [hidden email] >Subject: Re: [ops-users] calc bug? > >Richard, > >I have a hard time figuring out what is going on in this case without >running your code locally. Maybe someone else in the list can figure >this out. > >Alex > >On 3/10/06, Richard Braman <[hidden email]> wrote: >> Hi Alex. >> >> No, I am thankfully passed the exclusive checkbox issue, but both boxes >> on line 5 can be checked :) Let me try to re-explain. Bascially when >> you check one of the boxes on line 5, it changes the value of line 5 to >> 800, which is incorrect. Page 1 line 5 derives its value from Page 2, >> line F see code below). If you click "view" next to page 1 line 5, or >> if you click page 2 at the bottom, you will notice line F is 4000, not >> 800. Note: If you change the value of any other contol on the page, say >> line 2, line 5 gets correctly updated to 4000. Note: Line 5, Line F >> would only be 800 if both boxes on line 5 are checked. It appears that >> the recalc is stopping for some reason. >> >> In the code line 5 is bind id is f1-22 which looks like this: >> >> <xforms:bind id="f1-22" nodeset="/form/f1040ez/SEQ0815" calculate=" >> if (instance('f1040ez')//f1040ez/SEQ0775 >> eq 'X' or instance('f1040ez')//f1040ez/SEQ0770 eq 'X') then >> >> instance('standard-deduction-worksheet')//wksht/lineF >> else >> if >> (instance('f1040ez')//f1040ez/SEQ0030 eq '') then >> 8200 >> else >> 16400 >> >> "/> >> >> So if either checkbox is checked it looks to lineF >> >> lineF is >> <xforms:bind id="f2-6" >> nodeset="instance('standard-deduction-worksheet')//wksht/lineF" >> calculate=" >> >> instance('standard-deduction-worksheet')//wksht/lineD + >> instance('standard-deduction-worksheet')//wksht/lineE"/> >> >> -----Original Message----- >> From: [hidden email] [mailto:[hidden email]] On Behalf Of >> Alessandro Vernet >> Sent: Thursday, March 09, 2006 8:34 PM >> To: [hidden email] >> Subject: Re: [ops-users] calc bug? >> >> >> Richard, >> >> I am not sure to understand what the issue is. On box 5, you would like >> the user to be able to select only one of checkboxes? That is: none >> selected, you selected, or spouse selected, but not you and spouse. Is >> that it? You have some <xforms:bind calculate="..."> to prevent both >> checkboxes from being selected but that doesn't work as you expect. Is >> that the issue? >> >> Alex >> >> On 3/7/06, Richard Braman <[hidden email]> wrote: >> > Sorry I had the server down for a sec. Its back on now. >> > >> > -----Original Message----- >> > From: [hidden email] [mailto:[hidden email]] On Behalf Of >> > Alessandro Vernet >> > Sent: Tuesday, March 07, 2006 5:34 PM >> > To: [hidden email] >> > Subject: Re: [ops-users] calc bug? >> > >> > >> > Richard, >> > >> > I am unable to access the URL you mention (server does not respond). >> > It would help us reproducing the issue if you can create a subset of >> > the form that we can run in the XForms sandbox. >> > >> > Alex >> > >> > On 3/4/06, Richard Braman <[hidden email]> wrote: >> > > >> > > I have noticed what appears to be a calculation bug in OPS. >> > > >> > > Steps to reproduce >> > > Goto: >> > > http://24.75.221.234:8080/taxcode/1040ez >> > > >> > > Notice on line 5 there are 2 checkbox to indicate whether taxpayer >> > > and >> > >> > > spouse. There is also a view button that links to to the worksheet >> > > where the calculation of line 5 takes place. >> > > >> > > You will notice that I initialized the taxpayer as checked or = 'X' >> > > >> > > If you check both of the boxes you will notice that the value >> > > doesn't chnage, even though it is bound to line F on the worksheet. >> >> > > If you click" View" next to line 5 you will se that line F = 800, >> > > which is what line 5 should equal with both boxes checked. >> > > >> > > Even if you dont click view, it is easy to see something is going >> > > wrong: If you change line 2, for instance to anything else, you >> > > will see line 5 goto 800. >> > > >> > > What could be wrong? >> > > >> > > >> > > >> > > >> > > Richard Braman >> > > mailto:[hidden email] >> > > 561.748.4002 (voice) >> > > >> > > http://www.taxcodesoftware.org >> > > Free Open Source Tax Software >> > > >> > > >> > > -- >> > > 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 >> > > >> > > >> > > >> > >> > >> > -- >> > Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ >> > >> > >> > >> > >> > >> > >> > -- >> > 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 >> > >> > >> > >> >> >> -- >> Blog (XML, Web apps, Open Source): >> http://www.orbeon.com/blog/ >> >> >> >> >> -- >> 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 >> >> >> >> > > >-- >Blog (XML, Web apps, Open Source): >http://www.orbeon.com/blog/ -- 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 |
Free forum by Nabble | Edit this page |