dynamic type defnition in xform bind

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

dynamic type defnition in xform bind

Prameela R

Hello,

 

Can I have conditional type in xforms bind?

 

I.e. if I selected country I should validate with one type of pattern for US pattern should change.

 

 

I can have US ZIP and IndiaZIP in XSD.

How should I define a type to a field depending on the country dynamically?

 

Can any body suggest please?

 

 

--Prameela.



--
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: dynamic type defnition in xform bind

Ryan Puddephatt-3

Use the @nodeset on the xforms:bind to create the condition and the @type to apply the XSD type

 

Ryan

 

-----------------------------------------------

Ryan Puddephatt

Connectivity Developer

Fidessa LatentZero

1 Old Jewry

London EC2R 8DN

Office: +44 (0) 20 7105 1000

Direct: +44 (0) 20 7105 1812

Blackberry: +44 (0) 79 8539 2458

Fax: +44 (0) 20 7105 1818

Email: [hidden email]

Web: http://www.latentzero.com

 

From: Prameela R [mailto:[hidden email]]
Sent: 22 December 2008 10:19
To: [hidden email]
Subject: [ops-users] dynamic type defnition in xform bind

 

Hello,

 

Can I have conditional type in xforms bind?

 

I.e. if I selected country I should validate with one type of pattern for US pattern should change.

 

 

I can have US ZIP and IndiaZIP in XSD.

How should I define a type to a field depending on the country dynamically?

 

Can any body suggest please?

 

 

--Prameela.


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.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: dynamic type defnition in xform bind

Prameela R

Hi Ryan,

 

can you please give me the example.

 

 

 


From: Ryan Puddephatt [mailto:[hidden email]]
Sent: Monday, December 22, 2008 4:04 PM
To: [hidden email]
Subject: [ops-users] RE: dynamic type defnition in xform bind

 

Use the @nodeset on the xforms:bind to create the condition and the @type to apply the XSD type

 

Ryan

 

-----------------------------------------------

Ryan Puddephatt

Connectivity Developer

Fidessa LatentZero

1 Old Jewry

London EC2R 8DN

Office: +44 (0) 20 7105 1000

Direct: +44 (0) 20 7105 1812

Blackberry: +44 (0) 79 8539 2458

Fax: +44 (0) 20 7105 1818

Email: [hidden email]

Web: http://www.latentzero.com

 

From: Prameela R [mailto:[hidden email]]
Sent: 22 December 2008 10:19
To: [hidden email]
Subject: [ops-users] dynamic type defnition in xform bind

 

Hello,

 

Can I have conditional type in xforms bind?

 

I.e. if I selected country I should validate with one type of pattern for US pattern should change.

 

 

I can have US ZIP and IndiaZIP in XSD.

How should I define a type to a field depending on the country dynamically?

 

Can any body suggest please?

 

 

--Prameela.


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.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: RE: dynamic type defnition in xform bind

Alessandro Vernet
Administrator
Prameelar,

Assuming you have an element "zipcode" which contains either a US or India zip code and another element "ziptype" which is a sibling of zipcode and contains either "us" or "india", you could have:

<xforms:bind nodeset="/path/to/zipcode[../ziptype = 'us']" type="your:uscodetype"/>

Plus a similar rule for Indian an zip code.

Alex

On Dec 23, 2008, at 5:11 AM, "Prameela R" <[hidden email]> wrote:

Hi Ryan,

 

can you please give me the example.

 

 

 


From: Ryan Puddephatt [[hidden email]]
Sent: Monday, December 22, 2008 4:04 PM
To: [hidden email]
Subject: [ops-users] RE: dynamic type defnition in xform bind

 

Use the @nodeset on the xforms:bind to create the condition and the @type to apply the XSD type

 

Ryan

 

-----------------------------------------------

Ryan Puddephatt

Connectivity Developer

Fidessa LatentZero

1 Old Jewry

London EC2R 8DN

Office: +44 (0) 20 7105 1000

Direct: +44 (0) 20 7105 1812

Blackberry: +44 (0) 79 8539 2458

Fax: +44 (0) 20 7105 1818

Email: [hidden email]

Web: http://www.latentzero.com

 

From: Prameela R [[hidden email]]
Sent: 22 December 2008 10:19
To: [hidden email]
Subject: [ops-users] dynamic type defnition in xform bind

 

Hello,

 

Can I have conditional type in xforms bind?

 

I.e. if I selected country I should validate with one type of pattern for US pattern should change.

 

 

I can have US ZIP and IndiaZIP in XSD.

How should I define a type to a field depending on the country dynamically?

 

Can any body suggest please?

 

 

--Prameela.


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com


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


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