problem with xxforms:variable in maxlength attribute in xforms

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

problem with xxforms:variable in maxlength attribute in xforms

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"/>
 
Here index is a variable it gives  position.

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.

--
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: problem with xxforms:variable in maxlength attribute in xforms

Erik Bruchez
Administrator
>  <xforms:input ref="customFieldValue" xxforms:size="20"  
> xxforms:maxlength="$maxlength1"/>
>
Try:

   <xforms:input ref="customFieldValue" xxforms:size="20"  
xxforms:maxlength="{$maxlength1}"/>

-Erik

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

Re: Re: problem with xxforms:variable in maxlength attribute in xforms

Laxmi Narayana-3
Hi,
 
I checked below condition But that also not working.
 
 <xforms:input ref="customFieldValue" xxforms:size="20" xxforms:maxlength="{$maxlength1}"/>

Please help me how to solve this.
On Wed, Apr 8, 2009 at 7:27 AM, Erik Bruchez <[hidden email]> wrote:
 <xforms:input ref="customFieldValue" xxforms:size="20" xxforms:maxlength="$maxlength1"/>

Try:


 <xforms:input ref="customFieldValue" xxforms:size="20" xxforms:maxlength="{$maxlength1}"/>

-Erik

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




--
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: problem with xxforms:variable in maxlength attribute in xforms

Erik Bruchez
Administrator
How old is your build? This particular AVT was implemented recently.  
You will need a recent build for this to work.

-Erik

On Apr 8, 2009, at 2:16 AM, Laxmi Narayana wrote:

> Hi,
>
> I checked below condition But that also not working.
>
>  <xforms:input ref="customFieldValue" xxforms:size="20"  
> xxforms:maxlength="{$maxlength1}"/>
>
> Please help me how to solve this.
> On Wed, Apr 8, 2009 at 7:27 AM, Erik Bruchez <[hidden email]>  
> wrote:
>  <xforms:input ref="customFieldValue" xxforms:size="20"  
> xxforms:maxlength="$maxlength1"/>
>
> Try:
>
>
>  <xforms:input ref="customFieldValue" xxforms:size="20"  
> xxforms:maxlength="{$maxlength1}"/>
>
> -Erik
>
> --
> 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
>
>
>
>
> --
> 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
--
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