Associating checkboxes

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

Associating checkboxes

Sathish K Mittapelli

Hi All,

I have problem with associating check boxes....i am trying to select multiple rows at a time and trying to delete them from modal in client side.My code is like this

<xforms:repeat nodeset="instance('main')/employee[ceiling(position() div number(instance('pagination')/rows-size)) ge number(instance('pagination')/page-num) and ceiling(position() div number(instance('pagination')/rows-size)) lt (number(instance('pagination')/page-num)+1)]" id="emp-repeat">
        <tr>
       
            <td>
            <xforms:select ref="select" appearance="full">
                <xforms:item>
                      <xforms:label></xforms:label>
                      <xforms:value>Hai </xforms:value>
                </xforms:item>
            </xforms:select>
            </td>
            <td>
                <xforms:output id="cod" ref="code"/>
            </td>
           
            <td>
                <xforms:output ref="firstName"/>
            </td>
           
            <td>
                <xforms:output ref="lastName"/>
            </td>
           
            <td>
                <xforms:output ref="dob"/>
            </td>
           
            <td>
                <xforms:output ref="gender"/>
            </td>
           
            <td>
                <xforms:output ref="address"/>
            </td>
            <td>
                <xforms:output ref="phone"/>
            </td>
       
        </tr>.
.
.
.
.
.
.
..............
<xforms:trigger>
                    <xforms:label>Remove Employee</xforms:label>
                    <xforms:delete ev:event="DOMActivate" context="instance('main')" nodeset="employee" at="index('emp-repeat')"/>

I am using index value to repeat that particular field.How should modify my code to associate that checkboxes and delete multiple rows at a time.Please help me

Thanks in advance
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: Associating checkboxes

Alessandro Vernet
Administrator
Sathish,

On Sun, May 11, 2008 at 11:51 PM, sathish kumar <[hidden email]> wrote:
> I have problem with associating check boxes....i am trying to select
> multiple rows at a time and trying to delete them from modal in client
> side.My code is like this
>[...]

Would you have a full and simple example that we can run in the XForms
sandbox to see what the problem you are talking about is?

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet


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