Skip to Content
author's profile photo Former Member
Former Member

Select All Command

I would like to implement a simple menu command that selects all of the resources currently displayed in the AdminExplorer List.

Has anyone done this before or do you have ideas on where to start?

Thanks.

Brandon

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 12, 2005 at 09:52 PM

    Hi Brandon,

    Which portal ver. are you using?

    Yoav

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      If anyone is interested in using this... it ended up being quite simple actually.... once I got through the javascript mess..

      Construct a new UICommand by extending AbstractCommand

      and set raises event to false.

      In the getLinkAttributes method return something similiar to:

      Example code:

      String sURL = "javascript:var f = parent.document.forms[0];var CHECKBOX = 'checkbox';for(i=0;i<f.length;i++){if(f.elements<i>.type==CHECKBOX){f.elements<i>.checked=true;var imgElement=parent.document.getElementById(f.elements<i>.name + '_img');imgElement.className='urImgCbgImgChk';}}";
      
      return new LinkAttributes(sURL,"_this",true);

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.