I've defined the following action below (based from the newfolder action). The action gets called from a menu item. You can see that within the <execution> node I have defined subFolderType argument to pass to the component upon execution. This is not happening. Any ideas why? Does the <argument> tag go inside the <execution> or inside the <action> tag.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--***********************************************************************-->
<config version="1.0">
<scope type="dm_folder">
<action id="newscsubfolders">
<params>
<param name="objectId" required="true"/>
<param name="ownerName" required="false"/>
</params>
<preconditions>
<precondition class="com.documentum.web.formext.action.ComponentPrecondition">
<reverse-precondition>true</reverse-precondition>
<component>attachments</component>
<component>search</component>
</precondition>
<precondition class="com.documentum.web.formext.action.RolePrecondition">
<role>contributor</role>
</precondition>
</preconditions>
<execution class="com.documentum.web.formext.action.LaunchComponentWithPermitCheck">
<arguments>
<argument name="subfolderType" value="singleContract" />
</arguments>
<permit>folder_link_permit</permit>
<component>newscsubfolders</component>
<container>newsubfoldercontainer</container>
</execution>
<invocation>
<modalpopup>
<windowsize>medium</windowsize>
<refreshparentwindow>always</refreshparentwindow>
</modalpopup>
</invocation>
</action>
</scope>
</config>
Here is the code in the component onInit() where I try to grab the argument.
m_subType = argumentlist.get("subfolderType");