How to create an all day in caldav server ?

101 views
Skip to first unread message

Faison N.P

unread,
Mar 22, 2013, 12:54:02 AM3/22/13
to cald...@googlegroups.com
How to create an VEVENT with all day event flag. 

X-MICROSOFT-CDO-ALLDAYEVENT=TRUE

Roberto Polli

unread,
Mar 22, 2013, 5:55:33 AM3/22/13
to cald...@googlegroups.com
2013/3/22 Faison N.P <faison...@gmail.com>:
> How to create an VEVENT with all day event flag.
>
> X-MICROSOFT-CDO-ALLDAYEVENT=TRUE
Maybe you mean using ":" instead of "="
X-MICROSOFT-CDO-ALLDAYEVENT: TRUE
^^^^ note the ":"

You should add that flag to the VEvent object. VEvent is an ical4j
object, so you should check the ical4j documentation.

Usually it is done via:
1- create a Property
import net.fortuna.ical4j.model.property.XProperty;

myProperty = new XProperty("X-MICROSOFT-CDO-ALLDAYEVENT", "TRUE"))

2- add the property to the event
myVevent.getProperties().add(myProperty)


See src/test/java/org/osaf/caldav4j/scheduling/SchedulePostMethodTest.java

Let me know + Peace,
R.
Reply all
Reply to author
Forward
0 new messages