HieService.close

Syntax

close (hie, callback);

Parameters

hie. Sets hierarchy object.

callback. Sets handler for operation execution end.

Description

The close method closes a hierarchy object.

Example

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.TS.HieService {_Metabase: PP.Mb.Metabase, _UseMbQueueRqts: true, _Events: Object, MetadataChanged: PP.Delegate, MetadataChangeStart: PP.Delegate…}

See also:

HieService