 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
barefootguru
Joined: 10 Aug 2007 Posts: 195
|
|
Scheduler.setJobProperty doesn't |
|
I'm wanting to run a global 'find & replace' on my job database but the Scheduler.setJobProperty JavaScript command doesn't appear to be working.
If I create a test script job and enter a script of
 |
 |
Scheduler.setJobProperty(45,'DESCRIPTION','xxx'); |
The job runs fine, but job number 45 still has an empty description.
It also fails on the COMMAND property. getJobProperty works as expected.
24x7 Multi-platform 4.1 255
|
|
Wed Jul 02, 2008 8:02 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
All script jobs by default run detached to protect the scheduling engine from accidental job crashes. As a result they cannot be used to modify properties of other jobs. However, if you set the job to run in regular, not detached mode, it will be able to modify other jobs.
Hope this helps.
|
|
Wed Jul 02, 2008 8:27 pm |
|
 |
barefootguru
Joined: 10 Aug 2007 Posts: 195
|
|
|
|
Brilliant, thanks (and for the quick reply).
You might want to note that in the setJobProperty part of the JavaScript guide.
|
|
Wed Jul 02, 2008 8:35 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|