checkbox control to copy addresses

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

checkbox control to copy addresses

manish_suriya

Hi All,


Consider the scenario:

i need to display client address and Spouse address. Spouse address will be displayed only if  " Is spouse applied" chek box is CHECKED. then it will show fields to enter spouse adrress.  This scnerio is working...


Then i have to provide the other checkbox  "Same As Cleint" on check of which what ever the client address is, will be copied in Spouse address fields. elese if not checked. user need to mannual enter spouse address.
i have problem here..

this is my some code:


=======================================================================
        <xforms:instance id="clientAddress">
              <addresses xmlns="">
               <address >
                 <Street >cleint street</Street>
                    <ZipCode/>
                        <City/>
                        <State/>        
                  </address>          
       
                </addresses>
        </xforms:instance>
       
        <xforms:instance id="spouseAddress">
                        <addresses xmlns="">
                                  <address >
                                    <Street ></Street>
                                <ZipCode/>
                                <City/>
                                <State/>        
                          </address>          
       
                        </addresses>
        </xforms:instance>
       
        <xforms:instance id="checboxtest">
        <Data xmlns="">
                <check1></check1>        
                <check2>false</check2>        
        </Data>
        </xforms:instance>

=========================================================================

<xforms:bind nodeset="instance('checboxtest')/check1" type="xs:boolean"/>
<xforms:bind nodeset="instance('checboxtest')/check2" type="xs:boolean"/>
<xforms:bind nodeset="instance('spouseAddress')/address" relevant="instance('checboxtest')/check1='true'" />

=========================================================================


Client Address:


<xforms:input ref="instance('clientAddress')/address/Street" >
                <xforms:label>Street:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="instance('clientAddress')/address/ZipCode" >
                <xforms:label>Zipcode:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="instance('clientAddress')/address/City" >
                <xforms:label>City:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="instance('clientAddress')/address/State" >
                <xforms:label>State:</xforms:label>
</xforms:input>
<br/>
<br/>


<br/>
<br/>
<xforms:input ref="instance('checboxtest')/check1">
         <xforms:label>Is Spouse Applied: </xforms:label>
</xforms:input>
<br/>
Spouse Address:
<br/>
<br/>

<br/>

<xforms:group  ref="instance('spouseAddress')/address" >

<xforms:input ref="instance('checboxtest')/check2">
         <xforms:label>Same As Client: </xforms:label>
</xforms:input>
<br/>

<br/>
<xforms:input ref="Street" >          
                <xforms:label>Street:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="ZipCode" >
                <xforms:label>Zipcode:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="City" >
                <xforms:label>City:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="State" >
                <xforms:label>State:</xforms:label>
</xforms:input>

</xforms:group>
<br/>
<br/>

==================================

please suggest me how shuld i do it. As i tried with switch case also but in vain.


Thanks
Manish Suriya
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




--
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: checkbox control to copy addresses

Ryan Puddephatt-3

Manish,

                You could do an xforms:delete of your <address/> node on xforms-value-changed event in your check2 control. Then based on the value (checked/unchecked) you could insert the node from the clientAddress instance or a new templateAddress instance, which contains the same data structure, but blank.

 

The only problem with this is when the client amends the fields or spouse or client address you need to update them.

 

Another way, which would get around this problem, is to copy them when you go to save it, i.e. on an xforms:submission, you do a check and copy the nodes and in the mean time disable the spouse fields while check2 is checked.

 

HTH

 

Ryan

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

Ryan Puddephatt

FIX Developer

Fidessa LatentZero

1 Alfred Place

London WC1E 7EB

Office: +44 (0) 20 7462 4200

Direct: +44 (0) 20 7323 6112

Blackberry: +44 (0) 79 8539 2458

Fax: +44 (0) 20 7462 4242

Email: [hidden email]

Web: http://www.latentzero.com

 

From: Manish Suriya [mailto:[hidden email]]
Sent: 08 October 2008 15:11
To: [hidden email]
Subject: [ops-users] checkbox control to copy addresses

 


Hi All,


Consider the scenario:

i need to display client address and Spouse address. Spouse address will be displayed only if  " Is spouse applied" chek box is CHECKED. then it will show fields to enter spouse adrress.  This scnerio is working...


Then i have to provide the other checkbox  "Same As Cleint" on check of which what ever the client address is, will be copied in Spouse address fields. elese if not checked. user need to mannual enter spouse address.
i have problem here..

this is my some code:


=======================================================================
        <xforms:instance id="clientAddress">
              <addresses xmlns="">
               <address >
                 <Street >cleint street</Street>
                    <ZipCode/>
                        <City/>
                        <State/>        
                  </address>          
       
                </addresses>
        </xforms:instance>
       
        <xforms:instance id="spouseAddress">
                        <addresses xmlns="">
                                  <address >
                                    <Street ></Street>
                                <ZipCode/>
                                <City/>
                                <State/>        
                          </address>          
       
                        </addresses>
        </xforms:instance>
       
        <xforms:instance id="checboxtest">
        <Data xmlns="">
                <check1></check1>        
                <check2>false</check2>        
        </Data>
        </xforms:instance>

=========================================================================

<xforms:bind nodeset="instance('checboxtest')/check1" type="xs:boolean"/>
<xforms:bind nodeset="instance('checboxtest')/check2" type="xs:boolean"/>
<xforms:bind nodeset="instance('spouseAddress')/address" relevant="instance('checboxtest')/check1='true'" />

=========================================================================


Client Address:


<xforms:input ref="instance('clientAddress')/address/Street" >
                <xforms:label>Street:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="instance('clientAddress')/address/ZipCode" >
                <xforms:label>Zipcode:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="instance('clientAddress')/address/City" >
                <xforms:label>City:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="instance('clientAddress')/address/State" >
                <xforms:label>State:</xforms:label>
</xforms:input>
<br/>
<br/>


<br/>
<br/>
<xforms:input ref="instance('checboxtest')/check1">
         <xforms:label>Is Spouse Applied: </xforms:label>
</xforms:input>
<br/>
Spouse Address:
<br/>
<br/>

<br/>

<xforms:group  ref="instance('spouseAddress')/address" >

<xforms:input ref="instance('checboxtest')/check2">
         <xforms:label>Same As Client: </xforms:label>
</xforms:input>
<br/>

<br/>
<xforms:input ref="Street" >          
                <xforms:label>Street:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="ZipCode" >
                <xforms:label>Zipcode:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="City" >
                <xforms:label>City:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="State" >
                <xforms:label>State:</xforms:label>
</xforms:input>

</xforms:group>
<br/>
<br/>

==================================

please suggest me how shuld i do it. As i tried with switch case also but in vain.


Thanks
Manish Suriya
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you
 
 


______________________________________________________________________
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: checkbox control to copy addresses

manish_suriya

Ryan,

thanks for the quick reply. I will try to implement the same.

Manish Suriya
ASE
Tata Consultancy Services
UNIT NO.801, 901 & 1001, A-WING, HIRANANDANI BUSINESS PARK
HIRANANDANI BUILDERS SPECIAL ECONOMIC ZONE,
Mumbai - 400076,Maharashtra
India
Cell:- 09819863849
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________



"Ryan Puddephatt" <[hidden email]>

10/08/2008 07:58 PM

Please respond to
[hidden email]

To
<[hidden email]>
cc
Subject
[ops-users] RE: checkbox control to copy addresses





Manish,
                You could do an xforms:delete of your <address/> node on xforms-value-changed event in your check2 control. Then based on the value (checked/unchecked) you could insert the node from the clientAddress instance or a new templateAddress instance, which contains the same data structure, but blank.
 
The only problem with this is when the client amends the fields or spouse or client address you need to update them.
 
Another way, which would get around this problem, is to copy them when you go to save it, i.e. on an xforms:submission, you do a check and copy the nodes and in the mean time disable the spouse fields while check2 is checked.
 
HTH
 
Ryan
-----------------------------------------------
Ryan Puddephatt
FIX Developer
Fidessa LatentZero
1 Alfred Place
London WC1E 7EB
Office: +44 (0) 20 7462 4200
Direct: +44 (0) 20 7323 6112
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7462 4242
Email: rpuddephatt@...
Web: http://www.latentzero.com
 
From: Manish Suriya [mailto:manish.suriya@...]
Sent:
08 October 2008 15:11
To:
[hidden email]
Subject:
[ops-users] checkbox control to copy addresses

 

Hi All,



Consider the scenario:


i need to display client address and Spouse address. Spouse address will be displayed only if  " Is spouse applied" chek box is CHECKED. then it will show fields to enter spouse adrress.  This scnerio is working...



Then i have to provide the other checkbox  "Same As Cleint" on check of which what ever the client address is, will be copied in Spouse address fields. elese if not checked. user need to mannual enter spouse address.

i have problem here..


this is my some code:



=======================================================================

       <
xforms:instance id="clientAddress">
             
<addresses xmlns="">
             
<address >
               
<Street >cleint street</Street>
                   
<ZipCode/>
                       
<City/>
                       
<State/>        
                 
</address>          
       
               
</addresses>
       
</xforms:instance>
       
       
<xforms:instance id="spouseAddress">
                       
<addresses xmlns="">
                                 
<address >
                                   
<Street ></Street>
                               
<ZipCode/>
                               
<City/>
                               
<State/>        
                         
</address>          
       
                       
</addresses>
       
</xforms:instance>
       
       
<xforms:instance id="checboxtest">
       
<Data xmlns="">
               
