cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Turn off Schedulers

MO_10216552
4-Participant

Turn off Schedulers

So I got all the enabled schedulers in an infotable and want to disable them so I wrote this code that sends them to a property and then disables them:

 

for(i=0; i<=t.rows.length; i++){
me.Schedulers = result;
Things[t[i].name].EnableThing();
}

and I get this error:  Error executing service testSchedulers. Message :: Index 9 out of bounds for length 9 - See Script Error Log for more details.

 

It all seems to work well until I try to disable them. Any idea how I can fix this? 

 

 

ACCEPTED SOLUTION

Accepted Solutions

@MO_10216552 ,

 

Change your for statement to:

 

for(i=0; i< t.rows.length; i++)

 

Note that it should be "i is LESS THAN" instead of "i is LESS THAN OR EQUAL TO" ... that is where your out of bounds error is originating.

 

Nick

View solution in original post

2 REPLIES 2

@MO_10216552 ,

 

Change your for statement to:

 

for(i=0; i< t.rows.length; i++)

 

Note that it should be "i is LESS THAN" instead of "i is LESS THAN OR EQUAL TO" ... that is where your out of bounds error is originating.

 

Nick

MO_10216552
4-Participant
(To:nmilleson)

thank you!

Announcements


Top Tags