1

Update Service Interval using Javascript API.

(28/05/2019 02:25:34 отредактировано orlo_26)

Тема: Update Service Interval using Javascript API.

Hello everyone!

First, thanks for taking some time to read this topic.

Basically What I need is to Update a Service Interval using Javascript API. BUT there is not documentation about this... Has any of you tried to do this before?

I think that the method "updateServiceInterval" exists... But Im not sure how/what parameters send.

Example:

 var servs = unit.updateServiceInterval(params);

I tried to use the order you can see on the Remote API, but it is not working.

Remote API doc: https://sdk.wialon.com/wiki/en/local/re … e_interval

Even, if you have the documentation about how to do this on Javascript... It will be awesome!

Thanks in advice!

2

Update Service Interval using Javascript API.

Re: Update Service Interval using Javascript API.

orlo_26

Fisrt of all you sould load th library "unitServiceIntervals",

sess=wialon.core.Session.getInstance();
sess.loadLibrary("unitServiceIntervals");

After that from a unit object you should have 2 new methods, createServiceInterval(params,callback) and updateServiceInterval(params,callback,action).

params and action should be as descibred in the link you posted.