lucasklos Report post Posted 03/11/2010 02:35 PM Hello, I would like to know if is possible to define configuration parameters externally of the vgs file? Like a xml file. Examples: path to the return file from programs, database connection string or parameters of the system which must be accessible from the script modules. Thanks. Share this post Link to post
SupportTeam Report post Posted 03/11/2010 10:06 PM Easiest way to do this is to just read in a Result Variables string from some configuration text file and then load that into the RV data associated with the script running on the line. At beginning of the script use a 'Run VBScript' module, and read data from your text file using VBScript. The data in your text file can look something like this: [PathOfReturnInfo]{C:\mydata\whatever\}[DatabseName]{TestDB2} and then call RvSet_RvList COM function to set this data into VG. See: http://www.voiceguide.com/vghelp/source/html/com_rvset_rvlist.htm You can also set global Result Variables in the VG.INI file, in section [scripts] eg: [scripts] GlobalRV=[PathOfReturnInfo]{C:\mydata\whatever\}[foo]{bar}[DefaultTransferExt]{44563} GlobalRV gets read in only at service restart. Please let us know if you have any more questions. Share this post Link to post
lucasklos Report post Posted 03/19/2010 02:35 PM Thanks! Very useful and simple... Share this post Link to post