Hi All,
Creating a custom UWL view to Approve and Reject leave request. Have created two custom actions as below:
<Action name="approveAction" groupAction="yes" handler="FunctionModuleActionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="IM_COMMAND" value="EXECUTE_APPROVE"/>
<Property name="IM_REQUEST_ID" value="${item.externalObjectId}"/>
<Property name="FunctionModule" value="PT_ARQ_REQUEST_EXECUTE"/>
</Properties>
<Descriptions default="Approve Leave Request"/>
</Action>
<Action name="rejectAction" groupAction="yes" handler="FunctionModuleActionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="IM_COMMAND" value="EXECUTE_REJECT"/>
<Property name="IM_REQUEST_ID" value="${item.externalObjectId}"/>
<Property name="FunctionModule" value="PT_ARQ_REQUEST_EXECUTE"/>
</Properties>
<Descriptions default="Reject Leave Request"/>
</Action>
They work when I create two additional column (radio buttons) with a submitUserDecisions, but I do not want to use this method, I would prefer to use a multi select view with the action.
<View name="MyLeaveView" selectionMode="MULTISELECT" .......
<Actions>
<Action name="Approve" reference="approveAction"/>
<Action name="Reject" reference="rejectAction"/>
</Actions>
However the actions do not appear at the top of the view only in the preview panel for each item. How can I make them appear at the top of the view and action all selected lines?
OK, another question. How can I allow a default action (which is launchWebDynpPro) to be active on one view but not active on another view. I have set the default action of the view to
defaultAction="none"
Thanks