I use the same variable across multiple jobs; and it is cumbersome to have to edit the same variable everytime I execute a new job. Is it possible to create a "Master Variable" table that can be used across multiple jobs?
Thanks,
Emerson
I use the same variable across multiple jobs; and it is cumbersome to have to edit the same variable everytime I execute a new job. Is it possible to create a "Master Variable" table that can be used across multiple jobs?
Thanks,
Emerson
Thanks, this should do the trick.
Ok, I tried this; however I could not modify it to fit my needs.
I need the parse text to only take the following text: "C:\Users\codex\Downloads" and nothing else from the GlobalVariables file.
Thanks,
Emerson
All you have to do is create a brand new variable. Please check the file that I attached. I have created a new variable in the txt file. Then I have modified the job to grab it and store it in the %GlobalVariableName% variable.
| Attachment | Size |
|---|---|
| GlobalVariables.txt | 685 bytes |
| Sample Use Global Variables.waj | 16 KB |
Error is not blindness, error is cowardice
Thank you; this worked.
Emerson
I hope that you get the whole idea behind this implementation that I posted:
You can define more than one "global variables" in the text file using the $variableName notation and then use them in your job by assigning it to a normal job variable (i.e. %GlobalVariableName%). This way you can have literally hundreds of variables defined in your text file and use as many of them as you like in any job depending on your needs.
Cheers!
Error is not blindness, error is cowardice
I think that this is not possible to do that "natively" inside WinAutomation. However, what I do (since there are a lot of variables that need to be used in more than 1 jobs) is the following:
- I have create a folder named "WinAutomationJobs" in my desktop folder, and I keep all the files needed or produced by WinAutomation in subfolders of this folder. This way I have everything organized and know exactly where every job's resources reside.
- Inside this folder there is a subfolder called resources and a text file called GlobalVariables.txt in it.
I have attached a sample job that retrieves a specific global variable from the text file (sample also attached).
Error is not blindness, error is cowardice
Error is not blindness, error is cowardice