SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Scheduler.setJobProperty doesn't

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Scheduler.setJobProperty doesn't
Author Message
barefootguru



Joined: 10 Aug 2007
Posts: 195

Post Scheduler.setJobProperty doesn't Reply with quote
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

Quote:
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Reply with quote
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 View user's profile Send private message
barefootguru



Joined: 10 Aug 2007
Posts: 195

Post Reply with quote
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 View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.