<check1></check1>        
               
<check2>false</check2>        
       
</Data>
       
</xforms:instance>

=========================================================================


<
xforms:bind nodeset="instance('checboxtest')/check1" type="xs:boolean"/>
<
xforms:bind nodeset="instance('checboxtest')/check2" type="xs:boolean"/>
<
xforms:bind nodeset="instance('spouseAddress')/address" relevant="instance('checboxtest')/check1='true'" />

=========================================================================



Client Address:



<
xforms:input ref="instance('clientAddress')/address/Street" >
               
<xforms:label>Street:</xforms:label>
</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="instance('clientAddress')/address/ZipCode" >
               
<xforms:label>Zipcode:</xforms:label>
</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="instance('clientAddress')/address/City" >
               
<xforms:label>City:</xforms:label>
</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="instance('clientAddress')/address/State" >
               
<xforms:label>State:</xforms:label>
</
xforms:input>
<
br/>
<
br/>


<
br/>
<
br/>
<
xforms:input ref="instance('checboxtest')/check1">
       
<xforms:label>Is Spouse Applied: </xforms:label>
</
xforms:input>
<
br/>
Spouse Address:

<
br/>
<
br/>

<
br/>

<
xforms:group  ref="instance('spouseAddress')/address" >

<
xforms:input ref="instance('checboxtest')/check2">
       
<xforms:label>Same As Client: </xforms:label>
</
xforms:input>
<
br/>

<
br/>
<
xforms:input ref="Street" >          
               
<xforms:label>Street:</xforms:label>
</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="ZipCode" >
               
<xforms:label>Zipcode:</xforms:label>
</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="City" >
               
<xforms:label>City:</xforms:label>
</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="State" >
               
<xforms:label>State:</xforms:label>
</
xforms:input>

</
xforms:group>
<
br/>
<
br/>

==================================


please suggest me how shuld i do it. As i tried with switch case also but in vain.



Thanks
Manish Suriya
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                      Business Solutions
                      Outsourcing
____________________________________________

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
 
 

______________________________________________________________________
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

ForwardSourceID:NT0000748E    

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




--
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: checkbox control to copy addresses

manish_suriya

Ryan,

i understand the logic what you trying to say.

But i donot know where and how to implement it.

Can you please provide the code sample  for  your suggested first. option.

Thanks in advance

Manish Suriya
ASE
Tata Consultancy Services
UNIT NO.801, 901 & 1001, A-WING, HIRANANDANI BUSINESS PARK
HIRANANDANI BUILDERS SPECIAL ECONOMIC ZONE,
Mumbai - 400076,Maharashtra
India
Cell:- 09819863849
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________



Manish Suriya <[hidden email]>

10/08/2008 08:03 PM

Please respond to
[hidden email]

To
[hidden email]
cc
Subject
[ops-users] Re: RE: checkbox control to copy addresses






Ryan,


thanks for the quick reply. I will try to implement the same.


Manish Suriya
ASE
Tata Consultancy Services
UNIT NO.801, 901 & 1001, A-WING, HIRANANDANI BUSINESS PARK
HIRANANDANI BUILDERS SPECIAL ECONOMIC ZONE,
Mumbai - 400076,Maharashtra
India
Cell:- 09819863849
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                      Business Solutions
                      Outsourcing
____________________________________________


"Ryan Puddephatt" <[hidden email]>

10/08/2008 07:58 PM

Please respond to
[hidden email]

To
<[hidden email]>
cc
Subject
[ops-users] RE: checkbox control to copy addresses







Manish,

               You could do an xforms:delete of your <address/> node on xforms-value-changed event in your check2 control. Then based on the value (checked/unchecked) you could insert the node from the clientAddress instance or a new templateAddress instance, which contains the same data structure, but blank.

 
The only problem with this is when the client amends the fields or spouse or client address you need to update them.

 
Another way, which would get around this problem, is to copy them when you go to save it, i.e. on an xforms:submission, you do a check and copy the nodes and in the mean time disable the spouse fields while check2 is checked.

 
HTH

 
Ryan

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

Ryan Puddephatt

FIX Developer

Fidessa LatentZero

1 Alfred Place

London WC1E 7EB

Office: +44 (0) 20 7462 4200

Direct: +44 (0) 20 7323 6112

Blackberry: +44 (0) 79 8539 2458

Fax: +44 (0) 20 7462 4242

Email:
rpuddephatt@...
Web:
http://www.latentzero.com
 
From:
Manish Suriya [
mailto:manish.suriya@...]
Sent:
08 October 2008 15:11
To:
[hidden email]
Subject:
[ops-users] checkbox control to copy addresses

 

Hi All,



Consider the scenario:


i need to display client address and Spouse address. Spouse address will be displayed only if  " Is spouse applied" chek box is CHECKED. then it will show fields to enter spouse adrress.  This scnerio is working...



