problem with upload button

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

problem with upload button

Laxmi Narayana-3
Hi all ,
I  designed upload button on ops 3.5.1.
i want to manually not enter any value into uploadbutton.
I kept validation like below:
<xforms:bind nodeset="//file/@size"  constraint="string-length(.)!=0"/>
or
<xforms:bind nodeset="//file" constraint=". != ''"/>
it is not allowing to enter  manually anyvalue into upload button that is fine .but I upload anyclass through upload button and i click on submit button submission is not happening.
 
mycontrol code is like:

<instance>
    <job-class><xsl:value-of select="filename"/></job-class> 
    <file filename="" mediatype="" size=""></file> 

  </instance>
  

    <xforms:upload ref="instance('main-instance')/file">
                <xforms:filename ref="@filename"></xforms:filename>
               <xforms:mediatype ref="@mediatype"/>
                <xxforms:size ref="@size"/>
          </xforms:upload>

               plz help me how to provide validation for upload button.

thanks in advance,

Laxminarayana



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

Alessandro Vernet
Administrator
On Thu, May 22, 2008 at 9:42 PM, Laxmi Narayana <[hidden email]> wrote:

> Hi all ,
> I  designed upload button on ops 3.5.1.
> i want to manually not enter any value into uploadbutton.
> I kept validation like below:
> <xforms:bind nodeset="//file/@size"  constraint="string-length(.)!=0"/>
> or
> <xforms:bind nodeset="//file" constraint=". != ''"/>
> it is not allowing to enter  manually anyvalue into upload button that is
> fine .but I upload anyclass through upload button and i click on submit
> button submission is not happening.
Are you sure this is related to the validation? Is the upload control
working fine without the <xforms:bind> expressions?

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