blackberry / BB10-WebWorks-Framework

The BB10 WebWorks Framework is packaged within an application BAR file to run on a BB10 device (or simulator)
60 stars 34 forks source link

CalenderComposerCard not capable of creating "All Day" Events #655

Closed splatterb0y closed 11 years ago

splatterb0y commented 11 years ago

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

kwallis commented 11 years ago

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

splatterb0y commented 11 years ago

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.

kwallis commented 11 years ago

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.

bryanhiggins commented 11 years ago

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

splatterb0y commented 11 years ago

@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?

bryanhiggins commented 11 years ago

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

splatterb0y commented 11 years ago

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