Then i have to provide the other checkbox  "Same As Cleint" on check of which what ever the client address is, will be copied in Spouse address fields. elese if not checked. user need to mannual enter spouse address.

i have problem here..


this is my some code:



=======================================================================

      <
xforms:instance id="clientAddress">
           
<addresses xmlns="">
             
<address >
               
<Street >cleint street</Street>
                 
<ZipCode/>
                     
<City/>
                     
<State/>        
               
</address>          
     
             
</addresses>
     
</xforms:instance>
     
     
<xforms:instance id="spouseAddress">
                     
<addresses xmlns="">
                               
<address >
                                 
<Street ></Street>
                             
<ZipCode/>
                             
<City/>
                             
<State/>        
                       
</address>          
     
                     
</addresses>
     
</xforms:instance>
     
     
<xforms:instance id="checboxtest">
     
<Data xmlns="">
             
<check1></check1>        
             
<check2>false</check2>        
     
</Data>
     
</xforms:instance>

=========================================================================


<
xforms:bind nodeset="instance('checboxtest')/check1" type="xs:boolean"/>
<
xforms:bind nodeset="instance('checboxtest')/check2" type="xs:boolean"/>
<
xforms:bind nodeset="instance('spouseAddress')/address" relevant="instance('checboxtest')/check1='true'" />

=========================================================================



Client Address:



<
xforms:input ref="instance('clientAddress')/address/Street" >
             
<xforms:label>Street:</xforms:label>
</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="instance('clientAddress')/address/ZipCode" >
             
<xforms:label>Zipcode:</xforms:label>
</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="instance('clientAddress')/address/City" >
             
<xforms:label>City:</xforms:label>
</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="instance('clientAddress')/address/State" >
             
<xforms:label>State:</xforms:label>
</
xforms:input>
<
br/>
<
br/>


<
br/>
<
br/>
<
xforms:input ref="instance('checboxtest')/check1">
       
<xforms:label>Is Spouse Applied: </xforms:label>
</
xforms:input>
<
br/>
Spouse Address:

<
br/>
<
br/>

<
br/>

<
xforms:group  ref="instance('spouseAddress')/address" >

<
xforms:input ref="instance('checboxtest')/check2">
       
<xforms:label>Same As Client: </xforms:label>
</
xforms:input>
<
br/>

<
br/>
<
xforms:input ref="Street" >          
             
<xforms:label>Street:</xforms:label>
</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="ZipCode" >
             
<xforms:label>Zipcode:</xforms:label>
</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="City" >
             
<xforms:label>City:</xforms:label>
</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="State" >
             
<xforms:label>State:</xforms:label>
</
xforms:input>

</
xforms:group>
<
br/>
<
br/>

==================================


please suggest me how shuld i do it. As i tried with switch case also but in vain.



Thanks
Manish Suriya
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                     Business Solutions
                     Outsourcing
____________________________________________

=====-----=====-----=====

Notice: The information contained in this e-mail

message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you

 
 

______________________________________________________________________
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

ForwardSourceID:NT0000748E    

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you



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

ForwardSourceID:NT00007496    

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




--
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: RE: checkbox control to copy addresses

Ryan Puddephatt-3

This is untested

 

<xforms:select1 ref=”check2”>

  <xforms:action ev:event=”xforms-value-changed”>

    <xforms:delete nodeset=”instance(‘spouseAddress’)/address”/>

   <xforms:insert nodeset=”instance(‘clientAddress’)/address” if=”instance(‘checboxtest’)/check2=true()” at=”instance(‘sposeAddress’)” position=”after”/>

   <xforms:insert nodeset=”instance(‘templateAddress’)/address” if=”instance(‘checboxtest’)/check2=false()” at=”instance(‘sposeAddress’)” position=”after”/>

</xforms:action>

</xforms:select1>

 

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

Ryan Puddephatt

FIX Developer

Fidessa LatentZero

1 Alfred Place

London WC1E 7EB

Office: +44 (0) 20 7462 4200

Direct: +44 (0) 20 7323 6112

Blackberry: +44 (0) 79 8539 2458

Fax: +44 (0) 20 7462 4242

Email: [hidden email]

Web: http://www.latentzero.com

 

From: Manish Suriya [mailto:[hidden email]]
Sent: 08 October 2008 16:13
To: [hidden email]
Subject: [ops-users] Re: Re: RE: checkbox control to copy addresses

 


Ryan,

i understand the logic what you trying to say.

But i donot know where and how to implement it.

Can you please provide the code sample  for  your suggested first. option.

Thanks in advance

Manish Suriya
ASE
Tata Consultancy Services
UNIT NO.801, 901 & 1001, A-WING, HIRANANDANI BUSINESS PARK
HIRANANDANI BUILDERS SPECIAL ECONOMIC ZONE,
Mumbai - 400076,Maharashtra
India
Cell:- 09819863849
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________


