Developing Hierarchical Browsing using Collector Toolkit
The following callback is used to develop hierarchical browsing using the Collector Toolkit:
ihCollectorToolkitGetTagsHierarchical(wchar_t* BrowsePosition, wchar_t* NodeFilter,
ihTKHierarchicalBrowseResponse* Response);
The following are the parameters in this callback:
Name | Description |
---|---|
BrowsePosition | The place where the current node is selected. |
NodeFilter | The delimiter using which hierarchical node differentiation is made |
Response structure | Contains the number of nodes/leaves for a particular node. |
To define the hierarchical tree format as illustrated in the Add Multiple Tags from Collector figure above, Historian provides the following information in three responses, provided as a sample here. Use the information in the following three responses to browse the tags and add the required tags.
As a first response Historian returns:
ihInterfaceGetTagsHierarchical()
The following are the parameter values:
BrowsePosition "ihHierarchicalBrOwSeRoOt"
NodeFilter: "" (By default, this uses a “/”)
Response = NULL
NodeCount 1 int
NodeNames "_Status" wchar_t *
FullNodeNames "/_Status" wchar_t *
ihInterfaceGetTags()
BrowsePosition “ihHierarchicalBrOwSeRoOt” wchar_t*
Second response:
ihInterfaceGetTagsHierarchical()
BrowsePosition "/_Status"
NodeNames "DA_Server"
FullNodeNames "/_Status/DA_Server"
ihInterfaceGetTags()
BrowsePosition “/_Status”
Third response:
ihInterfaceGetTagsHierarchical()
BrowsePosition "/_Status/DA_Server"
BrowsePosition "/_Status/DA_Server"