<xforms:setvalue ref="../../../@person-type" value="if (../info/cohabitant-info/apply = '1') then ('Secondary Applicant') else ('Cohabitant')" /> But the next snippet of code does change the value of the attribute: <xforms:setvalue ref="../../../@person-type" value="if (../info/cohabitant-info/apply = '1') then ('Secondary-Applicant') else ('Cohabitant')" /> As you can see, the only difference is that the string constant ‘Secondary-Applicant’ no longer has a space in it. Any ideas why a space in that constant prevents the setvalue from working? Jack --------------------- Jack Cox CapTech Ventures, Inc. 1118 W. Main St. Richmond, VA 23220 804-545-8765 -- 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
|
Jack,
Absolutely no idea. Either are meant to work. If you can send a reproducible example running in the XForms sandbox, we can have a look at it. Best, -Erik Jack Cox wrote: > Here’s an odd problem. The following code does not set the value of the > ../../../@person-type attribute: > > <xforms:setvalue ref="../../../@person-type" > value="if > (../info/cohabitant-info/apply = '1') > then ('Secondary Applicant') > else ('Cohabitant')" /> > > But the next snippet of code does change the value of the attribute: > > <xforms:setvalue ref="../../../@person-type" > value="if > (../info/cohabitant-info/apply = '1') > then ('Secondary-Applicant') > else ('Cohabitant')" /> > > As you can see, the only difference is that the string constant > ‘Secondary-Applicant’ no longer has a space in it. > > Any ideas why a space in that constant prevents the setvalue from working? > > Jack > > --------------------- > Jack Cox > CapTech Ventures, Inc. > 1118 W. Main St. > Richmond, VA 23220 > 804-545-8765 > -- 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 |
Free forum by Nabble | Edit this page |