close (hie, callback);
hie. Sets hierarchy object.
callback. Sets handler for operation execution end.
The close method closes a hierarchy object.
To execute the example, create a service for working with time series (see HieService.getChildEls) and add the following code to the handler that processes document opening:
console.log("Close hierarchy object"); hie = res.Args.Hier; var klose = hieSrv.close(hie, PP.Delegate(onClose, this)); console.log(klose); function onClose(sender, res) { console.log(sender); console.log(res); } var els = hieSrv.close(); console.log(els);
After executing the example the hierarchy object closes and the browser console displays the following message:
Close hierarchy object
PP.Mb.HieService {_Metabase: PP.Mb.Metabase, _UseMbQueueRqts: true, _Events: Object, MetadataChanged: PP.Delegate, MetadataChangeStart: PP.Delegate…}
See also: