
|
Is it possible to use if in xforms:delete???
Hai all i am trying to delete multiple rows at a time from my code by writing <xforms:delete ev:event="DOMActivate" context="instance('main')" nodeset="employee" if="instance('main')/employee/select='true'"/>
true value for select is assigned when i select a particular check box.I have written xforms:delete as shown above.but it always deleting the last element in the instance when a checkbox is selected.
How my requirement is attained in xforms...Please help me. Thanks in advance.
THANKS & REGARDS SATHISH K MITTAPELLI  |
Bollywood, fun, friendship, sports and more. You name it, we have it.
--
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
|

|
Re: Is it possible to use if in xforms:delete???
Hi sathish,
> <xforms:delete ev:event="DOMActivate" context="instance('main')"
> nodeset="employee" if="instance('main')/employee/select='true'"/>
> true value for select is assigned when i select a particular check box.I
> have written xforms:delete as shown above.but it always deleting the
> last element in the instance when a checkbox is selected.
you could try to use the new exforms:iterate attribute to iterate over
the selected elements:
http://www.orbeon.com/ops/doc/reference-xforms-2#exforms-iterateBut for this solution, you will have to use a nightly build, i suppose.
Maybe another solution could work: you could specify the nodeset more
precisely by adding a predicate: nodeset="employee[/select='true'". But
i didn't test that.
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
|

|
Re: Re: Is it possible to use if in xforms:delete???
Hi Florian.........the
nodeset="employee[/select='true'" is not working it is giving me error like xpath syntax error.If iam making that as nodeset="employee[/select='true']" then i am not getting any output. Is there any other way to set nodeset.
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: Is it possible to use if in
xforms:delete??? To: ops-users@... Date: Tuesday, 13 May, 2008, 1:09 PM
Hi sathish,
> <xforms:delete ev:event="DOMActivate" context="instance('main')" > nodeset="employee" if="instance('main')/employee/select='true'"/>
> true value for select is assigned when i select a particular check box.I > have written xforms:delete as shown above.but it always deleting the > last element in the instance when a checkbox is selected.
you could try to use the new exforms:iterate attribute to iterate over the selected elements:
http://www.orbeon.com/ops/doc/reference-xforms-2#exforms-iterate
But for this solution, you will have to use a nightly build, i suppose.
Maybe another solution could work: you could specify the nodeset more precisely by adding a predicate: nodeset="employee[/select='true'". But i didn't test
that.
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 |
Chocoholics' paradise! Enter here.
--
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
|

