Problem of. location() calendar event

I use the example code for calendar as base point and try to make changes. I'm trying to get the location to display on the screen.

I changed the QML to

                ListView {
                    dataModel: calendar.model

                    listItemComponents: ListItemComponent {
                        type: "item"

                        StandardListItem {
                            title: ListItemData.location
                            description: qsTr ("%1 - %2").arg(ListItemData.startTime).arg(ListItemData.endTime)
                        }
                    }

and I added the location of the template.

void Calendar::filterEvents()
{
    // Setup the search parameters with time range as specified by filter criterion
    EventSearchParameters searchParameters;
    searchParameters.setStart(m_searchStartTime);
    searchParameters.setEnd(m_searchEndTime);
    searchParameters.setDetails(DetailLevel::Weekly);

    const QList events = m_calendarService->events(searchParameters);

    // Clear the old events information from the model
    m_model->clear();

    // Iterate over the list of events
    foreach (const CalendarEvent &event, events) {
        // Copy the data into a model entry
        QVariantMap entry;
        entry["eventId"] = event.id();
        entry["accountId"] = event.accountId();
        entry["subject"] = event.subject();
        entry["location"] = event.location();
        entry["startTime"] = event.startTime().toString(Qt::DefaultLocaleShortDate);
        entry["endTime"] = event.endTime().toString(Qt::DefaultLocaleShortDate);

        // Add the entry to the model
        m_model->insert(entry);
    }
}

But nothing is ever displayed. Yet when I break into the event, there is a location. What Miss me?

Resolved: The EventSearchParameters has a .setDetails flag. The flag that you use dictact what information you get. Just put the correct DetailLevel.

https://developer.BlackBerry.com/Cascades/reference/bb__pim__calendar__detaillevel.html

Tags: BlackBerry Developers

Similar Questions

  • Problem getting Exchange pre calendar events

    I have trouble getting my calendar exchange to synchronize events is on my pre.  My e-mail and contacts are excellent, but calendar shows only one of its events on my phone (I have a lot more).   I have my exchange calendar as my first and I have uninstalled and reinstalled everything (including deleting and redo my palm profile). Also, if I put something in my pre it syncs with exchange, and I see both in Outlook and Entourage.  Dose - anyone have an idea why the pre will not take the exchange server event?

    I'm not using palm desktop

    Hope I posted in the right place

    Hi, I have we had the same problem with three Palm Pre phones, they are all connected to Exchange server and messaging and contacts sync properly but calendar does not. After nearly two hours, I was able to make it work by suite: calendar Outlook Export to PST. Delete all calendar entries (to remove the old you need to change the current view to "by category", then you can select all calendar events and delete them) remove Exchange Palm preset-Create account exchange on Palm and sync everything again. Test by creating new meeting on Outlook and Pre.Once who succeeds then matter the entire PST calendar to calendar Exchange. We were able to set all three phones Palm Pre calendar. Now it is sync with Exchange.One user was using Entourage, so I download its calendar to outlook from windows machine and carried out the same task made me know if you have any other questions. Thank you Igor www.vncsolutions.com

  • iOS problem 10 Exchange calendar sync

    iOS 10 has introduced a bug that causes a problem with Exchange Calendar synchronization. I use an iPhone 5 and an Air iPad with iOS 10.0.2 on both. My employer provides a shared with Office 365 Exchange calendar. I use Outlook 2013 on a Windows 7 laptop. Since I upgraded my iPhone & iPad iOS 10 I met a problem with syncing my calendar. More specifically, when I delete a single instance of a recurring event from my iPhone or iPad, change syncs not on the server and do not appear on my other devices. There is no problem if I remove Outlook on my laptop. I use recurring reminders throughout the day as "to-do's" so not being is not able to remove them from the device is a problem for me.

    Based on something I saw in another form, I tried disabling the button "Events found in Apps" in the settings on my iPhone and iPad and then deactivation and reactivation of the Exchange Calendar synchronization. This has not solved the problem.

    Is there a fix or a workaround for this problem? If not, does anyone know how I can report it to Apple on the off chance they might care enough to solve the problem?

    I have exactly the same problem. Items on my exchange calendar are endangered on my iPhone which is a major issue since I use my phone as my reminder of the main calendar to be in the right place at the right time. This is a serious problem for me. I tried to delete and add the calendar back, putting my phone on and off, nothing works. Now I have even less showing appointments, it is as if he deleted all. I am extremely frustrated.

  • Calendar events shows is not in the center of Notifications

    I have an iPhone running on iOS 9.3.5 5s

    I have problems with my notification Center, events calendar, weather summary, view today does not show in the notification Center.

    PS All widgets are activated from the notification Center.

    Hello goodguy17,

    Thank you for using communities of Apple Support. It is my understanding from your calendar events and other widgets are not appearing in the Notification Center on your iPhone. The Notification Center keeps me abreast of all my appointments and important updates, I can understand your concern. I want to help get this resolved with you.

    First of all, I recommend you restart your iPhone. A simple reboot can solve many unexpected behaviours. Follow the steps below to restart if necessary.

    1. Press and hold the sleep/wake button until the Red slider appears.
    2. Drag the slider to turn off your device completely off.
    3. Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo.

    Restart your iPhone, iPad or iPod touch

    If the problem persists, reset all the settings would be the next option. It takes all the settings back to default, including: Wi - Fi networks and passwords, alerts, notifications, brightness, wallpaper and sounds. Even if no content is lost with this step, it is always a good idea to back up your content first. If you need help with the backup using the link below.

    The backup of your iPhone, iPad and iPod touch

    Once you have argued successfully until you can reset all settings by going to settings > general > reset > reset all settings.

    Have a great day!

  • We have two iPhones, two iPads, two MacBooks. On each calendar events are synchronized via iCloud, except the inscriptions on the iPhone 6 +. They don't publish to other devices if the phone receives entries from all of the other devices. Help?

    We have two iPhones, two iPads, two MacBooks. On all the calendar events synchronize correctly via iCloud except the inscriptions on the iPhone 6 +. They don't publish to other devices even if the phone receives entries from all of the other devices. All the settings on the iPhone 6 + match those on other devices. All iOS and OS 10 software is up-to-date. Anyone have any ideas on what could be the problem?

    Hi there, therex!

    It seems that you have done your inquiry very well and it seems you have reduced to the iPhone 6 Plus. But, since you need see events sent from the phone on all your devices, I'll be happy to help you.

    Archive or make Copies of your Calendar (s) -as you work with live data, be sure to not skip this step to protect the information already there.

    Get help using iCloud calendars - test all the steps, but it has been my experience that I forgot to put this particular calendar as my default calendar.

    Thank you for using communities of Apple Support and have a great day!

  • Calendar events added on iPhone do not appear in Outlook - 365-Exchange Office

    I have had this problem since I use iOS 9.0 beta and I am currently on the 9.3.2 release.

    About 75% of the time I add a calendar event to my calendar to Exchange Office 365 on my iPhone, which is my calendar by default, they appear on my phone but they never appear in Outlook.  25% of the time they appear in Outlook.

    Conversely, if I add an event calendar in Outlook, they appear on my phone 100% of the time.

    My calendar is blue.  The first picture is my iPhone and the second is Outlook - notice «Go to Bagby...» "and 'go to Kaplan...." "appears on my phone, but not in Outlook:

    However, if I move these events on my iPhone to one of my employees schedules (designated in yellow/green/orange), they appear on their calendars on my phone and Outlook.  If I THEN move them back to MY calendar on the iPhone, they finally appear in my Outlook:

    I tried all kinds of things to solve this problem and am at a loss:

    • New installation of iOS of 9.0 to 9.3.2
    • Deletion of accounts Exchange and re - add (I have 5 Exchange accounts on my iPhone)

    I don't know what else to do.  I have no idea why create a new event would not push the event by Exchange Server to day Outlook, but the passage of the event to another calendar, and made it back.  I reported this problem in version beta, but it continues in the final versions.

    Any help would be appreciated.

    This is something known; my understanding is that MS is working on it.

    You could try the Outlook application. So far, I have seen no problem using it.

  • Bug: Repeating Google calendar events appear on bad days

    I created a Google calendar event that repeats 'Everyday', two daily, from 18:00 to 18:30. It shows in my Google Calendar, but PRE calendar puts on bad days. For example, the repetitive event that should be scheduled for today shows up tomorrow (offset + 1 day).

    I tried to turn off-grid time zones, but the bug remains.

    Any help would be greatly appreciated. If it is a bug, how can I submit it to Palm?

    Thank you!

    webOS 1.4 fixed these problems.

  • Windows Live Mail is hung «Update all calendar events»

    uninstall the hotmail - Windows Live Mail calendar hangs «Update all calendar events»

    Windows Live Mail is hung «Update all calendar events»  I have been directed to the forum relevant but didn't find any solution.  I can't delete my calendar, so the only remedy I can think of is to uninstall the entire calendar functionality but can find no way to do this.  Or can I roll back to an earlier version of Windows Live Mail with no functionality of calrndar?

    Hello

    Given that the problem is related to hotmail, I suggest you to post the question in the forums and check them off below if it helps:
    http://windowslivehelp.com/solutions.aspx?ProductID=1

    It will be useful.

  • Passport never blackBerry calendar events appear, but are still there, just hidden soomehow

    A new problem has arisen and that's weird.
    Calendar events I add never appear suddenly.
    Before, I would get a green dot on a date indicating a meeting or something has been fixed. No more.
    If I put an event and save it, no green dot.
    If I go on the events button immediately after recording one, it says that my schedule is free.
    If I do a search for the event, I just saved, nothing comes up.
    But:
    I always get the notice on the screen to remind me of the event (it's usually 24 hours before) and my alarm disappears an hour beforehand everything as it has been saved.
    It is a problem.
    I can't check the events that I saved and if necessary change them or know they are coming, because nothing is displayed. It also means that will not be aware if I put an event that is in conflict with one another. I know for sure because when the problem I put the appointment even six times and am not once informed that it conflicted with a recorded event (which has been moved several times before) ultimately I guessed (correctly) was actually saved, appearing simply do not. But this must be corrected.
    It's new. He has not done this a few weeks ago, and I did not anything unusual with my blackberry, unless he updated the operating system w/o my knowledge and it has messed up. I can't be the only one to go through this, but what suits him!
    Crazy problem

    Your default value has been changed. Go to settings from the home screen, and then go to accounts. On the bottom bar is an icon with a check mark between two boxes. Tap on that and go to the drop-down list where it is said calendar. Change the setting of your e-mail account.

  • Listen to calendar events?

    Hello

    It is possible to listen to calendar events, for example: If a calendar event has occurred, check the location of the event (for example, the location is "myAPP:LOC") then to note my request and do an action... it's possible? and if possible how?

    My apologies, you are right, that the listener is only for the management of events, not triggering events.  I don't know if there is a listener for it.

  • Copy / paste between calendar events does not

    Hello

    I do an event in one day, copy the text (right click and context menu use) and when I stick to another event in another day that shows nothing at all.

    Hello Manuel_1975,

    Thank you for the question!

    I'm sorry to know that have problems you with the calendar app. As I understand it, you can't stick an event to another day.

    I need to ask you some questions to help you best.

    1. do you get an error message when you try to paste the event for another day?

    2. were there any changes (hardware or software) to the computer before the show?

    Method 1: Run the troubleshooter and check

    This utility automatically corrects some problems that may prevent your running applications, including the suboptimal screen resolution and security or incorrect account settings.

    http://download.Microsoft.com/download/F/2/4/F24D0C03-4181-4E5B-A23B-5C3A6B5974E3/apps.diagcab

    Method 2: Uninstall and reinstall the application calendar and check.

    a: click with the right button on the Calendar , and then click Uninstall .
    b
    : then click on the Windows key + Q to open the search box.
    c: then click on store and then type Mail, calendar, people and mail , press ENTER.
    d: click install.

    Important:-uninstall 'Calendar ' app includes app 'people, mail and messaging' inside

    Answer to us if you are having problems with the calendar, or any other matter of Windows, and I'd be happy to help you again and try to correct the problem as soon as possible.

    Good day!


    Hope this information helps.

  • I have a problem with the calendar missing in when I brought my production files.

    I have a problem with the calendar missing in when I brought my production files.

    Hi, I brought my files on production server by dumping my production test folder. I brought my whole file it.

    This is a calendar of java script.

    In the test server, it works fine.

    The calendar written in java script is here. But when I managed to put in production the calendar disappeared.

    I'm still new to this, infact it's a fixed quick. I got the parts together.


    Advice on how I can get it from test to production the same way running server.

    I appreciate your help.
    Thank you

    Seems to get more acquainted with how ColdFusion is installed on your production system. You might find web root under a directory like/inetpub/wwwroot/and are usually directly above where you ColdFusion templates are located. Can't speculate as to what 'reader' it would be, as you didn't say if you're on UNIX, Windows, MAC or Linux, etc., not that this would help a lot. Who configured your server, or at least who is the administrator or webmaster? I would like to have a conversation with him or her.

    Phil

  • My iPhone calendar events do not show on macbook

    My iPhone calendar events occur on my MacbookPro. The iPhone is a new one for me - 6 s.

    Any help is appreciated.

    If you want to synchronize the calendar on your Mac and iPhone events, which requires iCloud (Wi - Fi) or iTunes (USB).

    iCloud instructions here > http://www.apple.com/icloud/setup/

    instructions for iTunes here > Calendar: sync calendars between devices

  • Lost all calendar events

    Dummy here. I disconnected (e) an "inactive account" in iCloud and all my calendar events disappeared. I tried to restore the calendar via Time Machine, but received a message that I couldn't do it because it was required by the system or something like. Same result in an attempt to restore a while before I made the deletion. I did a search on similar issues, but what I'm watching on the screen coincide with the answer of the forum.

    I also lost all my contacts, but they reappeared in somehow magically, but not all dates calendar.

    In addition to a strong slap on the side of the head, any suggestions on how I can fix this?

    Bucky,

    Check out these two items for a possible solution:
    1 iCloud: restore your contacts, calendars and reminders, or bookmarks

    2 If you have accidentally deleted your calendars, reminders, or contacts to iCloud - Apple Support

  • Copy the calendar to another calendar events

    I have a calendar on my PC with some events in private. I recently added in a radical opposition based calendar hosted on my network. Now, I try to copy my own calendar events in this calendar on the Web, but I can't make it work properly. When I select a calendar, select events and the copy, and then select the other calendar and deselect the old one and paste it, it ignores the selected calendars and just puts it into my old.
    But when I disable (not only unselection) my only old and paste then, it sticks the events in the new calendar. But their info is messed up, he turns off the names of most of the events, and even the times are not correct, seems as if the Yearnumber was put at 55 in the future for some strange reason.

    Is it possible to correctly copy a bunch of events to another calendar in lightning?

    Right click on the calendar in the left pane - private export.
    Save it as an .ics file.

    Then import the saved file:
    Import events and tasks (Alt - N)-

    You will be asked for the target calendar:
    Which calendar you want to import these items in?

    See if it works better.

Maybe you are looking for

  • 10 official IOS or beta?

    Hi dude, I start using the profile of beta beta IOS 10 for 1 month. Almost 3 weeks, I've updated ios10 version 10.0.1 (A 14, 403) by beta profile. Then the official release, I could not find the update of my iphone (IP6s). So, my ios is not official?

  • I have the most recent version lines of firefox, but my gmail said I did not. Help, please!

    I have version 19.0, but when I try and open onto gmail, it keeps sayting we don't have browser lates and update it please. I HAVE the latest firefox. The same thing happens when you try and open our msn and e-mail

  • someone has stolen my email address

    I think someone stole my e-mail because I keep getting emails from myself and so do my friends when I do not have their Envoy all please can anyone help

  • NVIDIA Control Panel does not open

    I just reinstalled Windows 7 on my PC and the NVIDIA Control Panel does not open when I click on the link in the windows control panel.  I installed it by using Windows Update. Updates Windows reports that it installed properly but the Panel itself w

  • Creative cloud error 1001

    Can not update all apps - creative cloud 1001 error when you try to update. Please help thanks