|
Hi Prateesh, You want to delete/remove a list value at
run time, without the ‘user’ hitting a delete button? You could use the flow script to look up
the form page when it’s binding, and then remove the attribute as it
loads. I have done something similar whereby I
remove a specific row from a Repeater Widget, on run time. Your def XML file example requires the
action-command ‘delete’ to be called, perhaps by hitting a ‘delete’
button. Also, check what is being returned for *event.source.parent.lookupWidget("name").value;*
If it’s a selection list, are you trying to delete all
values in the list, or one in particular? Stu From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Hi, Is there a way to remove an element from selection list on
run time? I am using the below code in a definition XML file .But
removeAttribute method is not working <row-action id="delete"
action-command="delete">
<label><i18n:text>Delete</i18n:text></label>
<on-activate>
<_javascript_>
var queryToRemove =
event.source.parent.lookupWidget("name").value;
event.source.parent.parent.parent.lookupWidget("defaultQuery").removeAttribute(queryToRemove);
</_javascript_>
</on-activate> </row-action> Any help on this is highly appreciated. Ps : defaultQuery is a cocoon field that is styled as a
selection list Thanks, Prateesh
|
- RE: Removing an item from Cocoon selection list Stuart Thorne
- RE: Removing an item from Cocoon selection list prateesh.parammel
