Results 1 to 8 of 8

Thread: force poll or refresh from zimlet

  1. #1
    earugula is offline Starter Member
    Join Date
    Jan 2009
    Posts
    2
    Rep Power
    6

    Default force poll or refresh from zimlet

    I am playing with the Evite zimlet. This zimlet syncs the user's calendar with his or her calendar at Evite (by creating calendar items via ajax soap requests). However, the appointments do not show up in the calendar until (1) the mail poll interval (noop soap request) occurs or (2) the refresh button is pressed (Search soap request).

    I am writing a similar zimlet, and do not want to wait for poll or require user refresh. Is it possible to force the poll or refresh from within the Zimlet? If not other way to push content to Zimbra?

  2. #2
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    365
    Rep Power
    8

    Wink

    Here is the js code that should do the refresh :
    Code:
    var controller = appCtxt.getCurrentController();
    controller._refreshAction(false);

  3. #3
    earugula is offline Starter Member
    Join Date
    Jan 2009
    Posts
    2
    Rep Power
    6

    Default force poll or refresh from zimlet

    Thanks tdesorbaix.

    I pasted the lines you gave me at the end of the try block in Com_zimbra_evite.prototype.myCallback and it works perfectly.

  4. #4
    yuelu is offline Starter Member
    Join Date
    Mar 2008
    Posts
    2
    Rep Power
    7

    Default how to refresh calendar view when the user is not in calendar tab

    var controller = appCtxt.getCurrentController();
    controller._refreshAction(false);
    works only if the user is in calendar tab. How to refresh the calendar view when user is not in calendar tab? Thanks.

  5. #5
    rrao is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    187
    Rep Power
    9

    Default

    Quote Originally Posted by yuelu View Post
    var controller = appCtxt.getCurrentController();
    controller._refreshAction(false);
    works only if the user is in calendar tab. How to refresh the calendar view when user is not in calendar tab? Thanks.
    you can do something like..

    Code:
    if(this._calController == undefined)
     this._calController = AjxDispatcher.run("GetCalController");
    
     this._calController._refreshAction(false)
    Bugzilla - Wiki - Downloads - Before posting... Search!

  6. #6
    ohm_g7 is offline Senior Member
    Join Date
    Oct 2008
    Location
    Thailand
    Posts
    65
    Rep Power
    6

    Default how to refresh mail view

    how to refresh mail list like you click "Inbox" or "Get Mail" button.
    thank.

  7. #7
    ohm_g7 is offline Senior Member
    Join Date
    Oct 2008
    Location
    Thailand
    Posts
    65
    Rep Power
    6

    Default

    I got code.
    I put this code in my js file and tag can update immadately

    appCtxt.getApp(ZmApp.MAIL)._mailSearch();

  8. #8
    rahul.liviatech is offline Junior Member
    Join Date
    Jan 2010
    Posts
    6
    Rep Power
    5

    Default

    How can I do for other tabs?
    I want to do it for TASK tab.

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. Outlook 2007 Beta error
    By bersrker in forum Zimbra Connector for Outlook
    Replies: 13
    Last Post: 07-17-2008, 07:38 AM
  3. Replies: 5
    Last Post: 01-11-2008, 05:34 AM
  4. Replies: 13
    Last Post: 07-20-2007, 03:21 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
  •