How to set xforms:variable value to xxforms:maxlength attribute.

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

How to set xforms:variable value to xxforms:maxlength attribute.

Laxmi Narayana-3
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
Reply | Threaded
Open this post in threaded view
|

Re: How to set xforms:variable value to xxforms:maxlength attribute.

Hank Ratzesberger
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:

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: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws

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
Reply | Threaded
Open this post in threaded view
|

Re: Re: How to set xforms:variable value to xxforms:maxlength attribute.

Laxmi Narayana-3
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:
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:

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: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws

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




--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: How to set xforms:variable value to xxforms:maxlength attribute.

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