Standard Smart Text placeholders in FactoryLogix are shown like this: <$Type$> where Type identifies the type of Smart Text required, for example Assembly, Barcode, Batch Name, and so on.
In some cases, FactoryLogix allows you to manually edit Smart Text by adding additional processing instructions to the Smart text placeholders (that is, instead of only being able to select a Smart Text placeholder from a drop-down). If you want to add additional processing instructions to a Smart Text placeholder, use this format:
Code Block |
---|
<$Type [|Function,Parameters [...]]$> |
Element | Description | |
---|---|---|
Type | Type identifies the information that will replace the Smart Text placeholder. Type is the only required element. | |
| (pipe character) | Identifies the start of an additional processing instruction. | |
Function | Identifies any additional processing that will be applied to the value that replaces the Smart Text placeholder. These functions are supported:
|
...
...
|
...
| |
Parameters | A comma-separated list of values that varies depending on the function. |
Any Smart Text placeholder can include zero or more additional processing instructions where each processing instruction uses three elements:
| Function,Parameters
If you don't define any additional processing instructions, the Smart Text placeholder uses the standard format:
Code Block |
---|
<$Type$> |
If you define one or more additional processing instructions, each instruction is processed in order, from left to right.
To use one processing instruction, use the following format:
Code Block |
---|
<$Type|Function,Parameters$> |
To use multiple processing instructions, specify each additional processing instruction to the right of the previous instruction:
Code Block |
---|
<$Type|Function,Parameters|Function,Parameters$> |
SUBASSY, SUBSTR, and REPLACE functions
Function | Description | |
---|---|---|
SUBASSY |
|
...
|
...
When a <$Barcode$> Smart Text placeholder is resolved, it is replaced with the UID of the targeted item.
| |
SUBSTR | The SUBSTR function returns a substring of the resolved Smart text value. Th SUBSTR function has two parameters:
|
REPLACE | The REPLACE function returns the resolved value having replaced every instance of the string defined in the first parameter with the string defined in the second parameter. This function has two parameters:
|