Skip to content

getConfiguration

Updated pdexter 2022-10-22

(server-side function)

Function to get configuration entries, either from the configuration document in the database, or from Config.js in the file system for fieldtec-web.

(nb - scope of fetchable configuration may have changed since this document)

Syntax

value = ft3.getConfiguration(key);

Part Description
value the variable to receive the value
key the key of the configuration item to fetch

Example


var ft3 = ntf.scope;

// Get configuration from main configuration document
var templateId = ft3.getConfiguration("clientConfiguration.ruleSetIncludeTemplateId");

ntf.logger.info('Env = ' + env1 );
ntf.logger.info('RSInc TID = ' + templateId);