W3C home > Mailing lists > Public > www-forms@w3.org > February 2005

RE: How to disable a trigger

From: Catherine Poinsignon <catherine.poinsignon@lombard.lu>
Date: Wed, 02 Feb 2005 16:04:14 +0100
Message-Id: <s200fa47.046@lombard.lu>
To: <roland_merrick@uk.ibm.com>, <www-forms@w3.org>, <mark.birbeck@x-port.net>
I still have some problem to disable some triggers.
What I think is that it works fine when there is only one record. But,
I have several records on my form, followed by 3 triggers (view, edit,
delete). My xform looks like this:
Project1      View      Edit      Delete
Project2      View      Edit      Delete
Project3      View      Edit      Delete
And I want to disable some triggers in some cases.
Here is what I try to do, but it does not work:
            <xforms:instance id="data_wsrp_rewrite_">
                <data xmlns="">
            <xforms:instance id="user_wsrp_rewrite_">
                <user xmlns="">
            <xforms:bind id="ed_wsrp_rewrite_"
.)" type="xsd:string"/>
        <xforms:repeat id="record_wsrp_rewrite_"
               <xforms:output ref="projectname"/>
                <xforms:trigger bind="ed_wsrp_rewrite_">
                    <xforms:label>Edit</xforms:label> ...
When the relevant condition in the bind is true for the first record,
the triggers are enabled for all. When the relevant condition is false
for the first record, the triggers are disable for all.
How can I define my relevant condition so that it should be evaluated
for each record ?
Note: when I try to display the test result for each records, it's ok:
Thank's in advance for your help.

Received on Wednesday, 2 February 2005 15:06:09 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:14 UTC