System.tag.browse folder Parameters is ignored

@mgross, @PGriffith
In Ignition 8.0.5-nightly, when I browse an UDT instance with parameters, the folder Parameters is ignored. It would be very usefull to be abe to browse this folder

print system.tag.browse("[default]TVG/BIL/DAT01/01001")

BrowseResults [results=[{u’fullPath’: [default]TVG/BIL/DAT01/01001/repereEqt, u’hasChildren’: False, u’dataType’: String, u’name’: u’repereEqt’, u’tagType’: AtomicTag, u’attributes’: , u’valueSource’: u’memory’, u’value’: [DAT9011, Good, Tue Sep 24 17:33:25 CEST 2019 (1569339205312)]}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/TA, u’hasChildren’: True, u’name’: u’TA’, u’tagType’: Folder}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/TC, u’hasChildren’: True, u’name’: u’TC’, u’tagType’: Folder}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/TS, u’hasChildren’: True, u’name’: u’TS’, u’tagType’: Folder}], totalAvailableResults=4, continuationPoint=null, resultQuality=Good]

I obtain the same result with the SDK when I use:

BrowseFilter browseFilter = new BrowseFilter();
browseFilter.setRecursive(false);
String[] allowedType = {"UdtInstance", "AtomicTag", "Folder","Property"};
browseFilter.setAllowedTypes(allowedType);

If I directly browse the folder, it’s ok…

print system.tag.browse("[default]TVG/BIL/DAT01/01001/Parameters")

BrowseResults [results=[{u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/adresseTR, u’hasChildren’: False, u’name’: u’adresseTR’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/template, u’hasChildren’: False, u’name’: u’template’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/scanExpr, u’hasChildren’: False, u’name’: u’scanExpr’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/opcDebut, u’hasChildren’: False, u’name’: u’opcDebut’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/scanOpc, u’hasChildren’: False, u’name’: u’scanOpc’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/adresseTS, u’hasChildren’: False, u’name’: u’adresseTS’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/adresseTM, u’hasChildren’: False, u’name’: u’adresseTM’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/opcServeur, u’hasChildren’: False, u’name’: u’opcServeur’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/qualityPath, u’hasChildren’: False, u’name’: u’qualityPath’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/numStation, u’hasChildren’: False, u’name’: u’numStation’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/adresseTA, u’hasChildren’: False, u’name’: u’adresseTA’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/tagPathComParent, u’hasChildren’: False, u’name’: u’tagPathComParent’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/adresseTC, u’hasChildren’: False, u’name’: u’adresseTC’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/repereEqt, u’hasChildren’: False, u’name’: u’repereEqt’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/designationEqt, u’hasChildren’: False, u’name’: u’designationEqt’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/numSSR, u’hasChildren’: False, u’name’: u’numSSR’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/opcDevice, u’hasChildren’: False, u’name’: u’opcDevice’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/numQuai, u’hasChildren’: False, u’name’: u’numQuai’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/vue2, u’hasChildren’: False, u’name’: u’vue2’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/vue1, u’hasChildren’: False, u’name’: u’vue1’, u’tagType’: Property}, {u’fullPath’: [default]TVG/BIL/DAT01/01001/Parameters/scanMem, u’hasChildren’: False, u’name’: u’scanMem’, u’tagType’: Property}], totalAvailableResults=21, continuationPoint=null, resultQuality=Good]

As a workaround, for Node of type UdtInstance, I add a browse to "my Parent Node path/Parameters"
is it the intended behaviour or a bug in the system.tag.browse function ?

I believe it is actually intentional here. Behind the scenes, there are a number of places in the code that display udt tags in a tree, and we don’t want to display the parameters in those.

1 Like

Ok thanks for the confirmation