DimSrv.close

Syntax

close(dim: PP.Mb.DimSource, callback: Function);

Parameters

dim. A dictionary that must be closed.

callback. Callback procedure.

Description

The close method closes a dictionary.

Example

Executing the example requires an instance of the DimSrv class named dimService (see DimSrv constructor). Add a handler for dictionary closing event:

// Add a handler of the event that occurs on closing a dictionary
dimService.DimClosed.add(
    function() {
        // Output a message about event to the browser console
        console.log("DimClosed event");
    }
);
// Close the dictionary
dimService.close(dim);

As a result dictionary connection is closed, the console displays a message about closing the dictionary:

DimClosed event

See also:

DimSrv