12-20-2006 06:18 AM - edited 03-14-2019 12:22 AM
How can I define and use a "global" variable in IPCCX? I want to be able to modify a variable that can then be used from other scripts.
Thanks,
Glenn
Solved! Go to Solution.
12-20-2006 07:42 AM
No way. Take a look at these sample scripts (bottom of page)
take a look at the state_check.aef and state_update.aef examples, they should give you all you need.
HTH, please rate all posts!
Chris
12-20-2006 06:31 AM
Your best alternative is to write it to an XML file. I've done many implementations where global varaibales were needed and writing it to XML file, then reading from it is the easiest way. ANother way is to use DB.
HTH,
Chris
12-20-2006 06:33 AM
Is there no way of defining a global variable? If not, does anyone have an example of a script that writes to an XML?
Thanks,
Glenn
12-20-2006 07:42 AM
No way. Take a look at these sample scripts (bottom of page)
take a look at the state_check.aef and state_update.aef examples, they should give you all you need.
HTH, please rate all posts!
Chris
01-02-2007 10:51 PM
Chris,
This reads and writes to a doc in the C:\program files\wfavvid directory. I have redundant servers. The doc does not get updated on the Secondary server in case the primary goes down. Do I have any options to get this file to be replicated automatically?
Thanks,
Glenn
01-03-2007 06:37 AM
You can upload the doc to repository and work off of the file there.
Chris
01-12-2007 06:47 AM
Chris,
Sorry for dumb questions but how do I reference a doc from the repository in the script?
Thanks,
Glenn
01-12-2007 08:23 AM
No such thing as a dumb question! :)
You can use DOC[filename] to reference a document stored in the Repository, e.g. as the source in the "Create XML Document" step. I think this is relative to the default language configured, so you don't need to specify "en_GB\..." etc.
01-12-2007 09:48 AM
When I try this, I get an error:
Unable to parse expression; unassignable type:Document; expecting String.
Any ideas what I'm doing wrong?
Thanks,
Glenn
03-29-2015 11:06 AM
I ran in to this issue myself today while migrating scripts from a UCCX 7.x system to 9.x. In 7.x I have my xml files saved on the hard drive in the root of the wfavvid folder.
In 9.x the files need to be uploaded to the document repository.
On the 7.x system my variables were defined as Strings.
Once the files get uploaded to the document repository I had to change my variables to type Document.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide