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



Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

Reply via email to