Avatar
Please consider registering
guest
sp_LogInOut Log Insp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSSsp_TopicIcon
Get a node with it sub folder contents
June 29, 2021
11:06, EEST
Avatar
Sabari
Member
Members
Forum Posts: 62
Member Since:
June 21, 2021
sp_UserOfflineSmall Offline

Hello,

Is there a way provided by the SDK to get a node with the contents of its folders ?

Thanks

June 29, 2021
11:19, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 353
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

Could you clarify what you mean? Is the Node a Folder and you want to get the contents of that Folder or is that Node contained in a Folder and you want to get the rest of the contents of that Folder?

June 29, 2021
12:21, EEST
Avatar
Sabari
Member
Members
Forum Posts: 62
Member Since:
June 21, 2021
sp_UserOfflineSmall Offline

Hello,

The folder is contained in a node, and I want when I retrieve this node to have the contents of this folder at the same time.

June 29, 2021
12:52, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 353
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

You can get the Node and all of its descendants (the Nodes contained by the Node directly and via its children) by using uaClient.getAddressSpace().getNode(NodeId nodeId, Class clazz) where uaClient is an instance of UaClient class, nodeId is the NodeId of the Node and clazz is the class of the Node.

Specifying the class is optional, but doing so will make it easier to process the Node. If no class is specified, the method will return an instance of UaNode and you will most likely need to cast it to a proper class yourself.

June 29, 2021
17:22, EEST
Avatar
Sabari
Member
Members
Forum Posts: 62
Member Since:
June 21, 2021
sp_UserOfflineSmall Offline

Hello,

Thanks you for your reply ! It helped me to solve my issue.

Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online: Manfred Hausmann
Guest(s) 29
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 90
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 733
Moderators: 8
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1545
Posts: 6516
Newest Members:
ptdenriqueta, basilpullman, Richardmip, mood edibles, LouieWreve, daniellabdx, janessan21, sammiebeak359, gena7127517, thorstenbouldin
Moderators: Jouni Aro: 1029, Pyry: 1, Petri: 1, Bjarne Boström: 1045, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0, Elias: 0
Administrators: admin: 1