Hi,
I declared xxforms:variable in xforms:repeat like below.
<xxforms:variable name="maxlength1" select="instance('main-instance')//customfields/customfield[$index]/customFieldLength" as="xs:integer"/>
In <xforms:repeat> able to get maxlength1 value by using xforms:output.
<xforms:output ref="{$maxlength1}"/>
But It is not setting value to xxforms:maxlength attribute.
I am trying like this:
<xforms:input ref="customFieldValue" xxforms:size="20" xxforms:maxlength="$maxlength1"/>
Please help me. Thanks in advance, Laxmi Narayana. -- 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 Laxmi,
So, the xforms variable depends on $index...what is that? Do you mean to use "index('my-repeat')" the function? Cheers, Hank On Apr 2, 2009, at 8:29 PM, Laxmi Narayana wrote:
Hank Ratzesberger NEES@UCSB Institute for Crustal Studies, University of California, Santa Barbara 805-893-8042 -- 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,
Index is variable it contains value of position in repeat.In xforms:repeat declared like below.
<xxforms:variable name="index" select="position()" as="xs:integer"/>
Please help me.
Regards,
Laxmi.
On Fri, Apr 3, 2009 at 8:42 PM, Hank Ratzesberger <[hidden email]> wrote:
-- Please help me, I am new in XForms, It is urgent in my project! Thanks in advance, Laxmi Narayana. -- 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
|
On Apr 5, 2009, at 9:35 PM, Laxmi Narayana wrote:
> Index is variable it contains value of position in repeat.In > xforms:repeat declared like below. Try using <xforms:output value="{$maxlength1}"/>, instead of ref="...". When using ref="...", you are expected to point to to a node. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |