select all values in xforms:select

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

select all values in xforms:select

srikanth.prodigy

Hello All,

 

Im trying to select all values in dropdown list when user clicks on select all item value

 

I have used xforms:select in a repeat

 

 

<xforms:repeat nodeset="instance('frnd-profile')/friend" id="123">

            <xxforms:variable name="email" select="email"/>

           

            <xforms:select ref="instance('selected')" appearance="full">

                <xforms:item>

                    <xforms:label />

                    <xforms:value value="$email" />

                </xforms:item>

            </xforms:select>

            <xforms:output ref="email"/> <br />

            <xforms:output ref="email" style="font-size:10px; font-family:Verdana, Arial, Helvetica, sans-serif; color:#595D69; font-weight:bold; padding-left:15px;"/> <br />

        </xforms:repeat>

       

        <xforms:select ref="instance('selectall')" appearance="full" >

            <xforms:item>

                <xforms:label>

                    Select All

                </xforms:label>

                <xforms:value> select all</xforms:value>

            </xforms:item>

        </xforms:select>

 

Thanks,

Srikanth A

 



--
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: select all values in xforms:select

Hank Ratzesberger
Shrikanth,

Your select-all control could have an action child that
copies all the email values to the first select.  It could 
calculate that using something like:

string-join(instance('frnd-profile')/friend/email,' ')

The xforms-inspector can help you see what is going on 
when you select the controls.

If that is some help,
--Hank


On May 21, 2009, at 4:25 AM, Srikanth A wrote:

Hello All,

 

Im trying to select all values in dropdown list when user clicks on select all item value

 

I have used xforms:select in a repeat

 

 

<xforms:repeat nodeset="instance('frnd-profile')/friend" id="123">

            <xxforms:variable name="email" select="email"/>

           

            <xforms:select ref="instance('selected')" appearance="full">

                <xforms:item>

                    <xforms:label />

                    <xforms:value value="$email" />

                </xforms:item>

            </xforms:select>

            <xforms:output ref="email"/> <br />

            <xforms:output ref="email" style="font-size:10px; font-family:Verdana, Arial, Helvetica, sans-serif; color:#595D69; font-weight:bold; padding-left:15px;"/> <br />

        </xforms:repeat>

       

        <xforms:select ref="instance('selectall')" appearance="full" >

            <xforms:item>

                <xforms:label>

                    Select All

                </xforms:label>

                <xforms:value> select all</xforms:value>

            </xforms:item>

        </xforms:select>

 

Thanks,

Srikanth A

 


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