« Return to Thread: Is it possible to use if in xforms:delete???

Re: Re: Re: Re: Re: Re: Is it possible to use if in xforms:delete???

by Sathish K Mittapelli :: Rate this Message:

Reply to Author | View in Thread

Hi Florian i have made changes as you said ..i have modified my code to like this

<xforms:action ev:event="DOMActivate"  xxforms:iterate="instance('main')/employee[select='true']">
                    <xforms:delete  nodeset="."/>

After making like this....when i am clicking the remove trigger my remove trigger is disappearing insted of what i have  expected.

i have tried with thi s also  <xforms:action ev:event="DOMActivate"  xxforms:iterate="instance('main')/employee[select='true']">
                    <xforms:delete  nodeset=".[select='true']"/>
but nothing is happening to my code  when i am  clicking  the remove  trigger.

What are the changes i have to made to achieve my requirement.

THANKS & REGARDS
SATHISH K MITTAPELLI  


--- On Tue, 13/5/08, Florian Schmitt <ml-ops-users@...> wrote:
From: Florian Schmitt <ml-ops-users@...>
Subject: [ops-users] Re: Re: Re: Re: Re: Is it possible to use if in xforms:delete???
To: ops-users@...
Date: Tuesday, 13 May, 2008, 5:27 PM

Hi sathish,

> <xforms:action ev:event="DOMActivate"
> xxforms:iterate="instance('main')/employee">
> <xforms:delete
context="instance('main')"
> nodeset="employee[select='true']"/>

You've to change three things:

- put the predicate [select='true'] from the xforms:delete/@nodeset
into
the xforms:action/@xxforms:iterate.

- replace the "employee" from the xforms:delete/@nodeset by a .

- remove the xforms:delete/@context completely.

I've attached a sandbox example.

HTH
florian
--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws


Meet people who discuss and share your passions. Join them now.

--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

 « Return to Thread: Is it possible to use if in xforms:delete???

LightInTheBox - Buy quality products at wholesale price