Opening ceremony in the calendar

Hello.

I try to invoke the application calendar with event spicified, but he has no chance.

Here is my code:


void MyClass::invokeCalendar(int calendarAccountId, int eventId, QString eventDate)
{
    QVariantMap map;
    map["accountId"] = calendarAccountId; //1 - default
    map["eventId"] = eventId;
    map["start"] = eventDate;    // in form "2012-05-25 11:30:00"
    bool ok;
    QByteArray requestData = bb::PpsObject::encode(map, &ok);
    bb::system::InvokeManager* invokeManager = new bb::system::InvokeManager();
    bb::system::InvokeRequest cardRequest;
    cardRequest.setTarget("sys.pim.calendar");
    // cardRequest.setTarget("sys.pim.calendar.viewer.nav");
    cardRequest.setAction("bb.calendar.VIEW");
    // cardRequest.setAction("bb.calendar.OPEN");
    cardRequest.setData(requestData);
    cardRequest.setMimeType("text/calendar");
    invokeManager->invoke(cardRequest);
}

I also tried a different variants (most comments) - but have no luck either.

Calendar application opens normally but not positioned on an event or date.

I'm doing something wrong?

After intensive tests in part resolved. This code works for me:

void MyClass::invokeCalendar(int calendarAccountId, int eventId, QString eventDate)
{
    bb::system::InvokeManager* invokeManager = new bb::system::InvokeManager();
    bb::system::InvokeRequest cardRequest;
    cardRequest.setTarget("sys.pim.calendar");
    cardRequest.setAction("bb.calendar.VIEW");
    QUrl url;
    url.addQueryItem("accountId", QString::number(calendarAccountId));
    url.addQueryItem("eventId", QString::number(eventId));
    url.addQueryItem("startTime", eventDate); //NOTE (!): in documentation "query name" must be "date" - but it's not work
            //NOTE (!): I'm using "startTime" in format "2012-05-22 13:00:00"
    cardRequest.setData(url.toEncoded());
    cardRequest.setMimeType("text/calendar");
    invokeManager->invoke(cardRequest);
}

Still can't make it work with sys.pim.calendar.viewer.nav example...

Tags: BlackBerry Developers

