Please consider registering

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
Programmatically Changing Attributes of Generated Server Nodes
September 27, 2022
19:16, EEST
Forum Posts: 124
Member Since:
February 21, 2014
sp_UserOfflineSmall Offline

Hi there,

I built a server (SDK 4.8.0) with some nodes being instantiated from generated code. If I try to programmatically change any attributes other than the value attribute in response to some business logic, the attributes are not updated “to the outside”, i.e. connected clients (UaExpert, Prosys Browser) do not reflect the attribute changes, although reading the attributes back from the same code that has set the attributes gives the correct values.

Use case: in response to a method call (callback in generated code), that callback shall change the UserAccessLevel and Executable attributes of some (generated) variables and methods, respectively.

I also went through changing the attributes using the nodeManager – with the same result.

Any hint will be much appreciated.


September 28, 2022
10:38, EEST
Bjarne Boström
Forum Posts: 910
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline


The UserXXX Attributes must be handled in a reactive manner via (based on ServiceContext in) IoManagerListener(s)on the NodeManager.getIoManager() on the namespaces you created the instances to. IMPORTANT, here I mean methods onGetUserAccessLevel, onGetUserExecutable and onGetUserWriteMask, it wont work via the Attribute directly.

It is sort of a mistake that they are in the UaNode API, though they do make sense on the client side as there the node represents the single user. And probably it would be best if it would work via the attribute-returning listener methods, but this design is very old.

Any other Attribute should be ok and visible if you set it in the server-side UaNodes.

September 28, 2022
16:07, EEST
Forum Posts: 124
Member Since:
February 21, 2014
sp_UserOfflineSmall Offline

Many thanks for your suggestion.
Using the IOManagerListener (or IOManagerAdapter, respectively) is actually much easier than trying to use the UaNode accessors.


Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
8 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 124

pramanj: 86

ibrahim: 74

rocket science: 71

kapsl: 57

Francesco Zambon: 54

Sabari: 51

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 719

Moderators: 15

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1379

Posts: 5889

Newest Members:

Tayloromj, alexcarmack2708, HomeRenoToold, luismartin, maryloucline6, ezequieludz, roseclaborn, muoifairfield04, hilda50861, ramona90f00573

Moderators: Jouni Aro: 970, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 910, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 25, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 271, Lusetti: 0

Administrators: admin: 1