Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1181
ActionField1181
Beschrijving: Open Stop Planner from menu. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| GanttTitle | UltimoString | Optional |
| JobSqlFilter | UltimoString | Optional |
| PossibleStopStatuses | List[Status] | Optional |
| ReadOnly | Boolean | Optional |
| SelectionListConfiguration | String | Optional |
| ShowIconForDocument | Boolean | Optional |
| ShowIconForMaterial | Boolean | Optional |
| ShowIconForPurchaseRequestLine | Boolean | Optional |
| ShowIconForTool | Boolean | Optional |
| StopContext | Context | Optional |
| StopExpandLevel | StopExpandLevel | Optional |
| ViewPreset | UltimoString | Optional |
XMLbewerken
<Workflow Name="ActionField1181" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Open Stop Planner from menu.</Description>
<Properties>
<Property Name="GanttTitle" Type="UltimoString" Accessor="Optional" Direction="In" Comment="Title for the Gantt view" />
<Property Name="JobSqlFilter" Type="UltimoString" Accessor="Optional" Direction="In" Comment="Show only Jobs with this filter" />
<Property Name="PossibleStopStatuses" Type="List[Status]" Accessor="Optional" Direction="In" Default="ProjectStatus.Created,ProjectStatus.Approved,ProjectStatus.Postponed,ProjectStatus.Active" Comment="Only show Projects(Stops) with these Statuses" />
<Property Name="ReadOnly" Type="Boolean" Accessor="Optional" Direction="In" Default="False" Comment="Set Gantt view to readonly" />
<Property Name="SelectionListConfiguration" Type="String" Accessor="Optional" Direction="In" Default="Stopplanner" Comment="Projects in grid are shown with this SelectionListConfiguration. Default is 'Stopplanner'" />
<Property Name="ShowIconForDocument" Type="Boolean" Accessor="Optional" Direction="In" Default="False" Comment="Check whether Job has Documents" />
<Property Name="ShowIconForMaterial" Type="Boolean" Accessor="Optional" Direction="In" Default="False" Comment="Check whether Job has Materials" />
<Property Name="ShowIconForPurchaseRequestLine" Type="Boolean" Accessor="Optional" Direction="In" Default="False" Comment="Check whether Job has Purchaserequestlines" />
<Property Name="ShowIconForTool" Type="Boolean" Accessor="Optional" Direction="In" Default="False" Comment="Check whether Job has Tools" />
<Property Name="StopContext" Type="Context" Accessor="Optional" Direction="In" Default="ProjectContext.Stop" Comment="Only show Projects(Stops) with this Context" />
<Property Name="StopExpandLevel" Type="StopExpandLevel" Accessor="Optional" Direction="In" Default="WorkOrder" Comment="ExpandLevel for the Gantt view. Accepted values: [Collapsed | WorkOrder | Job]" />
<Property Name="ViewPreset" Type="UltimoString" Accessor="Optional" Direction="In" Comment="ViewPreset for the Gantt view. Accepted values: [minuteAndHour | dayAndWeek | weekAndDay | weekAndMonth | monthAndYear | year | weekAndDayLetter | weekDateAndMonth]" />
<Property Name="SelectedStops" Type="List[Project]" Accessor="Internal" />
<Property Name="StopIds" Type="UltimoString" Accessor="Internal" />
<Property Name="Stops" Type="List[Project]" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<When Name="It is not a full user" Condition="#{User.DatabaseUserType} != Full">
<Assign Name="ReadOnly is true" Property="${ReadOnly}" Value="True" />
</When>
<Transaction>
<GetList Name="Stops" Type="Project" OutputProperty="${Stops}" OrderBy="Id" OrderDirection="Ascending">
<Filters>
<InFilter PropertyName="Status" Values="${PossibleStopStatuses}" />
<PropertyFilter PropertyName="Context" Operator="=" PropertyValue="${StopContext}" />
</Filters>
</GetList>
</Transaction>
<Validation Name="Stops" Condition="${Stops.Count} > 0" MessageCode="2530">
<Parameter Name="StopContext" Direction="In" Value="${StopContext}" />
</Validation>
<Dialog Name="ChooseRecordsDialog" TitleCode="CHOOSERECORDSDIALOGSTOPS">
<Container>
<Literal Name="literalInfo" Value="#label(CHOOSERECORDSDIALOGSTOPS_MESSAGE)" />
<CheckBoxGroup Name="cbSelectedItems" Value="${Stops}" OutputProperty="${SelectedStops}" ItemDescription="=${Item.Description}" Items="${Stops}" ShowSelectAll="True" />
</Container>
</Dialog>
<Validation Name="Stops Selected" Condition="${SelectedStops} != Empty && ${SelectedStops.Count} > 0" MessageCode="2531">
<Parameter Name="StopContext" Direction="In" Value="${StopContext}" />
</Validation>
<UserContent Name="Post" />
<ForEach Name="getIds" In="${SelectedStops}" As="Stop">
<Assign Name="ProjectId" Property="${StopIds}" Value="=${StopIds} == Empty ? ${Stop.Id} : #concat(${StopIds},';',${Stop.Id})" />
</ForEach>
<View Name="Open stopplanner" ViewName="Gantt">
<Parameter Name="Action" Direction="In" Value="GetStops" />
<Parameter Name="Id" Direction="In" Value="${StopIds}" />
<Parameter Name="JobSqlFilter" Direction="In" Value="${JobSqlFilter}" />
<Parameter Name="ReadOnly" Direction="In" Value="${ReadOnly}" />
<Parameter Name="SelectionListConfiguration" Direction="In" Value="${SelectionListConfiguration}" />
<Parameter Name="ShowIconForDocument" Direction="In" Value="${ShowIconForDocument}" />
<Parameter Name="ShowIconForMaterial" Direction="In" Value="${ShowIconForMaterial}" />
<Parameter Name="ShowIconForPurchaseRequestLine" Direction="In" Value="${ShowIconForPurchaseRequestLine}" />
<Parameter Name="ShowIconForTool" Direction="In" Value="${ShowIconForTool}" />
<Parameter Name="StopExpandLevel" Direction="In" Value="${StopExpandLevel}" />
<Parameter Name="Title" Direction="In" Value="${GanttTitle}" />
<Parameter Name="Type" Direction="In" Value="Stop" />
<Parameter Name="ViewPreset" Direction="In" Value="${ViewPreset}" />
</View>
</Execution>
</Workflow>