The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
active scripts and agents
Posted: 14 Jul 06 8:58 AM
|
fiogf49gjkf0d Is there any easy way to automate a script which will not run as an agent as the scrirpt relies on the application object, which doesn't work in an agent?
|
|
|
|
Re: active scripts and agents
Posted: 19 Jul 06 12:29 AM
|
fiogf49gjkf0d I would never suggest to run the script unattended, but if you really have to you could always just programatically fire up SLX and use the SlxApplication object to fire the script then shut down SLX.
Messy and ugly, but would get the job done (in a really disgusting and awful way :laugh |
|
|
|
Re: active scripts and agents
Posted: 19 Jul 06 12:29 AM
|
fiogf49gjkf0d Or you could just not use the Application object from the script you need to run automated. |
|
|
|
Re: active scripts and agents
Posted: 19 Jul 06 1:43 AM
|
fiogf49gjkf0d Thanks, Ryan, this was for one of my colleague’s who has used the agent multiple times in the past for legacy script. He expected the new active scripts would work in the same way! In the end he re-wrote the script in the old legacy scripts
Thanks for your help. -- Duncan
|
|
|
|
Re: active scripts and agents
Posted: 05 Jul 07 5:58 PM
|
Ryan, I'm running into the same problem trying to use SLX Database Support in an agent that I'm running on the Sync Server.
It looks like I'm going to try to either fire up the SlxApplication and then shut it down or try not to use the application object. How would I fire up the SLX Application and shut it down and why wouldn't I want to do that?
Thanks! Ian |
|
|
|
Re: active scripts and agents
Posted: 09 Jul 07 5:14 PM
|
Given the frustration of not being able to run routines (legacy or vbScript) which open recordsets, we built our own Scheduler within SalesLogix. It allows our customers to select any established Legacy Script or ActiveScript (provided in dropdowns), and set which days to run, and at what times. Adding a few lines of code to the end of the routines, the Scheduler also provides a return to confirm time of completion, how long the routine took to run, and add/modify counts (datagrid).
If interested, send me an email address and I'll shoot you a screenshot.
Ted Urquhart TASK Raleigh NC |
|
|
| |
|