Skip to Content
author's profile photo Former Member
Former Member

Mass approval not working for a Decision object type task

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on May 03, 2012 at 03:35 PM

    Hi Arijit

    try below code , I do't think that launchInNewWindow="SHOW_HEADERLESS_PORTAL" is required

    <Action name="accept" userDecision="yes" handler="UserDecisionHandler">

    <Properties>

    <Property name="decisionKey" value="1"/>

    </Properties>

    <Descriptions default="Accept"/>

    </Action>

    Regards,

    Piyush

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.