Hello,
I have a problem with the definition of custom attributes in the uwl. I have added fields from the container of a standard task to the default view. But now the same field should be displayed at the workItemsCompletedView.
my definition in the uwl.standard.xml:
<ItemType name="uwl.task.webflow.TS97100213" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchIView" executionMode="pessimistic">
<ItemTypeCriteria externalType="TS97100213" connector="WebFlowConnector"/>
<CustomAttributes>
<CustomAttributeSource id="ABAP_BOR" objectIdHolder="externalObjectId" objectType="/CDX/1RBKP" cacheValidity="final">
<Attribute name="BELNR" type="string" displayName="FI Beleg-Nr"/>
<Attribute name="XBLNR" type="string" displayName="Referenz"/>
<Attribute name="BLDAT" type="date" displayName="Rechnungsdatum"/>
<Attribute name="BBRUTTO" type="date" displayName="Rechnungsbetrag"/>
<Attribute name="BUKRS" type="string" displayName="Buchungskreis"/>
</CustomAttributeSource>
<CustomAttributeSource id="ABAP_BOR" objectIdHolder="BUKRS" objectType="BUS0002" cacheValidity="default">
<Attribute name="CompanyCodeId" type="string" displayName="Buchungskreis"/>
</CustomAttributeSource>
</CustomAttributes>
<!-- Launcher -->
<Actions>
<Action name="launchIView" groupAction="" handler="IViewLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
<Properties>
<Property name="iview" value="pcd:portal_content/de.guj.f.grunerundjahr/de.guj.invoiceLINE/de.guj.CE_RESP_IAC_EPI"/>
<Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
<Property name="openInNewWindow" value="yes"/>
<Property name="iviewDynamicParameter" value="wi_id=$(item.externalId)"/>
<Property name="display_order_priority" value="5"/>
</Properties>
<Descriptions default=""/>
</Action>
</Actions>
<!-- Launcher -->
</ItemType>
At the view definition of the default-view one field for example:
<DisplayAttribute name="XBLNR" type="string" width="" sortable="yes" format="default" hAlign="LEFT" vAlign="BASELINE">
<Descriptions default="">
<ShortDescriptions>
<Description Language="de" Description="Referenz"/>
</ShortDescriptions>
</Descriptions>
</DisplayAttribute>
This works because at the itemtype definition is a reference to the view: defaultView="DefaultView"
But how can I make a reference to the workItemsCompletedView?
Should I make a new itemtype definition with the same name? I think I have to make a new one because at this view there should be no actions.
I tried this, but there was the strange effect, that all items was at the workItemsCompletedView, even those, which are not completed.
Can someone help me?
Regards, Gert