on 05-12-2005 10:25 PM
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
Hi Brandon,
Which portal ver. are you using?
Yoav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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);
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.