Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield145
ActionField145
Beschrijving: Create a YearPlan. In a dialog the YearPlan options can be set. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| FormName | UltimoString | Optional |
| Building | Building | Optional |
| Customer | Customer | Optional |
| Description | String | Optional |
| FeatureChoice | FeatureChoice | Optional |
XMLbewerken
<Workflow Name="ActionField145" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Create a YearPlan. In a dialog the YearPlan options can be set.</Description>
<Properties>
<Property Name="FormName" Type="UltimoString" Accessor="Optional" Direction="In" Default="YRP01" Comment="Open this screen with the created YearPlan" />
<Property Name="Building" Type="Building" Accessor="Optional" Direction="Out" />
<Property Name="Customer" Type="Customer" Accessor="Optional" Direction="Out" />
<Property Name="Description" Type="String" Accessor="Optional" Direction="Out" />
<Property Name="FeatureChoice" Type="FeatureChoice" Accessor="Optional" Direction="Out" />
<Property Name="BuildingInYearPlanExistCount" Type="Int64" Accessor="Internal" Default="0" />
<Property Name="DomainObject" Type="DomainObject" Accessor="Internal" Default="Empty" />
<Property Name="Feature" Type="Feature" Accessor="Internal" />
<Property Name="InsertYearPlan" Type="YearPlan" Accessor="Internal" />
<Property Name="Year" Type="Int16" Accessor="Internal" />
<Property Name="YearPlanExistCount" Type="Int64" Accessor="Internal" Default="0" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Dialog Name="CreateYearPlanDialog" TitleCode="CREATEYEARPLAN" LabelWidth="110">
<Container Border="True">
<Number Name="YearField" OutputProperty="${Year}" ColumnName="YrpYear" LabelCode="YEAR" MinValue="1800" />
<Text Name="DecriptionField" Width="350" OutputProperty="${Description}" ColumnName="YrpDescr" LabelCode="DESCRIPTION" />
<ComboBox Name="Customer" Width="350" OutputProperty="${Customer}" ViewfieldConfiguration="Default" Required="False" LabelCode="OWNER">
<Filters>
<PropertyFilter PropertyName="Context" Operator="=" PropertyValue="CustomerContext.Owner" />
</Filters>
</ComboBox>
<ComboBox Name="Feature" Width="350" OutputProperty="${Feature}" ViewfieldConfiguration="Default" Required="False" LabelCode="YEARPLANPROPERTY">
<Filters>
<PropertyFilter PropertyName="ValueType" Operator="=" PropertyValue="ListOfOptions" />
<PropertyFilter PropertyName="Context" Operator="=" PropertyValue="FeatureContext.Building" />
</Filters>
</ComboBox>
<ComboBox Name="FeatureChoice" Width="350" OutputProperty="${FeatureChoice}" ViewfieldConfiguration="Default" Required="False" ReadOnly="=${Feature}==Empty" LabelCode="YEARPLANVALUE">
<Filters>
<WhenFilter Condition="${Feature}!=Empty">
<PropertyFilter PropertyName="Id.Feature" Operator="=" PropertyValue="${Feature}" />
</WhenFilter>
</Filters>
</ComboBox>
<ComboBox Name="Building" Width="350" OutputProperty="${Building}" ViewfieldConfiguration="Default" Required="False" LabelCode="BUILDING">
<Joins>
<Join Name="ObjectFeatures" Alias="features" Type="LeftOuterJoin" />
</Joins>
<Filters>
<NotFilter>
<PropertyFilter PropertyName="Context" Operator="=" PropertyValue="BuildingContext.Complex" />
</NotFilter>
<WhenFilter Condition="${Customer}!=Empty">
<PropertyFilter PropertyName="Owner" Operator="=" PropertyValue="${Customer}" />
</WhenFilter>
<WhenFilter Condition="${Feature}!=Empty">
<CombinedFilter FilterOperator="And">
<PropertyFilter PropertyName="features.Feature" Operator="=" PropertyValue="${Feature}" />
<WhenFilter Condition="${FeatureChoice}!=Empty">
<PropertyFilter PropertyName="features.FeatureChoice" Operator="=" PropertyValue="${FeatureChoice}" />
</WhenFilter>
</CombinedFilter>
</WhenFilter>
</Filters>
</ComboBox>
</Container>
</Dialog>
<Transaction>
<Insert Name="InsertYearPlanNow" ObjectType="YearPlan" OutputProperty="${InsertYearPlan}">
<Parameter Name="Context" Direction="In" Value="YearPlanContext.LongTermMaintenancePlan" />
<Parameter Name="Status" Direction="In" Value="YearPlanStatus.Concept" />
<Parameter Name="Building" Direction="In" Value="${Building}" />
<Parameter Name="Customer" Direction="In" Value="${Customer}" />
<Parameter Name="Description" Direction="In" Value="${Description}" />
<Parameter Name="FeatureChoice" Direction="In" Value="${FeatureChoice}" />
<Parameter Name="Year" Direction="In" Value="${Year}" />
</Insert>
<Command Name="YearPlan_CheckIfYearPlanExistsForBuilding" CommandName="YearPlan_CheckIfYearPlanExistsForBuilding">
<Parameter Name="CheckOnlyDefinitive" Direction="In" Value="False" />
<Parameter Name="YearPlan" Direction="In" Value="${InsertYearPlan}" />
</Command>
</Transaction>
<UserContent Name="Post" />
<View Name="OpenScreen" ViewName="DataEntryScreen">
<Parameter Name="DomainObject" Direction="In" Value="${InsertYearPlan}" />
<Parameter Name="FocusEditableField" Direction="In" Value="=${InsertYearPlan.Description} == Empty" />
<Parameter Name="ScreenName" Direction="In" Value="${FormName}" />
</View>
</Execution>
</Workflow>