Manish Suriya <[hidden email]>

10/08/2008 08:03 PM

Please respond to
[hidden email]

To

[hidden email]

cc

Subject

[ops-users] Re: RE: checkbox control to copy addresses

 





Ryan,


thanks for the quick reply. I will try to implement the same.


Manish Suriya
ASE
Tata Consultancy Services
UNIT NO.801, 901 & 1001, A-WING, HIRANANDANI BUSINESS PARK
HIRANANDANI BUILDERS SPECIAL ECONOMIC ZONE,
Mumbai - 400076,Maharashtra
India
Cell:- 09819863849
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                      Business Solutions
                      Outsourcing
____________________________________________

"Ryan Puddephatt" <[hidden email]>

10/08/2008 07:58 PM

Please respond to
[hidden email]

To

<[hidden email]>

cc

Subject

[ops-users] RE: checkbox control to copy addresses

 





Manish,

               You could do an xforms:delete of your <address/> node on xforms-value-changed event in your check2 control. Then based on the value (checked/unchecked) you could insert the node from the clientAddress instance or a new templateAddress instance, which contains the same data structure, but blank.

 
The only problem with this is when the client amends the fields or spouse or client address you need to update them.

 
Another way, which would get around this problem, is to copy them when you go to save it, i.e. on an xforms:submission, you do a check and copy the nodes and in the mean time disable the spouse fields while check2 is checked.

 
HTH

 
Ryan

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

Ryan Puddephatt

FIX Developer

Fidessa LatentZero

1 Alfred Place

London WC1E 7EB

Office: +44 (0) 20 7462 4200

Direct: +44 (0) 20 7323 6112

Blackberry: +44 (0) 79 8539 2458

Fax: +44 (0) 20 7462 4242

Email:
[hidden email]
Web:
http://www.latentzero.com
 
From:
Manish Suriya [[hidden email]]
Sent:
08 October 2008 15:11
To:
[hidden email]
Subject:
[ops-users] checkbox control to copy addresses

 

Hi All,



Consider the scenario:


i need to display client address and Spouse address. Spouse address will be displayed only if  " Is spouse applied" chek box is CHECKED. then it will show fields to enter spouse adrress.  This scnerio is working...



Then i have to provide the other checkbox  "Same As Cleint" on check of which what ever the client address is, will be copied in Spouse address fields. elese if not checked. user need to mannual enter spouse address.

i have problem here..


this is my some code:



=======================================================================

      <
xforms:instance id="clientAddress">
            <addresses xmlns="">

             <address >

               <Street >cleint street</Street>

                  <ZipCode/>

                      <City/>

                      <State/>        

                </address>          

     
              </addresses>

      </xforms:instance>

     
      <xforms:instance id="spouseAddress">

                      <addresses xmlns="">

                                <address >

                                  <Street ></Street>

                              <ZipCode/>

                              <City/>

                              <State/>        

                        </address>          

     
                      </addresses>

      </xforms:instance>

     
      <xforms:instance id="checboxtest">

      <Data xmlns="">

              <check1></check1>        

              <check2>false</check2>        

      </Data>

      </xforms:instance>


=========================================================================


<
xforms:bind nodeset="instance('checboxtest')/check1" type="xs:boolean"/>
<
xforms:bind nodeset="instance('checboxtest')/check2" type="xs:boolean"/>
<
xforms:bind nodeset="instance('spouseAddress')/address" relevant="instance('checboxtest')/check1='true'" />

=========================================================================



Client Address:



<
xforms:input ref="instance('clientAddress')/address/Street" >
              <xforms:label>Street:</xforms:label>

</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="instance('clientAddress')/address/ZipCode" >
              <xforms:label>Zipcode:</xforms:label>

</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="instance('clientAddress')/address/City" >
              <xforms:label>City:</xforms:label>

</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="instance('clientAddress')/address/State" >
              <xforms:label>State:</xforms:label>

</
xforms:input>
<
br/>
<
br/>


<
br/>
<
br/>
<
xforms:input ref="instance('checboxtest')/check1">
       <xforms:label>Is Spouse Applied: </xforms:label>

</
xforms:input>
<
br/>
Spouse Address:

<
br/>
<
br/>

<
br/>

<
xforms:group  ref="instance('spouseAddress')/address" >

<
xforms:input ref="instance('checboxtest')/check2">
       <xforms:label>Same As Client: </xforms:label>

</
xforms:input>
<
br/>

<
br/>
<
xforms:input ref="Street" >          
              <xforms:label>Street:</xforms:label>

</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="ZipCode" >
              <xforms:label>Zipcode:</xforms:label>

</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="City" >
              <xforms:label>City:</xforms:label>

