Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1853
ActionField1853
Beschrijving: Select a new opposite for linktype via dialog, and update linktypes and linkedAssets. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| LinkType | LinkType | Root |
XMLbewerken
<Workflow Name="ActionField1853" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Select a new opposite for linktype via dialog, and update linktypes and linkedAssets.</Description>
<Properties>
<Property Name="LinkType" Type="LinkType" Accessor="Root" Direction="In" />
<Property Name="LinkTypes" Type="List[LinkType]" Accessor="Internal" />
<Property Name="OppositeLinkType" Type="LinkType" Accessor="Internal" />
<Property Name="SqlWhereClause" Type="String" Accessor="Internal" Default="ltId != '${LinkType.Id}' and ltId not in (select LTOppositeLTId from dba.LinkType where LTRecStatus >= 0 and LTOppositeLTId is not null)" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Dialog Name="LinkType_Dialog" TitleCode="LINKTYPE">
<Container Border="True">
<SelectionList Name="LinkType" OutputProperty="${OppositeLinkType}" ColumnName="LTId" Required="True" SqlWhereClause="${SqlWhereClause}" />
</Container>
</Dialog>
<Transaction>
<GetList Name="LinkType" Type="LinkType" OutputProperty="${LinkTypes}" OrderBy="Id" OrderDirection="Ascending">
<Filters>
<PropertyFilter PropertyName="OppositeLinkType" Operator="=" PropertyValue="${LinkType}" />
</Filters>
</GetList>
<ForEach Name="Update the linktypes" In="${LinkTypes}" As="FoundLinkType" Comment="Set Old linktypes with to null">
<Assign Name="Set LinkType.LinkType " Property="${FoundLinkType.OppositeLinkType}" Value="Empty" />
</ForEach>
<WorkflowCall Name="LinkType_UpdateLinkedAssets" WorkflowName="LinkType_UpdateLinkedAssets">
<Parameter Name="LinkType" Direction="In" Value="${LinkType}" />
<Parameter Name="OppositeLinkType" Direction="In" Value="${OppositeLinkType}" />
</WorkflowCall>
<Assign Name="Set LinkType.OppositeLinkType" Property="${LinkType.OppositeLinkType}" Value="${OppositeLinkType}" />
<Assign Name="Set OppositeLinkType" Property="${OppositeLinkType.OppositeLinkType}" Value="${LinkType}" />
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>