Format the text by using variable placeholders and line and tab variables with the
Format Text component in RPA Desktop Design Studio. You can update the text and their
positions easily by just updating the variable placeholders and the line and tab
variables.
Before you begin
Role required: none
About this task
You can configure the properties for the Format Text component. For more information
about these properties, see Properties of the General components.
Procedure
-
In the Toolbox pane, navigate to .
-
Drag the Format Text component to the Design surface.
-
To set the text placeholder variable, do the following steps.
-
Click the add variable icon (
).
A Data In port is added for each variable you add.
-
To configure the variable value, see Configure port properties.
- Optional:
Repeat the steps to add more variables and values.
-
Click the component settings icon (
).
-
Insert the text in the TEXT FORMAT EDITOR.
-
Insert the text.
- Optional:
Insert the line separator \n or tab separator \t variable at appropriate places
within the text.
-
Insert the text variable placeholders within the text body, wherever
appropriate.
Tip: To update the text, update the placeholder value.
-
Connect the data and control ports of the Format Text component to the
corresponding ports of the other component as described in the following
table.
| Port type |
Purpose of connection |
Mandatory? |
| Data In (Variable) |
Takes the variable value from a previously executed
component. |
Yes |
| Data Out (Formatted Output) |
Returns the formatted text and passes to the next
component. |
Yes. To view the output, right-click the
Return field and click
Preview Data. |
| Control In |
Passes the control from the previously executed
component. |
Yes |
| Control Out |
Passes the control to the next component. |
No. Connecting the port is optional. |
- Optional:
To test the component, under the DESIGN tab, click
Run.