Print to Console Details of System Objects that Match Filter Criteria

var filter = new Filter();

filter.view = "System1.ManagementView:ManagementView";

filter.designation = "*Simulator Device 903*";

filter.discipline = [new DisciplineFilter(100), new DisciplineFilter(200), new DisciplineFilter(250)];

filter.functionName ='BoilerVariable';

var results = searchSync(filter);

 

if (results== null || results.length == 0) {

    console("No objects found");

    terminate();

}

 

console("Objects count = {0}", results.length);

 

for(var i = 0; i < results.length; i++) {

    var obj = results[i];

    console("\t : {0}, {1}, {2}, {3}, {4}, {5}",obj.attributes.functionName,i, obj, obj.point.systemId, obj.view, obj.name);

}