Result
Understand how to create an event-based form to display, edit, remove and add event period and attribute values
Tutorial steps
- Create a new Event based Form in the Charts section of the Config Tool in the packaging folder
- Link the Filler 1 Run event to the Form to visualize, edit, and add event and attribute information
In a previous tutorial, we created a Time Period form for the manual entry of data. This tutorial will focus on the creation of Event Period forms which can be used to edit or even insert event periods and associated context into Flow.
Let’s create an Event Period Form for your Filler. Select the "Charts" tab at the top of the "Information Model" view. In the "Packaging" Folder, create a new "Event Period Form" named "Packaging Event Form" in this folder by right-clicking on the folder …
Double-click the new form definition to open its editor …
Definition
Navigate to the "Tabs" section of the Form Editor. Now drag the "Filler 1 Run" event from the Model View and drop it onto the white space in the "Tabs" section.
View the Event Form
Open the "Flow Server" again, make sure you have signed in, and select the "Packaging Event Form":
Notice the structure of the Event form. The event Index, Start and End is always displayed on the left. Any attributes that you have added to the form definition will appear on the right (in the order you have specified).
Editing Event Attribute Data
Let’s focus on the event with Index 129. Let’s assume that for that Period, the Filler actually produced "Grape" flavor, not "Orange". Select the cell and select "Grape" from the dropdown:
Note that your change is immediately saved/committed.
You can also perform the following actions on an event form:
- Insert an event period
- Edit an event period
- Split an event period
- Remove an event period
These four options are accessible by selecting the "options" menu at the beginning of a row, as indicated by the 3 vertical dots:
Clicking on the options menu on any row (and also at the top, in the "header") reveals the following options:
Inserting an Event Period
To insert an event period, select the (+) button in the options menu.
Provide the details required to create the new event period. Notice the Period Start and End are defaulted to "fill" the space between the existing event periods.
Insert a 5 minute event period. You can use a combination of the slider and the text boxes in the top left corner to finetune the seconds value. Alternatively, you may use the calendar controls below the slider to configure the new event period's start and end times.
After selecting "Save" your changes are committed.
Note: If you do not see an "Insert" button, this means that there is no space available to insert a new period. You would need to first edit the existing periods to create space for a new period to be inserted.
Editing an Event Period
To edit an existing period, select the "Edit" button in the options menu - the one that looks like a pencil. Modify the event period you created above to be 4 minutes long.
Use the slider or the calendar and time pickers to adjust the start and/or end time of the event period.
After selecting "Save" your changes are committed.
Splitting an Event Period
To split an event period, select the "Split" button in the options menu - the one that looks like two arrows forking in different directions.
Use the slider or the duration text boxes to adjust the end time of the first event period (which will then be the start time of the second event period). Note too that the split ratio is displayed in the top right of the Split dialog.
Split the event period you inserted and then edited in a 50:50 ratio.
After selecting "Split" your changes are committed.
Removing Event Periods
To remove an event period, select the "Delete" button (-) from the options menu. This will immediately remove the Event Period.
Remove the two event periods that resulted from the split operation above.