Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: How can I get appointment list from zimlet?

  1. #11
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Quote Originally Posted by dijichi2
    8080 is often blocked by overzealous isp's and it departments as it's the defacto proxy port and often used for nefarious means, including open proxies. i must say putting cvs on there is a strange thing to do.
    CVS itself is on a the standard CVS port. 8080 is just the web based view of CVS, so not critical to getting at the CVS data. Time to complain to your network admin .
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  2. #12
    Kenji is offline Intermediate Member
    Join Date
    Jun 2006
    Posts
    17
    Rep Power
    9

    Default

    I watched data.js to know how to get appointment list.
    But I couldn't understand how to use...

    Can "_newApptListener" function in data.js get calendar controller to get appointment list?

    Com_Zimbra_Date.prototype._newApptListener =
    function() {
    var cc = this._appCtxt.getApp(ZmZimbraMail.CALENDAR_APP).ge tCalController();
    // TODO support ev
    cc.newAppointmentHelper(Com_Zimbra_Date._actionCon text.date, null, null/*. ev.shiftKey */);
    };

    It is my source as follows.

    ---------------------------------------------------------

    Com_Zimbra_SForce.prototype.singleClicked = function() {
    alert('singleClicked start');

    Com_Zimbra_SForce._newApptListener();

    alert('singleClicked end');
    };

    Com_Zimbra_SForce.prototype._newApptListener =
    function() {
    var cc = this._appCtxt.getApp(ZmZimbraMail.CALENDAR_APP).ge tCalController();
    // TODO support ev
    cc.newAppointmentHelper(Com_Zimbra_Date._actionCon text.date, null, null/*. ev.shiftKey */);
    };

    ---------------------------------------------

    The error occurred by the "var cc = this._appCtxt.getApp..." line.

    any ideas?

    Thanks&Regards
    Last edited by Kenji; 06-22-2006 at 03:34 AM.

  3. #13
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    It's DATE.js not DATA.js right? Just want to be 100% sure your looking at the right file.

    What is the exact error your getting from your JavaScript console?
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  4. #14
    Kenji is offline Intermediate Member
    Join Date
    Jun 2006
    Posts
    17
    Rep Power
    9

    Default

    I mistaked.
    It is date.js.

    I modified my source.

    ---------------------------------------------------------
    /// Called by the Zimbra framework when the SForce panel item was clicked
    Com_Zimbra_SForce.prototype.singleClicked = function() {
    alert('singleClicked start');

    //Com_Zimbra_SForce.prototype._newApptListener();

    var cc = this._appCtxt.getApp(ZmZimbraMail.CALENDAR_APP).ge tCalController();
    // TODO support ev
    cc.newAppointmentHelper(Com_Zimbra_SForce._actionC ontext.date, null, null/*. ev.shiftKey */)

    alert('singleClicked end');
    };

    ---------------------------------------------------------

    JavaScript Console show me error that is "Com_Zimbra_SForce._actionContext has no properties."
    Last edited by Kenji; 06-23-2006 at 12:32 AM.

  5. #15
    Kenji is offline Intermediate Member
    Join Date
    Jun 2006
    Posts
    17
    Rep Power
    9

    Default

    I create com_zimbra_date by using date.js.

    The same error occur.

    Please watche this zimlet.
    Attached Files Attached Files

  6. #16
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Well you need to pass in the actual date. That function assumes you are hovering over a date, but your use case may be different.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  7. #17
    Kenji is offline Intermediate Member
    Join Date
    Jun 2006
    Posts
    17
    Rep Power
    9

    Default

    Hello KevinH.

    You said following message.

    Quote Originally Posted by KevinH
    If you already in a Zimlet then you can use the native JS calls rather than trying to make another SOAP call. Take a look at the date zimlet. date.js it has code to get a handle to the calendar controller and get various lists of appointments.
    What should I do?

    Could you tell me about it?

  8. #18
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Kenji, The code is above. You need to pass in a valid date. The error you are getting is pretty clear the value you are passing in is null or has no value. You need to pass in a valid date object.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  9. #19
    Kenji is offline Intermediate Member
    Join Date
    Jun 2006
    Posts
    17
    Rep Power
    9

    Default

    Finally, I could got appointment list!!!

    Thanks KevinH

  10. #20
    krystian is offline New Member
    Join Date
    Apr 2008
    Posts
    4
    Rep Power
    7

    Default

    Kenji,

    Care to post the code that you came up with? I'm also learning zimbra and would love to see how you achieved this and how your code was refined.

    -krystian

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Replies: 5
    Last Post: 01-11-2008, 05:34 AM
  3. Replies: 13
    Last Post: 07-20-2007, 03:21 AM
  4. Domain Admin Error: Permission Denied
    By shanson in forum Administrators
    Replies: 3
    Last Post: 05-29-2007, 05:48 AM
  5. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM

Posting Permissions

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