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

[?] Update Event client-site

Asked by Thomas Lee
5 years ago.

Hi Daypilot team,
I could find the Event based on id by using dp.events.find(id);
After that, I would like to change `e.client.moveEnabled = false; `
I tried to use ` dp.events.update(e).queue();` or ` dp.update();` but nothing happens.

Is there any wrong in my code?
Could you help me?
Thank in advances,
Thomas Lee

Answer posted by Thomas Lee
5 years ago.

After read some sample code, I know how to do.
Instead of `e.client.moveEnabled = false; ` , it should be ` e.data.moveDisabled = false;`

and after that, use ` dp.events.update(e).queue();` to update

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