</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="State" >
              <xforms:label>State:</xforms:label>

</
xforms:input>

</
xforms:group>
<
br/>
<
br/>

==================================


please suggest me how shuld i do it. As i tried with switch case also but in vain.



Thanks
Manish Suriya
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                     Business Solutions
                     Outsourcing
____________________________________________

=====-----=====-----=====

Notice: The information contained in this e-mail

message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you

 
 

______________________________________________________________________
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

ForwardSourceID:NT0000748E    

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you



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

ForwardSourceID:NT00007496    

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you
 
 


______________________________________________________________________
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: Re: RE: checkbox control to copy addresses

manish_suriya

Hi  Ryan,

Sorry to disturb you again. :)

But i am getting problems.. .

1 st case:

 when i put "AS client as" checkbox inside <xforms:group  ref="instance('spouseAddress')/address" > as the code below... its runs fine one way. ie. when i checked as client as checkbox spouse instance got deltetd and client address got copied. but when i uncheked it.. its not works..moreover.. Is spouse applied checkbox also stops working...

......
.....
<xforms:input ref="instance('checboxtest')/check1">
         <xforms:label>Is Spouse Applied: </xforms:label>
</xforms:input>
<br/>


<br/>
Spouse Address:
<br/>

<xforms:group  ref="instance('spouseAddress')/address" >
<br/>
<xforms:input ref="instance('checboxtest')/check2">
<xforms:label>Same As Client: </xforms:label>
  <xforms:action ev:event="xforms-value-changed" >
    <xforms:delete nodeset="instance('spouseAddress')/address"/>
   <xforms:insert nodeset="instance('clientAddress')/address" if="instance('checboxtest')/check2=false()" at="instance('spouseAddress')/address" position="after"/>
   <xforms:insert nodeset="instance('templateAddress')/address" if="instance('checboxtest')/check2=true()" at="instance('spouseAddress')/address" position="after"/>
</xforms:action>
</xforms:input>

<br/>
<xforms:input ref="Street" >          
                <xforms:label>Street:</xforms:label>
</xforms:input>

......
......

2nd case:
 when i put "AS client as" checkbox out side  <xforms:group  ref="instance('spouseAddress')/address" >  as code below...i m getting error: for string  " ".

.......
.........
<xforms:input ref="instance('checboxtest')/check1">
         <xforms:label>Is Spouse Applied: </xforms:label>
</xforms:input>
<br/>
<xforms:input ref="instance('checboxtest')/check2">
<xforms:label>Same As Client: </xforms:label>
  <xforms:action ev:event="xforms-value-changed" >
    <xforms:delete nodeset="instance('spouseAddress')/address"/>
   <xforms:insert nodeset="instance('clientAddress')/address" if="instance('checboxtest')/check2=false()" at="instance('spouseAddress')/address" position="after"/>
   <xforms:insert nodeset="instance('templateAddress')/address" if="instance('checboxtest')/check2=true()" at="instance('spouseAddress')/address" position="after"/>
</xforms:action>

</xforms:input>

<br/>
Spouse Address:
<br/>
<br/>

<br/>
<xforms:group  ref="instance('spouseAddress')/address" >

<br/>
<xforms:input ref="Street" >          
                <xforms:label>Street:</xforms:label>
</xforms:input>

......
......

Please help me out.


 (My overall code):


==================================
<xforms:instance id="clientAddress">
              <addresses xmlns="">
               <address >
                 <Street >cleint street</Street>
                    <ZipCode/>
                        <City/>
                        <State/>        
                  </address>          
       
                </addresses>
        </xforms:instance>
       
        <xforms:instance id="spouseAddress">
                        <addresses xmlns="">
                                  <address >
                                    <Street ></Street>
                                <ZipCode/>
                                <City/>
                                <State/>        
                          </address>          
       
                        </addresses>
        </xforms:instance>
       
        <xforms:instance id="templateAddress">
                        <addresses xmlns="">
                                  <address >
                                    <Street ></Street>
                                <ZipCode/>
                                <City/>
                                <State/>        
                          </address>          
       
                        </addresses>
        </xforms:instance>
       
        <xforms:instance id="checboxtest">
        <Data xmlns="">
                <check1></check1>        
                <check2>false</check2>        
        </Data>
        </xforms:instance>        

=========================================================

<xforms:bind nodeset="instance('checboxtest')/check1" type="xs:boolean"/>
<xforms:bind nodeset="instance('checboxtest')/check2" type="xs:boolean"/>
<xforms:bind nodeset="instance('spouseAddress')/address" relevant="instance('checboxtest')/check1='true'" />
<xforms:bind nodeset="instance('templateAddress')/address" relevant="instance('checboxtest')/check2='true'" />

====================================================
Client Address:


