Welcome to ISAserver.org

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

Schedule script problems....

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [ISA 2006 Misc.] >> ISA 2006 Programming >> Schedule script problems.... Page: [1]
Login
Message << Older Topic   Newer Topic >>
Schedule script problems.... - 3.Apr.2007 7:40:26 AM   
dvdmena

 

Posts: 1
Joined: 3.Apr.2007
Status: offline
I have some problems with a script to automatice the schedule's users... In the ISA there are 4 groups of users with 4 differents schedules that i wants change every week (every week the acceces hours are differents for the 4 groups). I try to make a script based on the Isa 2006 SDK, in the section FPCSchedule (Modify a Schedule example). But to "translate" to a .vbs i needed some changes and it doesn't works at all...

Dim root  ' The FPCLib.FPC root object
Dim array        ' An FPCArray object
Dim mySchedules  ' An FPCSchedules
Dim newSchedule  ' An FPCSchedule

Set root = CreateObject("FPC.Root")
Set array = root.GetContainingArray
Set mySchedules = array.RuleElements.Schedules
Set mySchedule = MySchedules("Prova")

mySchedule.UnSet fpcSUN, fpcPM_5
mySchedules.Save
mySchedule.Refresh


(Prova is a Full schedule....)
All the times, with any changes in the UnSet hours or also i tryded with de Set Subrutine... and all the times its unset (or set) the Sunday at 0AM.... Any solutions??
Post #: 1

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [ISA 2006 Misc.] >> ISA 2006 Programming >> Schedule script problems.... Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts