History Read Node

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
Jubish
Sr. Member
Sr. Member
Posts: 12
Joined: 22 Dec 2014, 10:39

History Read Node

Post by Jubish »

I am implementing the History Read functionality. I have created a node which has the history details. The history Data is read from the database. The history read works fine.

But the Node which I have created for should show the latest value in the Table. The Access level I had given was CurrentReadOrWrite which shows the latest value in the UA Expert. After implementing the History Read I had to change the Access level to HistoryRead or HistoryReadORWrite. Due to this I am not able to see the Latest Value (In UA Expert- Data access View)

How to get both access leveles ?

cacamille3
Hero Member
Hero Member
Posts: 73
Joined: 15 Feb 2012, 21:43

Re: History Read Node

Post by cacamille3 »

Instead of doing

Code: Select all

variable.AccessLevel = AccessLevels.CurrentReadOrWrite;
or

Code: Select all

variable.AccessLevel = AccessLevels.HistoryReadOrWrite;
do:

Code: Select all

variable.AccessLevel = (AccessLevels.CurrentReadOrWrite | AccessLevels.HistoryReadOrWrite);
or

Code: Select all

variable.AccessLevel = AccessLevels.CurrentReadOrWrite; 
variable.AccessLevel |= AccessLevels.HistoryReadOrWrite;
when you set the AccessLevel you want for the Node.

Jubish
Sr. Member
Sr. Member
Posts: 12
Joined: 22 Dec 2014, 10:39

Re: History Read Node

Post by Jubish »

Thanks a lot. It worked :)

Post Reply