<xforms:input ref="instance('clientAddress')/address/Street" >
                <xforms:label>Street:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="instance('clientAddress')/address/ZipCode" >
                <xforms:label>Zipcode:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="instance('clientAddress')/address/City" >
                <xforms:label>City:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="instance('clientAddress')/address/State" >
                <xforms:label>State:</xforms:label>
</xforms:input>
<br/>
<br/>


<br/>
<br/>
<xforms:input ref="instance('checboxtest')/check1">
         <xforms:label>Is Spouse Applied: </xforms:label>
</xforms:input>
<br/>


<br/>
Spouse Address:
<br/>

<xforms:group  ref="instance('spouseAddress')/address" >
<br/>
<xforms:input ref="instance('checboxtest')/check2">
<xforms:label>Same As Client: </xforms:label>
  <xforms:action ev:event="xforms-value-changed" >
    <xforms:delete nodeset="instance('spouseAddress')/address"/>
   <xforms:insert nodeset="instance('clientAddress')/address" if="instance('checboxtest')/check2=false()" at="instance('spouseAddress')/address" position="after"/>
   <xforms:insert nodeset="instance('templateAddress')/address" if="instance('checboxtest')/check2=true()" at="instance('spouseAddress')/address" position="after"/>
</xforms:action>

</xforms:input>

<br/>
<xforms:input ref="Street" >          
                <xforms:label>Street:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="ZipCode" >
                <xforms:label>Zipcode:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="City" >
                <xforms:label>City:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="State" >
                <xforms:label>State:</xforms:label>
</xforms:input>

</xforms:group>
<br/>
<br/>


<xforms:group ref="instance('templateAddress')/address">


<br/>
<xforms:input ref="instance('clientAddress')/address/Street" >
                <xforms:label>Street:</xforms:label>
</xforms:input>

<br/>
<br/>
<xforms:input ref="instance('clientAddress')/address/ZipCode" >
                <xforms:label>Zipcode:</xforms:label>
</xforms:input>
<br/>
<br/>

<xforms:input ref="instance('clientAddress')/address/City" >
                <xforms:label>City:</xforms:label>
</xforms:input>
</xforms:group>
<br/>

===========================================


Thanks
Manish Suriya
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________



"Ryan Puddephatt" <[hidden email]>

10/08/2008 08:49 PM

Please respond to
[hidden email]

To
<[hidden email]>
cc
Subject
[ops-users] RE: Re: Re: RE: checkbox control to copy addresses





This is untested
 
<xforms:select1 ref=”check2”>
  <xforms:action ev:event=”xforms-value-changed”>
    <xforms:delete nodeset=”instance(‘spouseAddress’)/address”/>
   <xforms:insert nodeset=”instance(‘clientAddress’)/address” if=”instance(‘checboxtest’)/check2=true()” at=”instance(‘sposeAddress’)” position=”after”/>
   <xforms:insert nodeset=”instance(‘templateAddress’)/address” if=”instance(‘checboxtest’)/check2=false()” at=”instance(‘sposeAddress’)” position=”after”/>
</xforms:action>
</xforms:select1>
 
-----------------------------------------------
Ryan Puddephatt
FIX Developer
Fidessa LatentZero
1 Alfred Place
London WC1E 7EB
Office: +44 (0) 20 7462 4200
Direct: +44 (0) 20 7323 6112
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7462 4242
Email: rpuddephatt@...
Web: http://www.latentzero.com
 
From: Manish Suriya [mailto:manish.suriya@...]
Sent:
08 October 2008 16:13
To:
[hidden email]
Subject:
[ops-users] Re: Re: RE: checkbox control to copy addresses

 

Ryan,


i understand the logic what you trying to say.


But i donot know where and how to implement it.


Can you please provide the code sample  for  your suggested first. option.


Thanks in advance


Manish Suriya
ASE
Tata Consultancy Services
UNIT NO.801, 901 & 1001, A-WING, HIRANANDANI BUSINESS PARK
HIRANANDANI BUILDERS SPECIAL ECONOMIC ZONE,
Mumbai - 400076,Maharashtra
India
Cell:- 09819863849
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                      Business Solutions
                      Outsourcing
____________________________________________

Manish Suriya <[hidden email]>

10/08/2008 08:03 PM


Please respond to
[hidden email]


To
[hidden email]
cc
Subject
[ops-users] Re: RE: checkbox control to copy addresses

 








Ryan,


thanks for the quick reply. I will try to implement the same.


Manish Suriya
ASE
Tata Consultancy Services
UNIT NO.801, 901 & 1001, A-WING, HIRANANDANI BUSINESS PARK
HIRANANDANI BUILDERS SPECIAL ECONOMIC ZONE,
Mumbai - 400076,Maharashtra
India
Cell:- 09819863849
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                     Business Solutions
                     Outsourcing
