blackberry/BB10-WebWorks-Framework

CalenderComposerCard not capable of creating "All Day" Events

splatterb0y opened this issue · 7 comments

As the title says. Setting the Duration to (24*60) does not do the job either.

Hi there. I assume that you are using the invoke framework to invoke the standard system calendar composer card?

Hi @kwallis , you are right:

blackberry.invoke.card.invokeCalendarComposer({
   subject: $("#result-content-titel").text() + " " +  $("#result-content-autor").text() + " erscheint.",
   startTime: new Date(ui.result.datum).toDateString() + " 00:00",
   duration: ((24*60))
});

But the isAllDay-Option which exsists in QML/QT is missing.

Hmmmm, you might have to create a raw invoke command yourself to access it for now.


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

According to the docs, there is no "isAllDay" option for the standard calendar composer card:

https://developer.blackberry.com/native/documentation/bb10/calendar.html

You'll need to create your appointment using blackberry.pim.calendar.createEvent with allDay set to true.

https://developer.blackberry.com/html5/apis/blackberry.pim.calendar.calendarevent.html

@bryanhiggins
Yes there is no documentation but I definitely see a button on the calendar interface.

Will blackberry.pim.calendar.createEvent provide the user with a card to accept or deny the creation of an event?

No, createEvent will not present a card, nor will the native / cascades versions.

WebWorks can only expose what the card itself chooses to provide to the invocation framework. So I'm afraid there is nothing we can do.

I would encourage you to open an issue with the calendar component here:

https://www.blackberry.com/jira

When I use the blackberry.pim.calendar.createEvent it's not possible to delete the event within the calendar application. why?