search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

how-to-read-anr-write-tags (Continued)...

Asked by mrplatypus
8 years ago.

If referring to the following posting:

https://forums.daypilot.org/Topic.aspx/2243/how-to-read-anr-write-tags

You say that in order to refer to the tags by name, you should use:

e.data.tag["key"]

I have found that with version I have, version 8.1.3469.1, the author of the post is correct, to return the datatagvalue by name the software wants:

e.tag("tagname")
Answer posted by Dan Letecky [DayPilot]
8 years ago.

Thanks for pointing this out.

The ASP.NET version stores the tags in a slightly different way. Using e.tag("name") is the universal way to read the tag values.

The JavaScript version requires the events to be stored like this:

e.data.tags["key"] = value;

or simply

e.data.tags.key = value;

Tags stored this way will be readable using e.tag("key").

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.