Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Apr 2010

    Question Calendar API Problem

    Hi there,

    I'm very new to flash lite and even flash.

    I found a Codesnippet and modiefied it and tried to list some entries from today to 3 days in the future, but there is no result. (Events in the calendar are availible on those dates).

    // Import Platform Service Interface
    import com.nokia.lib.Service;

    // Enable Full Screen
    fscommand2( "FullScreen", true );
    // Set quality
    fscommand2( "SetQuality", "high" );
    // Set onPress function to exit_mc MovieClip which closes the application
    exit_mc.onPress = function() {
    status = fscommand2("Quit");

    // Create new Service object which has Calendar data
    var calender = new Service("Service.Calendar", "IDataSource");

    // Define input parameters //year,month date
    var datum:Array = new Array();
    datum[3] = fscommand2("GetDateDay")+3;
    datum[2] = fscommand2("GetDateDay");
    datum[1] = fscommand2("GetDateMonth")-1;
    datum[0] = fscommand2("GetDateYear");
    var datums2 = new Date(datum[0],datum[1],datum[2]);
    var datums3 = new Date(datum[0],datum[1],datum[3]);

    var filter = {StartRange:datums2,EndRange:datums3};
    var inParams = {Type:"CalendarEntry",Filter:filter};

    // Define result value
    var outParams = calender.GetList(inParams);
    heading_txt.text = datums2 ;
    if (outParams.ErrorCode == 0) {
    var outList = outParams.ReturnValue;

    var outputEntry = null;
    // Go through all calendar events and print them to the textbox on the scene
    do {
    outputEntry = outList.next();

    if (null != outputEntry) {
    heading_txt.text = "Schritt 7 "+datums2 +"\r";
    var description = outputEntry.Description;
    var summary = outputEntry.Summary;
    var starttime = outputEntry.StartTime;
    var endtime = outputEntry.EndTime;
    text_txt.text += " Start:"+startime+"\r Ende:"+endtime+"\r Betreff:"+summary+"\r"+"\r";

    } else {
    text_txt.text = "Keine Eintraege \r"+datums2+"\r"+datums3;
    } while (true);
    } else {
    var errorId = outParams.ErrorCode;
    text_txt.text += "Error: "+errorId;
    Can someone help me?



  2. #2
    Registered User
    Join Date
    Jan 2008

    Re: Calendar API Problem

    I'm also interested in finding a solution - everything seems to work fine apart from the filter. I have used other parameters but it seems you/we might not be using the filter correctly?

    Update: Aplogies, I've tested the filter with other criteria, like type of event etc. The filter works fine, perhaps it how the date is being passed/interpreted?

    Last edited by plainj; 2010-05-10 at 10:55.

  3. #3
    Registered User
    Join Date
    Apr 2010

    Re: Calendar API Problem

    It is realy strange, because the filter needs an date object (refering to http://library.forum.nokia.com/topic...D-598EAEF214FF)

    Is there no one who did a flash lite Calendar app yet?

  4. #4
    Registered User
    Join Date
    Jan 2008

    Re: Calendar API Problem

    Sorry to bump, but can anyone shed some light on this query?

  5. #5
    Registered User
    Join Date
    Jan 2008

    Re: Calendar API Problem

    Can someone like sajisoft (the flash lite expert around here) assist here - I still have not managed to get this one sorted.


Similar Threads

  1. [REQ App] Capture Key, Brightness solution!
    By rilley in forum Symbian
    Replies: 24
    Last Post: 2010-04-11, 21:32
  2. PIM API adding new contacts problem
    By hoppelmoppel in forum Mobile Java General
    Replies: 3
    Last Post: 2007-04-22, 17:12
  3. Camera API problem
    By pmdr05 in forum Symbian
    Replies: 2
    Last Post: 2007-03-06, 11:15
  4. Using the Calendar API Problems 3rdEd, FP1
    By mockba in forum Symbian
    Replies: 16
    Last Post: 2006-12-28, 06:12
  5. Outlook Calendar & 6680 time problem
    By dansco69 in forum PC Suite API and PC Connectivity SDK
    Replies: 15
    Last Post: 2006-01-11, 05:35

Posting Permissions

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