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

change tag

Asked by Doug D
5 years ago.

I'm using scheduler. If I have an event id, and would like to change a few custom tags for that event. How do I do that in Javascript?

Answer posted by Dan Letecky [DayPilot]
5 years ago.

You can find the event using events.find() method:
https://api.daypilot.org/daypilot-scheduler-events-find/

The original data object is accessible as e.data, so the tags can be accessed as e.data.tags.

To reload the event, call events.update():

var e = dp.events.find("123");
e.data.tags.customField = "New Value";
dp.events.update(e);

See also:
https://api.daypilot.org/daypilot-event-data/

Comment posted by Doug D
5 years ago.

Ok thanks

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