|
Re: Re: Re: Is it possible to use if in xforms:delete???
hi sathish,
> the nodeset="employee[/select='true'" is not working it is giving me
> error like xpath syntax error. If iam making that as
> nodeset="employee[/select='true']" then i am not
> getting any output.
sorry, again a ugly mistake in my xpath - in fact, the bracket [ has to
be closed as you found out already, and to address the select child, no
slash is required, i think. So you could try to use
nodeset="employee[select='true']"
assuming there's a child node named "select" under the "employee" node.
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
|

|
Re: Re: Re: Re: Is it possible to use if in xforms:delete???
Hi Florian
it is working fine but again i have one more issue with it.I am not able to delete all the selected items at once.How to achieve that one.I have written my code like this.
<xforms:action ev:event="DOMActivate" xxforms:iterate="instance('main')/employee"> <xforms:delete context="instance('main')" nodeset="employee[select='true']"/> ..... .... ..
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: Is it possible to use if in xforms:delete??? To: ops-users@... Date: Tuesday, 13 May, 2008, 2:05 PM
hi sathish,
> the nodeset="employee[/select='true'" is not working it is giving me > error like xpath syntax error. If iam making that as > nodeset="employee[/select='true']" then i am not > getting any output.
sorry, again a ugly mistake in my xpath - in fact, the bracket [ has to be closed as you found out already, and to address the select child, no slash is required, i think. So you could try to use
nodeset="employee[select='true']"
assuming there's a child node named "select" under the "employee" node.
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 |
Save all your chat conversations. Find them online.
--
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
|

|
Re: Re: Re: Re: Re: Is it possible to use if in xforms:delete???
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
|

|
Re: Re: Re: Re: Re: Re: Is it possible to use if in xforms:delete???
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
|

|
Re: Is it possible to use if in xforms:delete???
hi sathish,
> What are the changes i have to made to achieve my requirement.
please, at first check if my sandbox example attached to my last message
works for you. If it does, you will have to compare your own code with
the example to check for differences. I can't do this because i don't
know how your xforms page looks like.
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
|

|
Re: Re: Is it possible to use if in xforms:delete???
Hi Florian when i am trying to run the sandbox example send by you i am getting the error like this
Index: 0, Size: 0
| Resource URL |
Line |
Column |
Description |
XML Element |
| oxf:/config/xforms-widgets.xsl |
33 |
N/A |
running XForms action
action name →
{http://www.w3.org/2002/xforms}delete
running XForms action
action name →
{http://www.w3.org/2002/xforms}action
dispatching XForms event
event → DOMActivate target id →
xforms-element-24 |
<xforms:delete nodeset="." id="xforms-element-27"/><xforms:action ev:event="DOMActivate" xxforms:iterate="instance('maininst')/employee[selected='true']" id="xforms-element-26">...</xforms:action> |
| oxf:/ops/xforms/xforms-server.xpl |
55 |
103 |
reading processor output
name → response id → xml-response
|
<p:output name="response" id="xml-response" schema-href="xforms-server-response.rng"/> |
| oxf:/ops/xforms/xforms-server.xpl |
61 |
52 |
executing processor
name →
{http://www.orbeon.com/oxf/processors}xml-serializer |
<p:processor name="oxf:xml-serializer">...</p:processor |
I have compared my code with sandbox example and made changes accordingly in sandbox,then when i clicks my trigger it is vanishing rather than deleting the selected rows. Can u mention what are the changes to be made to your sandbox
example to delete the multiple rows.Please check the error which have copied in this mail.
THANKS & REGARDS SATHISH K MITTAPELLI 
--- On Wed, 14/5/08, Florian Schmitt <ml-ops-users@...> wrote:
From: Florian Schmitt <ml-ops-users@...> Subject: [ops-users] Re: Is it possible to use if in xforms:delete??? To: ops-users@... Date: Wednesday, 14 May, 2008, 12:46 PM
hi sathish,
> What are the changes i have to made to achieve my requirement.
please, at first check if my sandbox example attached to my last
message works for you. If it does, you will have to compare your own code with the example to check for differences. I can't do this because i don't know how your xforms page looks like.
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 |
Bollywood, fun, friendship, sports and more. You name it, we have it.
--
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
|

|
Re: Re: Re: Is it possible to use if in xforms:delete???
hi sathish,
> Hi Florian when i am trying to run the sandbox example send by you i am
> getting the error like this (...)
which version of Orbeon Forms are you running? The xxforms:iterate
attribute requires a quite new build, 3.6 won't work, i think. You can
test the example sandbox file online to see that it's working:
http://www.orbeon.com/ops/xforms-sandbox/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
|

|
Re: Re: Re: Re: Is it possible to use if in xforms:delete???
Hi Florian i am using version 3.6.....i will upgrade to the latest version.Can u tell me where can i get the latest version of orbeon.
THANKS & REGARDS SATHISH K MITTAPELLI 
--- On Wed, 14/5/08, Florian Schmitt <ml-ops-users@...> wrote:
From: Florian Schmitt <ml-ops-users@...> Subject: [ops-users] Re: Re: Re: Is it possible to use if in xforms:delete??? To: ops-users@... Date: Wednesday, 14 May, 2008, 2:50 PM
hi sathish,
> Hi Florian
when i am trying to run the sandbox example send by you i am > getting the error like this (...)
which version of Orbeon Forms are you running? The xxforms:iterate attribute requires a quite new build, 3.6 won't work, i think. You can test the example sandbox file online to see that it's working:
http://www.orbeon.com/ops/xforms-sandbox/
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 |
Did you know? You can CHAT without downloading messenger. Click here
--
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
|

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

|
Re: Re: Is it possible to use if in xforms:delete???
Thank you Florian .......My problem solved
THANKS & REGARDS SATHISH K MITTAPELLI 
--- On Wed, 14/5/08, Florian Schmitt <ml-ops-users@...> wrote:
From: Florian Schmitt <ml-ops-users@...> Subject: [ops-users] Re: Is it possible to use if in xforms:delete??? To: ops-users@... Date: Wednesday, 14 May, 2008, 3:09 PM
hi sathish,
> Hi Florian i am using version 3.6.....i will upgrade to the latest > version.Can u tell me where can i
get the latest version of orbeon.
the latests nightly build is available on the standard download page:
http://www.orbeon.com/forms/download
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 |
Bring your gang together. Do your thing. Find your favourite Yahoo! Group.
--
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
|