For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvote
Accepted
15 0 0 1

hasPermissionData()

Hi,


Inside OnRefreshMsge() and OnUpdateMsg() I check if item has permission data by calling


message.hasPermissionData().


For the same item hasPermissionData() gives me TRUE if i'm inside a Refresh Message and FALSE if i'm inside an Update Message.


Is it normal? I'm struggling to understand why?


Thank you

elektronema-apirrt
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi @yolufudo ,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,
AHS

1 Answer

· Write an Answer
Upvote
Accepted
22k 58 14 21

Hi @yolufudo,

Yes, this is normal. The permission data is an optional field of Refresh and Update messages. Once this data is provided to an application in the Refresh message, there is no need to provide it again in update message, if the permissionable entity (PE) hasn't changed. This is very similar to how update messages only carry the fields which have changed since the last Refresh or Update.

Here us the snippet from the EMA documentation:

1664284966953.png



1664284966953.png (5.5 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.