Add component returns the required date based on Type (DateAndType) and Value.
User will be able to manipulate the Date and time based on custom values entered in the component during execution.
Add component exposes the Control In, Control Out, Data In, and Data Out ports by default.
|Control In||Must be connected to the Control Out port of one or more components.|
|Control Out||Must be connected to the Control In port of any other component.|
|Data Out||Returns the required data based on Type and value.|
To edit the properties of the Add component, in the
Properties window, change the required property. You can edit the following properties.
|Search||Search for the respective property.|
|Delay After Execution||Specifies the wait time (in seconds) after the action is executed.|
|Delay Before Execution||Specifies the wait time (in seconds) before the action is executed.|
Let us consider an example.
To retrieve the Date and Time after add component:
- In the Toolbox, expand
Utilitiesand then expand
- Drag the
Addcomponent and drop it on the Design surface.
- Enter a date manually by double clicking on the
- User can also enter data in the
SourceDatefield by clicking on the Port Override Option.
- Double-click on the type box and select the DateAndType from static value dropdown.
Double-click on Value box and enter the required value (double).
In this Example the Date Entered is 04/24/2018 and the desired output is 04/25/2018 as we have selected the increment to happen for “Day” and “1” which means by 1 day.
To learn more about
Overridethe data source of the data port, refer the
To enable display of the returned value, you can add a MessageBox component to the activity.
To add the
- In the
- Expand the
MessageBoxcomponent, drag the
Showcomponent and drop it on the Design surface.
- In the
- Connect the control ports and data ports in the activity.
In the toolbar, click
Messageboxdisplays the Add date and time.