Similar Questions

  • When the calendar opens again on my iMac it reduces to half, that was when I closed it

    Calendar is the only application that is not open to the same size when I close on my iMac.  Is there a setting that I've tweaked by mistake?

    Peter,

    Quit calendar.

    Then paste this ~/Library text in the Menu Finder > go > go to folder... window and select 'go '. This will open the folder library users.

    Then, open the Preferences folder in the library folder and move the file com.apple.iCal.plist on the desktop.

    Open an outbound/inbound session or restart and open the calendar. Health check.

  • Just upgraded to El Capitan and cannot access the calendar. It opens with a "Shift schedules to the server" message Can only Force Quit

    Just upgraded to El Capitan and cannot access the calendar. It opens with a message 'Moving calendars to the server.

    I cannot access all features and can be closed only by using force quit.

    Please stop calendar and also the application of reminders, runs. Force quit if necessary.

    Back up all data.

    If you synchronize some of your calendars, or reminders with iCloud, then in the iCloud preferences window, uncheck that marked calendars and reminders. You will be prompted to confirm that you want to remove your iCloud calendars and reminders of the computer. They will always be in iCloud. Re-check the boxes.

    If you synchronize agendas or reminders with another network such as Google service, please open the preferences panel Internet accounts. Make a note of the settings for calendar accounts, then delete and recreate.

    Launch schedule and see if there is an improvement.

  • Gmail moves to the calendar after that I open it and continually. This does not work on Opera.

    Gmail almost immediately moves to the calendar. Hit the back button goes back to the normal position and almost immediately moves again to the calendar. This seems to be limited to Firefox because it is not on opera.

    This has happened

    Each time Firefox opened

    Yesterday, is July 7.

    Thank you Melissa - I was able to correct the problem by following the suggestion of disabling the add-on integrated Gmail.
    -Tom

  • Cannot open the calendar

    I used the calendar in the works for several months; recently, when I try to open, I read, 'works cannot find the files needed to open the calendar.  The files may have been lost or changed.  Try to uninstall and reinstall the program' or words to that effect.  I uninstalled and reinstalled, with firewall disabled, but still the same message.  I also tried "System Restore" but this hasnever worked on my machine - HP Pavillion. I don't know which files may be missing, or why they disappeared, but all my appointments are in the calendar.  XP Media center, service Pack3 installed running.  Norton Utilities and Norton network security.  The problem of the timing could coincide with first "registry cleanup" with Norton - not sure.  Please help, I don't know when my grandchildren next birthday is or if I have a future doctor's appointments.

    If your computer has Norton Antivirus or Norton Internet Security, you must disable Norton product Tamper Protection before you run the system restore.

    If this does not help, I recommend you post your question in the forum PhotoDraw, FrontPage, and works .

    Boulder computer Maven
    Most Microsoft Valuable Professional

  • The calendar on my bar side Gadgets does not always. What causes this and how can I open it?

    The calendar on my bar side Gadgets does not always.  What causes this and how can I open it?

    Hi SusanMagill,

    1. what happens when you open the calendar gadget? You receive error messages?

    2. are you facing problems with the Windows Calendar gadget?

    This problem occurs because of an error in the Windows Sidebar calendar gadget.

    Step 1:

    You can read the following article and see if it helps:

    How to restore the sidebar of Windows?

    Step 2:

    Try to rename settings.ini and check.

    a. make sure that the gadgets are completely closed (check in the Manager of tasks for sidebar.exe).

    b. open the browser, go to %localappdata%\microsoft\Windows Sidebar.

    c. save the file settings.ini in somewhere else.

    d. Rename settings.ini settings.ini.bak (or something else), it will regenerate the file. You need to add your gadgets back.

    e. open gadgets, it must be resolved.

    For more information, you can also consult the following article:

    Customize Windows Sidebar

    Hope this information is useful.

  • could not read the calendar. Outlook cannot open this item. The element may be damaged.

    I am running Vista, MS Office 2007, and yesterday when I opened everything except Outlook calendar was very good. I rebooted a few times but nothing helped.  Any ideas?

    See if these pages help you:

    How to find and run the Inbox Repair utility in Outlook
    To repair a damaged personal folders PST file

    HAL
    --
    HAL Hostetler, TCE
    Engineer senior/UPDATED--MS MVP-Print/Imaging - WA7BGX
    www.kvoa.com - KVOA television, Tucson, AZ.
    Live Hot Licks - www.badnewsbluesband.com

  • How to open the url of the calendar app like trip Blackberry?

    I m like Blackberry Travel application development. In Blackberry Travel, add when a flight, he adds in the calendar. In this case 'Notes', which appears a url to load the application and see the flight.

    I need to do the same thing, but only the behavior of app loading. So, I have two questions:

    • How to open the app to the url? I have seen this but, when I use the HttpFilterDemo sample, when I click in the url www.rim.com I typed in a calendar event, run never setRequestProperty method.

    • How can I watch 'open with Blackberry' when I click on the URL?

    Thank you very much.

    It s done!

    A perfect example in the documentation for the blackberry developer

  • Is there an API to get the date on the calendar open based on production schedule

    Hello

    I have a need to determine if promised PO date is open in Oracle manufacturing calendar. Is there a public API, or private, can I use for this? We are on Oracle EBS R12.

    Thanks for your help.

    AB

    I found the name of the program. It's mrp_calendar.next_work_day.

    Thank you.

    AB

  • I got the calendar module, then all of a sudden he disappeared? I can't search controls to restore. I didn't uninstall it, he just disappeared when I open Thunderbird.

    Then, one of my contextual reminders hopped up and calendar controls appeared in the upper right corner, where they have always been before the accident. It was lucky that I had a reminder pop up because it seemed to give me access to the calendar add-on. Without popup reminder, I don't know what I would have done it. No idea what happened and if it should happen again what can I do about it? Thank you.

    I've never seen the tabs for the calendar vanish as you describe. Hope it was just a small problem of passage.

    You should still be able to get to your calendar via the menu, the button "hamburger" with three lines, or the regular menu, which if it is not visible, should appear when you press the < alt > key.

  • I've upgraded to Firefox 12.0. Now, my Gmail calendar does not open in edit mode. I returned to explore, and the calendar opens there. What is the cure?

    I've upgraded to Firefox 12.0. Now, when I try to reach my Gmail Calendar, he only returned in read-only mode. Temporarily, I went to explore. the calendar appears when editing without problem. What should be my next steps to solve this problem?

    Try to clear the cache of the browser and possibly site cookies, in questions to troubleshoot Firefox in Safe Mode test failure

  • I can add the birthday to the calendar without them being in contacts?

    How can I add birthday to the calendar without them being in contacts?

    Exactly as you would for any other event. Open the app calendar tap the '+' at the top right. Create an event that is all day and repeats every year.

  • How to set a default calendar for new events in the calendar on Macbook Pro

    Although I have studied this issue in forums, I'm still without resolution. New default event for the calendar of 'Calendar' in the game on my Mac of calendars even when it is initially unchecked and hidden in the calendars list.

    I don't see a place in the calendar preferences or in system preferences > iCloud to make changes. I would like new events, write in the default calendar for "Calendar" calendar in my iCloud.com account.

    Any thoughts?

    Well, here's the scoop:

    To set the default calendar, open the calendar, choose calendar > Preferences, and then click general.

    Default calendar

    The calendar where new events are added by default. If you choose "Selected calendar", then the calendar highlight in the calendar list is the default calendar.

  • whenever I have an ical event he opens Outlook instead of calendar on my mac

    Whenever I receive an ical event and open it, it opens Outlook (which I never use) instead of the calendar on my mac, why?

    Calendar/preferences/general - what is set as default calendar?

  • Cannot add appointments to the calendar

    I used OS10.6.8 until recently, but the new Macbook Pro has OS 10.11.6

    I tried to use the calendar in ElCaptain for the first time, but failed to add all appointments.

    When I tried to make a message entry; "You can change events in the calendar 'Found in the Mail'."

    Only the calendar administrator and delegates with permission can make changes to the read-only calendars. To make changes to the calendar, contact the calendar administrator.

    I found the following tips, but that did not work:

    • Select the item, and then choose file > get info, or press on command I.
    • Click the triangle next to sharing and permissions to expand the section.
    • Click on the drop down menu next to your user name to view the settings for permissions.
    • If you are not signed in as an administrator, you may need to click the lock icon and enter an administrator name and password.
    • Change the permissions to read & write or "read only".

    I selected calendar in applications and followed the instructions above.

    Everyone is set to "Custom".

    System has been on "read and write".

    Wheel has been set to "read only".

    Everyone has been set to "" read-only ".

    With the "padlock icon" open I tried to change the entries:

    By system logic should have allowed me to make entries in the calendar. However, I tried to affect the other classifications "read and write.

    The result was a warning message: "the operation cannot be performed because you don't have the necessary authorization."

    I check accounts and not use their calendar, so I am at a loss.

    My previous systems never had problems with calendar, or change permissions.

    Any ideas would be welcome.

    Hi memory,

    Congratulations on the new MacBook Pro! I appreciate that you try add calendar events, but to send a message that you cannot write to this calendar. I know it's important to keep track of your events, so I am happy to help clarify this.

    Due to the error "you cannot change events in the calendar 'Found in the Mail'." he said that you currently selected found in Mail schedule, which does not allow to write for her because these events are created only from your Mail.

    To change the calendar you are trying to create these events in, first, click on the Calendar button in the upper left corner of the window, and then select the new calendar.

    If you do not have other calendars or need to create a new one, check out the following steps:

    The basics of the Mac: calendar keeps your appointments - Apple Support

    Create new calendars

    By default, OS X includes two calendars in Calendar - work and home. If you want to create a new calendar, choose new calendar in the menu file . In the text box, type a name for your calendar. For example, if you have children, you can create a separate calendar for each of them follow their schedules. You can see and control how your calendars will appear by clicking the calendar button.

    To change the color or the name of a calendar, select it in the calendars list, and then choose the command Edition > read the information. To remove a calendar and all its manifestations, click or control the calendar name, and then select delete in the context menu that appears.

    Once you have selected a different calendar, you can add events as expected:

    Calendar (El Capitan): Add, edit, or delete events

    Thank you for using communities of Apple Support, cheers!

Maybe you are looking for

  • You can watch Apple TV during the download of a movie?

    We bought a rental movie and 'time remaining' jump around one hour and 13 minutes to 9 hours, 47 minutes and several places in between. We had no idea that we could simply not to see the movie tonight!  We gave up that, well, we wonder, the download

  • HP mini 1000 bios reset password?

    I have a HP Mini 1000. I can't sent the password. It says fatal error... System Code is CNU92128YU. Can you help me please?

  • I can't change the wallpaper on my desktop

    original title: I can't change the wallpaper on my desktop - it is not in the properties.  If I select a photo and click on set as background, nothing happens.  Any suggestions? I'm changing the wallpaper on my computer.  When I select a photo and cl

  • Help! JPEG files can be reformatted after registration?

    I downloaded my photos from my digital camera, and they are saved in a file on my computer. Whenever I try to open one of the photos in this file, a message appears: "the Image is too large (too many bytes). I changed a parameter before you save the

  • For Windows vista: Startup Repair couln t repair problem

    I am trying to repair a laptop from a friend, but I'm new to this kind of thing and it's a problem starting. I don't think I have a hardware problem because I have the video but I can't load the operating system and I ranstartup repair, but he could