I want to get multiple selected object ids in my component class so i added <param name="componentArgs" required="true"/> to my action xmll .
But when i added this param, my menu item getting dissappeared .
Please let me know if i am missing anything here to get multiple selected object ids in my component class.
Java class :
onInit(ArgumentList arg ) {
String [] compArgs = arg.getValues("componentArgs");
String [] objIds = new String [compArgs.length];
for (int i=0; i < compArgs.length; i++){
System.out.println("ComponentArgs = " + compArgs[i]);
ArgumentList temp = ArgumentList.decode(compArgs[i]);
objIds[i] = temp.get("objectId");
}
for (int i=0; i<objIds.length; i++)
System.out.println("object id ------>"+objIds[i]);
}
menu item :
<actionmenuitem dynamic='multiselect' name='hello_world_menu_item' value='TestDialog01' action='hello_world_action' showifinvalid='true' showifdisabled='true'/>
Action xml :
<scope type="dm_folder">
<action id="hello_world_action">
<params>
<param name="objectId" required="true"/>
<param name="componentArgs" required="true"/>
</params>
<execution class="com.documentum.web.formext.action.LaunchComponent">
<component>myfldloc_component</component>
<container>myfldlocatorcontainer</container>
</execution>
<invocation>
<modalpopup>
<windowsize>medium</windowsize>
<refreshparentwindow>onok</refreshparentwindow>
</modalpopup>
</invocation>
</action>
</scope>
myfldlocatorcontainer ectends propertysheetwizardcontainer.