____________________________________________

"Ryan Puddephatt" <[hidden email]>

10/08/2008 07:58 PM


Please respond to
[hidden email]


To
<[hidden email]>
cc
Subject
[ops-users] RE: checkbox control to copy addresses

 








Manish,

              You could do an xforms:delete of your <address/> node on xforms-value-changed event in your check2 control. Then based on the value (checked/unchecked) you could insert the node from the clientAddress instance or a new templateAddress instance, which contains the same data structure, but blank.


The only problem with this is when the client amends the fields or spouse or client address you need to update them.


Another way, which would get around this problem, is to copy them when you go to save it, i.e. on an xforms:submission, you do a check and copy the nodes and in the mean time disable the spouse fields while check2 is checked.


HTH


Ryan

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

Ryan Puddephatt

FIX Developer

Fidessa LatentZero

1 Alfred Place

London WC1E 7EB

Office: +44 (0) 20 7462 4200

Direct: +44 (0) 20 7323 6112

Blackberry: +44 (0) 79 8539 2458

Fax: +44 (0) 20 7462 4242

Email:
rpuddephatt@...
Web:
http://www.latentzero.com

From:
Manish Suriya [
mailto:manish.suriya@...]
Sent:
08 October 2008 15:11
To:
[hidden email]
Subject:
[ops-users] checkbox control to copy addresses



Hi All,



Consider the scenario:


i need to display client address and Spouse address. Spouse address will be displayed only if  " Is spouse applied" chek box is CHECKED. then it will show fields to enter spouse adrress.  This scnerio is working...



Then i have to provide the other checkbox  "Same As Cleint" on check of which what ever the client address is, will be copied in Spouse address fields. elese if not checked. user need to mannual enter spouse address.

i have problem here..


this is my some code:



=======================================================================

     <
xforms:instance id="clientAddress">
           
<addresses xmlns="">
           
<address >
             
<Street >cleint street</Street>
                 
<ZipCode/>
                     
<City/>
                     
<State/>        
               
</address>          
     
             
</addresses>
     
</xforms:instance>
     
     
<xforms:instance id="spouseAddress">
                     
<addresses xmlns="">
                               
<address >
                                 
<Street ></Street>
                             
<ZipCode/>
                             
<City/>
                             
<State/>        
                       
</address>          
     
                     
</addresses>
     
</xforms:instance>
     
     
<xforms:instance id="checboxtest">
     
<Data xmlns="">
             
<check1></check1>        
             
<check2>false</check2>        
     
</Data>
     
</xforms:instance>

=========================================================================


<
xforms:bind nodeset="instance('checboxtest')/check1" type="xs:boolean"/>
<
xforms:bind nodeset="instance('checboxtest')/check2" type="xs:boolean"/>
<
xforms:bind nodeset="instance('spouseAddress')/address" relevant="instance('checboxtest')/check1='true'" />

=========================================================================



Client Address:



<
xforms:input ref="instance('clientAddress')/address/Street" >
             
<xforms:label>Street:</xforms:label>
</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="instance('clientAddress')/address/ZipCode" >
             
<xforms:label>Zipcode:</xforms:label>
</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="instance('clientAddress')/address/City" >
             
<xforms:label>City:</xforms:label>
</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="instance('clientAddress')/address/State" >
             
<xforms:label>State:</xforms:label>
</
xforms:input>
<
br/>
<
br/>


<
br/>
<
br/>
<
xforms:input ref="instance('checboxtest')/check1">
     
<xforms:label>Is Spouse Applied: </xforms:label>
</
xforms:input>
<
br/>
Spouse Address:

<
br/>
<
br/>

<
br/>

<
xforms:group  ref="instance('spouseAddress')/address" >

<
xforms:input ref="instance('checboxtest')/check2">
     
<xforms:label>Same As Client: </xforms:label>
</
xforms:input>
<
br/>

<
br/>
<
xforms:input ref="Street" >          
             
<xforms:label>Street:</xforms:label>
</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="ZipCode" >
             
<xforms:label>Zipcode:</xforms:label>
</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="City" >
             
<xforms:label>City:</xforms:label>
</
xforms:input>
<
br/>
<
br/>

<
xforms:input ref="State" >
             
<xforms:label>State:</xforms:label>
</
xforms:input>

</
xforms:group>
<
br/>
<
br/>

==================================


please suggest me how shuld i do it. As i tried with switch case also but in vain.



Thanks
Manish Suriya
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                    Business Solutions
                    Outsourcing
____________________________________________

=====-----=====-----=====

Notice: The information contained in this e-mail

message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you




______________________________________________________________________
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

ForwardSourceID:NT0000748E    

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you



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

ForwardSourceID:NT00007496    

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
 
 

______________________________________________________________________
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

ForwardSourceID:NT000074A6    

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




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