(no subject)

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

(no subject)

Sathish K Mittapelli
Hi All,

I am trying to bind my checkbox based on the value of the other checkbox.My requirement is as shown below...but i am not able to achieve my requirement.....Please help me



<html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns="http://www.w3.org/1999/xhtml">


<head>
<title>Check box</title>
<xforms:model>
    <xforms:instance id="main">
        <check>
            <checkref/>
            <reference/>
        </check>
    </xforms:instance>
   
    <xforms:instance id="items">
                    <items>
                        <item><label>Rising</label><value>Rising</value></item>
                        <item><label>Morning</label><value>Morning</value></item>
                        <item><label>Noon</label><value>Noon</value></item>
                        <item><label>Evening</label><value>Evening</value></item>
                        <item><label>Before sleeping</label><value>Before_sleeping</value></item>
                     </items>
    </xforms:instance>
   
    <xforms:bind nodeset="instance('main')/checkref" readonly="instance('main')/reference[contains(.,'Rising')]"></xforms:bind>
   
</xforms:model>
   
</head>
<body>
<xforms:select appearance="full" ref="instance('main')/checkref">
   
    <xforms:item>
                                 <xforms:label>Rising</xforms:label>
                                 <xforms:value>Rising</xforms:value>
                                
    </xforms:item>
    <xforms:item>
                                 <xforms:label>Morning</xforms:label>
                                 <xforms:value>Morning</xforms:value>
                                
    </xforms:item>
    <xforms:item>
                                 <xforms:label>Noon</xforms:label>
                                 <xforms:value>Noon</xforms:value>
                                
    </xforms:item>

</xforms:select>

<br/><br/><br/>

<xforms:select appearance="full" ref="instance('main')/reference">
                            
                              <xforms:itemset nodeset="instance('items')/item">
                                 <xforms:label ref="label"></xforms:label>
                                 <xforms:value ref="value"></xforms:value>
                              </xforms:itemset>                   
                             
                             
                           </xforms:select>

</body>
</html>

THANKS & REGARDS
SATHISH K MITTAPELLI  


From Chandigarh to Chennai - find friends all over India. Click here.

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

masjab-2
hey,

when I tried your code, nothing was visible...
First you have to add the namespace...

<xforms:instance id="main">
                <check xmlns="">                                       <-------------------------------------------------------here
                    <checkref/>
                    <reference/>
                </check>
            </xforms:instance>

            

            <xforms:instance id="items">
                <items xmlns="">                                                                                                <-------------------------------------------------------here
                    <item><label>Rising</label><value>Rising</value></item>
                    <item><label>Morning</label><value>Morning</value></item>
                    <item><label>Noon</label><value>Noon</value></item>
                    <item><label>Evening</label><value>Evening</value></item>
                    <item><label>Before sleeping</label><value>Before_sleeping</value></item>
                </items>
            </xforms:instance>




Am 02.06.2008 um 13:21 schrieb sathish kumar:

Hi All,

I am trying to bind my checkbox based on the value of the other checkbox.My requirement is as shown below...but i am not able to achieve my requirement.....Please help me



<html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns="http://www.w3.org/1999/xhtml">


<head>
<title>Check box</title>
<xforms:model>
    <xforms:instance id="main">
        <check>
            <checkref/>
            <reference/>
        </check>
    </xforms:instance>
   
    <xforms:instance id="items">
                    <items>
                        <item><label>Rising</label><value>Rising</value></item>
                        <item><label>Morning</label><value>Morning</value></item>
                        <item><label>Noon</label><value>Noon</value></item>
                        <item><label>Evening</label><value>Evening</value></item>
                        <item><label>Before sleeping</label><value>Before_sleeping</value></item>
                     </items>
    </xforms:instance>
   
    <xforms:bind nodeset="instance('main')/checkref" readonly="instance('main')/reference[contains(.,'Rising')]"></xforms:bind>
   
</xforms:model>
   
</head>
<body>
<xforms:select appearance="full" ref="instance('main')/checkref">
   
    <xforms:item>
                                 <xforms:label>Rising</xforms:label>
                                 <xforms:value>Rising</xforms:value>
                                
    </xforms:item>
    <xforms:item>
                                 <xforms:label>Morning</xforms:label>
                                 <xforms:value>Morning</xforms:value>
                                
    </xforms:item>
    <xforms:item>
                                 <xforms:label>Noon</xforms:label>
                                 <xforms:value>Noon</xforms:value>
                                
    </xforms:item>

</xforms:select>

<br/><br/><br/>

<xforms:select appearance="full" ref="instance('main')/reference">
                            
                              <xforms:itemset nodeset="instance('items')/item">
                                 <xforms:label ref="label"></xforms:label>
                                 <xforms:value ref="value"></xforms:value>
                              </xforms:itemset>                   
                             
                             
                           </xforms:select>

</body>
</html>

THANKS & REGARDS
SATHISH K MITTAPELLI  


From Chandigarh to Chennai - find friends all over India. Click here.
--
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
Reply | Threaded
Open this post in threaded view
|

Re:

masjab-2
In reply to this post by Sathish K Mittapelli
what exactly do you want to do?

Am 02.06.2008 um 13:21 schrieb sathish kumar:

Hi All,

I am trying to bind my checkbox based on the value of the other checkbox.My requirement is as shown below...but i am not able to achieve my requirement.....Please help me



<html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns="http://www.w3.org/1999/xhtml">


<head>
<title>Check box</title>
<xforms:model>
    <xforms:instance id="main">
        <check>
            <checkref/>
            <reference/>
        </check>
    </xforms:instance>
   
    <xforms:instance id="items">
                    <items>
                        <item><label>Rising</label><value>Rising</value></item>
                        <item><label>Morning</label><value>Morning</value></item>
                        <item><label>Noon</label><value>Noon</value></item>
                        <item><label>Evening</label><value>Evening</value></item>
                        <item><label>Before sleeping</label><value>Before_sleeping</value></item>
                     </items>
    </xforms:instance>
   
    <xforms:bind nodeset="instance('main')/checkref" readonly="instance('main')/reference[contains(.,'Rising')]"></xforms:bind>
   
</xforms:model>
   
</head>
<body>
<xforms:select appearance="full" ref="instance('main')/checkref">
   
    <xforms:item>
                                 <xforms:label>Rising</xforms:label>
                                 <xforms:value>Rising</xforms:value>
                                
    </xforms:item>
    <xforms:item>
                                 <xforms:label>Morning</xforms:label>
                                 <xforms:value>Morning</xforms:value>
                                
    </xforms:item>
    <xforms:item>
                                 <xforms:label>Noon</xforms:label>
                                 <xforms:value>Noon</xforms:value>
                                
    </xforms:item>

</xforms:select>

<br/><br/><br/>

<xforms:select appearance="full" ref="instance('main')/reference">
                            
                              <xforms:itemset nodeset="instance('items')/item">
                                 <xforms:label ref="label"></xforms:label>
                                 <xforms:value ref="value"></xforms:value>
                              </xforms:itemset>                   
                             
                             
                           </xforms:select>

</body>
</html>

THANKS & REGARDS
SATHISH K MITTAPELLI  


From Chandigarh to Chennai - find friends all over India. Click here.
--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re:

Sathish K Mittapelli
Hi Masen........

                     I am trying to disable the  checkbox when i am selects the other checkbox in other group.

THANKS & REGARDS
SATHISH K MITTAPELLI  


--- On Mon, 2/6/08, Masen J <[hidden email]> wrote:
From: Masen J <[hidden email]>
Subject: [ops-users] Re:
To: [hidden email]
Date: Monday, 2 June, 2008, 5:10 PM

what exactly do you want to do?

Am 02.06.2008 um 13:21 schrieb sathish kumar:

Hi All,

I am trying to bind my checkbox based on the value of the other checkbox.My requirement is as shown below...but i am not able to achieve my requirement.....Please help me



<html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns="http://www.w3.org/1999/xhtml">


<head>
<title>Check box</title>
<xforms:model>
    <xforms:instance id="main">
        <check>
            <checkref/>
            <reference/>
        </check>
    </xforms:instance>
   
    <xforms:instance id="items">
                    <items>
                        <item><label>Rising</label><value>Rising</value></item>
                        <item><label>Morning</label><value>Morning</value></item>
                        <item><label>Noon</label><value>Noon</value></item>
                        <item><label>Evening</label><value>Evening</value></item>
                        <item><label>Before sleeping</label><value>Before_sleeping</value></item>
                     </items>
    </xforms:instance>
   
    <xforms:bind nodeset="instance('main')/checkref" readonly="instance('main')/reference[contains(.,'Rising')]"></xforms:bind>
   
</xforms:model>
   
</head>
<body>
<xforms:select appearance="full" ref="instance('main')/checkref">
   
    <xforms:item>
                                 <xforms:label>Rising</xforms:label>
                                 <xforms:value>Rising</xforms:value>
                                
    </xforms:item>
    <xforms:item>
                                 <xforms:label>Morning</xforms:label>
                                 <xforms:value>Morning</xforms:value>
                                
    </xforms:item>
    <xforms:item>
                                 <xforms:label>Noon</xforms:label>
                                 <xforms:value>Noon</xforms:value>
                                
    </xforms:item>

</xforms:select>

<br/><br/><br/>

<xforms:select appearance="full" ref="instance('main')/reference">
                            
                              <xforms:itemset nodeset="instance('items')/item">
                                 <xforms:label ref="label"></xforms:label>
                                 <xforms:value ref="value"></xforms:value>
                              </xforms:itemset>                   
                             
                             
                           </xforms:select>

</body>
</html>

THANKS & REGARDS
SATHISH K MITTAPELLI  


From Chandigarh to Chennai - find friends all over India. Click here.
--
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


Unlimited freedom, unlimited storage. Get it now

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