Avatar

Please consider registering
guest

sp_LogInOut Log In sp_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 RSS sp_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: 349
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: 349
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:
11 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 726

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_gallery

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1