xforms:type validation

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

xforms:type validation

Laxmi Narayana-3
Hi,
 
I have one node name called as  isMultipleSelect if it is Y then i need xforms:string type else i need xforms:long type .How I can achieve this in xforms. Example code i have given below, it is not working correct me where i am wrong.
  
 
<xforms:bind nodeset="instance('main-instance')/result/customfields/customfield[@type='Number']/customFieldValue"      constraint="if(instance('main-instance')/result/customfields/customfield[@type='Number']/isMultipleSelect='Y') then 'xforms:string' else 'xforms:long'" required="true()"/>

Any help would be appreciated.
 
Regards,
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
|

Form Runner Submit button and confirmation page

ankur.badoni

Hi,

 

I have a very basic question. Using the form builder I have created a form. However when I use the form runner, I don’t get the Submit button. All I get is the Save button. Is this an expected behavior or did I miss some steps?

Further, how do I get to the confirmation page?

 

Best Regards,

Ankur Badoni

 

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.



--
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: xforms:type validation

Hank Ratzesberger
In reply to this post by Laxmi Narayana-3

Laxmi,

You may be able to use XPath 2.0 castable notation. Using the last half of 
your contraint...

then (. castable as xs:string) else (. castable as xs:long)


Cheers,
Hank



On May 7, 2009, at 9:56 PM, Laxmi Narayana wrote:

Hi,
 
I have one node name called as  isMultipleSelect if it is Y then i need xforms:string type else i need xforms:long type .How I can achieve this in xforms. Example code i have given below, it is not working correct me where i am wrong.
  
 
<xforms:bind nodeset="instance('main-instance')/result/customfields/customfield[@type='Number']/customFieldValue"      constraint="if(instance('main-instance')/result/customfields/customfield[@type='Number']/isMultipleSelect='Y') then 'xforms:string' else 'xforms:long'" required="true()"/>

Any help would be appreciated.
 
Regards,
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: Form Runner Submit button and confirmation page

Erik Bruchez
Administrator
In reply to this post by ankur.badoni
You can configure which buttons are used. Doc here:

http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties#TOC-Buttons-on-Detail-Page

-Erik

On May 7, 2009, at 11:41 PM, <[hidden email]> <[hidden email]
 > wrote:

> Hi,
>
> I have a very basic question. Using the form builder I have created  
> a form. However when I use the form runner, I don’t get the Submit  
> button. All I get is the Save button. Is this an expected behavior  
> or did I miss some steps?
> Further, how do I get to the confirmation page?
>
> Best Regards,
> Ankur Badoni
>
>
> This message is for the designated recipient only and may contain  
> privileged, proprietary, or otherwise private information. If you  
> have received it in error, please notify the sender immediately and  
> delete the original. Any other use of the email by you is prohibited.
>
>
> --
> 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