cancel
Showing results for 
Search instead for 
Did you mean: 

Select All Command

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Brandon,

Which portal ver. are you using?

Yoav

Former Member
0 Kudos

EP6SP2...

I have become familiar with some of the command development stuff.... just not sure exactly which way to go with this one.

Help is greatly appreciated, and rewarded with points : )!

Former Member
0 Kudos

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);