Skip to Content
0
Former Member
Nov 29, 2007 at 05:18 PM

UWL : Configuration and customizing

29 Views

Hello,

We want to customize UWL. We try to just have one tab. It's ok. But for the detail screen, we want to delete forward button, you can do also ...AdHoc query and SAP GUI Link.

We have created a new configuration XML file and call navigation id XYZ in the standard UWL iview. We clear caches.

Ok, tab are ok but detail screen is not ok , we can find button forward , ad hoc query and SAP GUI link.

How we can hide this and add custom BOR attributes in the detail screen ?

Configuration XML file is looked like :

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

<!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd'

>

<UWLConfiguration version="1.0">

<ItemTypes>

<ItemType name="uwl.task.webflow.decision.TS92000016.XYZ_VC" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="accept" executionMode="default">

<ItemTypeCriteria systemId="XYZ_VC" externalType="TS92000016" connector="WebFlowConnector"/>

<CustomAttributes>

<CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebFlowContainer" cacheValidity="default">

<Attribute name="AbsenceType" type="string" displayName="Type d'absence"/>

<Attribute name="ENAME" type="string" displayName="Demandeur"/>

</CustomAttributeSource>

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

</CustomAttributes>

<Actions>

<Action name="accept" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">

<Properties>

<Property name="UserDecisionNote" value="true"/>

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

</Properties>

<Descriptions default="accept"/>

</Action>

<Action name="reject" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">

<Properties>

<Property name="UserDecisionNote" value="mandatory"/>

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

</Properties>

<Descriptions default="reject"/>

</Action>

</Actions>

</ItemType>

</ItemTypes>

<Views>

<View name="DefaultView" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.task.webflow.decision.TS92000016.XYZ_VC" columnOrder="subject, createdDate, status, AbsenceType, ENAME" sortby="createdDate:desc" 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" referenceBundle="tasks">

<DisplayAttributes>

<DisplayAttribute name="createdDate" type="date" width="" sortable="yes" format="medium" referenceBundle="sent_date" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>

<DisplayAttribute name="escalatedBy" type="people" width="" sortable="yes" format="default" referenceBundle="escalated_by" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>

<DisplayAttribute name="attachmentCount" type="int" width="1" sortable="yes" format="default" referenceBundle="attachments" hAlign="CENTER" vAlign="BASELINE" maxTextWidth="0" headerVisible="no"/>

<DisplayAttribute name="statusIcon" type="image" width="1" sortable="yes" format="default" referenceBundle="status_image" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="no">

<ImageMapping default="enum">

<ImageMap value="EXECUTED" imageName="ico16_task_confirmed.gif" referenceBundle="confirmed_task_status"/>

<ImageMap value="COMPLETED" imageName="ico16_task_complete.gif"/>

<ImageMap value="INPROGRESS" imageName="ico16_task_start.gif" referenceBundle="start_task_status"/>

<ImageMap value="enum" imageName="ico16_task_new.gif" referenceBundle="new_task_status"/>

<ImageMap value="NEW" imageName="ico16_task_new.gif" referenceBundle="new_task_status"/>

</ImageMapping>

</DisplayAttribute>

<DisplayAttribute name="substitutedFor" type="people" width="" sortable="yes" format="default" referenceBundle="substituted_for" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>

<DisplayAttribute name="dueDate" type="date" width="" sortable="yes" format="medium" referenceBundle="due_date" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>

<DisplayAttribute name="status" type="string" width="" sortable="yes" format="default" referenceBundle="status" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>

<DisplayAttribute name="isEscalated" type="image" width="10" sortable="yes" format="default" referenceBundle="data_escalate" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="no">

<ImageMapping default="0">

<ImageMap value="0" imageName="">

<Descriptions default=""/>

</ImageMap>

<ImageMap value="1" imageName="ico16_escalated.gif" referenceBundle="data_escalated"/>

</ImageMapping>

</DisplayAttribute>

<DisplayAttribute name="creatorId" type="people" width="" sortable="yes" format="default" referenceBundle="from" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>

<DisplayAttribute name="memoCount" type="int" width="1" sortable="yes" format="default" referenceBundle="memo" hAlign="CENTER" vAlign="BASELINE" maxTextWidth="0" headerVisible="no"/>

<DisplayAttribute name="itemTypeIcon" type="image" width="1" sortable="no" format="default" referenceBundle="item_type" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="no">

<ImageMapping default="none">

<ImageMap value="uwl.task" imageName="task.gif" referenceBundle="tasks"/>

<ImageMap value="none" imageName="">

<Descriptions default=""/>

</ImageMap>

<ImageMap value="uwl.notification" imageName="notification.gif" referenceBundle="task_notifications"/>

<ImageMap value="uwl.alert" imageName="alert.gif" referenceBundle="task_alerts"/>

</ImageMapping>

</DisplayAttribute>

<DisplayAttribute name="systemId" type="string" width="10" sortable="yes" format="default" referenceBundle="system_id" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>

<DisplayAttribute name="isLaunched" type="image" width="1" sortable="no" format="default" referenceBundle="launched" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="no">

<ImageMapping default="0">

<ImageMap value="0" imageName="1x1.gif"/>

<ImageMap value="1" imageName="/irj/portalapps/com.sap.portal.htmlb/mimes/common/statusicons/s_sta_ok.gif"/>

</ImageMapping>

</DisplayAttribute>

<DisplayAttribute name="subject" type="link" width="" sortable="yes" format="default" actionRef="viewDetail" referenceBundle="subject" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>

<DisplayAttribute name="priority" type="string" width="" sortable="yes" format="default" referenceBundle="priority" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>

</DisplayAttributes>

</View>

<View name="WorkItemsCompletedView" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.completedtask" columnOrder="subject, createdDate, status" sortby="createdDate:descend" tableDesign="STANDARD" visibleRowCount="10" headerVisible="no" queryRange="Last_3_Months" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" actionRef="" refresh="300" dueDateSevere="0" dueDateWarning="0" emphasizedItems="none" displayOnlyDefinedAttributes="yes" dynamicCreationAllowed="yes" actionPosition="bottom" referenceBundle="completed_tasks">

<DisplayAttributes>

<DisplayAttribute name="completedDate" type="date" width="" sortable="yes" format="medium" referenceBundle="completed_date" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>

<DisplayAttribute name="decision" type="string" width="" sortable="yes" format="default" referenceBundle="decision" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>

</DisplayAttributes>

</View>

</Views>

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

<NavigationNode name="CombinedTask" view="DefaultView" referenceGroup="" visible="yes" keepItemCountUpdated="no" referenceBundle="tasks">

<NavigationNode name="task2" view="DefaultView" referenceGroup="UWL_ADD_DYNAMIC_VIEWS" visible="yes" keepItemCountUpdated="no" referenceBundle="new_and_inprogress_tasks">

<NavigationNode name="PersonalViewPlaceHolderTask2" view="" referenceGroup="UWL_PERSONAL" visible="yes" keepItemCountUpdated="no"/>

</NavigationNode>

<NavigationNode name="completed2" view="WorkItemsCompletedView" referenceGroup="UWL_ADD_DYNAMIC_VIEWS" visible="yes" keepItemCountUpdated="no" referenceBundle="completed_tasks">

<NavigationNode name="PersonalViewPlaceHolderCompleted2" view="" referenceGroup="UWL_PERSONAL" visible="yes" keepItemCountUpdated="no"/>

</NavigationNode>

</NavigationNode>

</NavigationNode>

</UWLConfiguration>

best regards,