This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
bizweaver:wf_var [2024/09/24 13:43] dlee |
bizweaver:wf_var [2024/09/24 13:54] (current) dlee [String Manipulation] |
||
|---|---|---|---|
| Line 12: | Line 12: | ||
| * Use drag & drop to place variable in your tool configuration. | * Use drag & drop to place variable in your tool configuration. | ||
| - | {{ : | + | {{ : |
| Line 48: | Line 48: | ||
| * In this case, the __values__ are static. | * In this case, the __values__ are static. | ||
| - | {{ : | + | {{ : |
| The variables are then referenced in a subsequent WebService2 tool step as shown. | The variables are then referenced in a subsequent WebService2 tool step as shown. | ||
| - | {{ : | + | {{ : |
| Line 121: | Line 121: | ||
| - | ====== Examples ====== | ||
| - | Once a variable has been created, it can be used in any subsequent workflow step. | ||
| - | ===== User Variable | + | ==== Example |
| - | + | ||
| - | In a Bizweaver workflow, a user can reference variables initiated earlier in the workflow using the variables selector. In this example, a SQL statement is being used to pull information from the database. We want to limit the data based on a certain value. In this example, a value from the “Variables” step is used. | + | |
| - | + | ||
| - | When processed, the below workflow will only pull the CardType of " | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | In the variables tool, there is a **User-Defined Variable ** of " | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | In the SQL tool step, you can reference the **User-Defined Variable** of " | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | So, the SQL statement now uses the value ‘C’ in the variable “UserVariable1.” | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | Since the variable value ‘C’ is a string (text), the variable name must be enclosed in single quotes as required by SQL. | + | |
| - | + | ||
| - | ===== Step Variable Example ===== | + | |
| In this example, we are writing the output of the SQL step to a file. | In this example, we are writing the output of the SQL step to a file. | ||
| Line 161: | Line 137: | ||
| Next, you will press [F4] and select the SQL step variables when going to the file writer step. | Next, you will press [F4] and select the SQL step variables when going to the file writer step. | ||
| - | {{ :bw2:bizweavervarmanager3.png |}} | + | {{ :bizweaver:wf_var02.png |}} |
| You can see each step variable in the " | You can see each step variable in the " | ||
| Line 170: | Line 146: | ||
| =====String Manipulation===== | =====String Manipulation===== | ||
| - | Starting in Bizweaver 2.7.2, the functionality to modify variables was introduced. | + | This allows a user to manipulate all variables that are inserted in a specific step and is accessed by pressing F4 |
| - | {{ :bw2:bizweavervarmanager1.png |}} | + | {{ :bizweaver:wf_var03.png |}} |
| * **Escape:** Selecting this checkbox will enable or disable the escaping functionality. | * **Escape:** Selecting this checkbox will enable or disable the escaping functionality. | ||