×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    18

    displaying calendar events

    Hi there,
    i have managed to add calendar events via wrt, but when it comes to displaying calendar events in my widget i have noticed that all calendar events (including ones i did not add via my wrt widget ) are being displayed, is there anyway of distinguishing between the calendar events added via my widget and those added via other ways? (ie i only want to display the events which were added via my widget when using my widget)

    also is there a way of stopping the user from editing details of the calendar event once added ie editing the title or subject of the calendar?

    any help you guys can give would greatly be appreciated
    many thanks
    asshaikh432

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: displaying calendar events

    Hi asshaikh432,

    you could store the id of the events added by your widget, and then use these ids to load them back. Another way would be to use some text token in your event's title/description, and filter by this token, but users could easily change it by accessing the event from outside your widget.

    Pit

  3. #3
    Registered User
    Join Date
    Apr 2009
    Posts
    18

    Re: displaying calendar events

    Hi there!
    Thanks for the reply, which method do you recommend that i store everything in? a txt file or some sort of xml? is there a standardised way of storing and reading from a file with s60 wrt widgets?
    asshaikh432

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: displaying calendar events

    Hi asshaikh432,

    standard way to locally save textual data is by using widget's setPreferenceForKey() method. Check it out here:

    http://library.forum.nokia.com/index...1F28E9F27.html

    Pit

  5. #5
    Registered User
    Join Date
    Apr 2009
    Posts
    18

    Re: displaying calendar events

    Hi there!
    if a user deletes a calendar event from the calendar application, is there anyway of my application of knowing that the calendar event no longer exists? Ie is it possible a user will add another calendar event after deleting mine which will then return the same ID number?
    asshaikh432

Similar Threads

  1. multiple calendar events
    By lsamJames in forum General Messaging
    Replies: 3
    Last Post: 2009-01-16, 09:05
  2. wakeup on calendar events
    By yogi-am in forum Symbian
    Replies: 7
    Last Post: 2007-11-26, 05:51
  3. wakeup on calendar events
    By yogi-am in forum Symbian
    Replies: 1
    Last Post: 2007-11-23, 07:12
  4. Add event's to calendar
    By noamgros in forum General Development Questions
    Replies: 1
    Last Post: 2006-10-17, 07:29
  5. HELP..How to send Calendar Events using SDK 2.1?
    By aloymendoza in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2006-05-08, 12:17

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×