DA Sample Client Browse issue with 'Has Children' flag|Classic OPC: DA, A&E, HDA, XML-DA, etc.|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
DA Sample Client Browse issue with 'Has Children' flag
Avatar
ken
Member
Members
Forum Posts: 7
Member Since:
02/24/2014
sp_UserOfflineSmall Offline
1
11/07/2021 - 15:55
sp_Permalink sp_Print

It appears that the DA sample client doesn't request items on a branch unless the server sets the 'OPC_BROWSE_HASCHILDREN' bit of the dwFlagValue in the OPCBROWSEELEMENT structure when processing a OPC 3.0 Browse() request. Is this a bug or do I not understand the usage for 'OPC_BROWSE_HASCHILDREN'.

The description says:

If the first bit is set (OPC_BROWSE_HASCHILDREN), then this indicates that the returned element has children and can be used for a subsequent browse.

When my server has a branch with items but no child branches, I have to set the OPC_BROWSE_HASCHILDREN bit or the sample client can't show the items.

Avatar
Randy Armstrong
Admin
Forum Posts: 1451
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
11/07/2021 - 23:59
sp_Permalink sp_Print sp_EditHistory

If your branch has items then it has children and the flag should be set.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 20
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1349
Posts: 4579