Skip to Content
0
Former Member
Apr 19, 2012 at 05:01 AM

Mass approval not working for a Decision object type task

22 Views

Hello UWL Experts,

I am trying to incorporate mass approval for CRM system from UWL in Portal.With UWL configuration done correctly ,I have created a custom XML file which contains a custom view to contain an extra column "Approve" with checkbox and a SubmitDecisions button at the bottom of the list.But whenever I click on SubmitDecisions button after selecting a work item of the same item type(Task) I get an error message which says "The action is not valid for this item type !".I am pasting my code snippet for the relevant sections here so that you can have a look .Pleas advise where I am going wrong.

(Action part )

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd'
>
<UWLConfiguration version="1.0">
<Actions>
<Action name="accept" groupAction="yes" handler="UserDecisionHandler" referenceBundle="approve" returnToDetailViewAllowed="yes" launchInNewWindow="SHOW_HEADERLESS_PORTAL">
<Properties>
<Property name="UserDecisionNote" value="display"/>
<Property name="decisionKey" value="0001"/>
</Properties>
</Action>

............

............

(ItemType part)

<ItemType name="uwl.task.webflow.decision.TS70007986.CERPS_CRM" connector="WebFlowConnector" defaultView="CRMTasksView1334126356750" defaultAction="viewDetail" executionMode="default">

<ItemTypeCriteria systemId="CERPS_CRM" externalType="TS70007986" connector="WebFlowConnector"/>

<CustomAttributes>

<CustomAttributeSource id="ABAP_BOR" objectIdHolder="externalObjectId" objectType="DECISION" cacheValidity="final">

<Attribute name="ALTKEY" type="int" displayName="Approve" />

</CustomAttributeSource>

</CustomAttributes>

<Actions>

<Action reference="accept"/>

</Actions>

.............

.............

(View part)

<View name="CRMTasksView1334126356750" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.task, uwl.task.webflow.decision.TS70007986.CERPS_CRM" columnOrder="subject, isEscalated, creatorId, createdDate, priority, attachmentCount, dueDate, status, ALTKEY" sortby="priority:descend, dueDate:ascend, createdDate:descend" tableDesign="STANDARD" visibleRowCount="10" headerVisible="no" queryRange="undefined" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" actionRef="" refresh="300" dueDateSevere="86400000" dueDateWarning="259200000" emphasizedItems="new" displayOnlyDefinedAttributes="yes" dynamicCreationAllowed="yes" actionPosition="bottom">

<Descriptions default="CRMTasksView">

<ShortDescriptions>

<Description Language="en" Description="CRMTasksView"/>

</ShortDescriptions>

<LongDescriptions>

<Description Language="en" Description="CRMTasksView"/>

</LongDescriptions>

</Descriptions>

<DisplayAttributes>

............

.............

<DisplayAttribute name="ALTKEY" type="checkbox" width="" sortable="no" format="default" actionRef="accept" referenceBundle="approve" hAlign="CENTER" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>

</DisplayAttributes>

..................

..................

<Actions>

<Action reference="submitUserDecisions"/>

....................

....................

(Navigation node part for an extra tab in the main page)

<NavigationNode name="CRMTasks1334126356750" view="CRMTasksView1334126356750" referenceGroup="" visible="yes" keepItemCountUpdated="no">

<Descriptions default="CRMTasks">

<ShortDescriptions>

<Description Language="en" Description="CRMTasks"/>

</ShortDescriptions>

<LongDescriptions>

<Description Language="en" Description="CRMTasks"/>

</LongDescriptions>

</Descriptions>

</NavigationNode>

...

...

I have gone through numerous blogs and discussion forums on this and I cannot understand what is missing. Please help as this is pending for a long time.

Thanks,

Arijit