Results 1 to 3 of 3

Thread: experience sharing

  1. #1
    hugo@dlshk is offline Active Member
    Join Date
    Feb 2012
    Posts
    30
    Rep Power
    3

    Default experience sharing

    Since there is really little information for beginner of zimlet, as a beginner, I want to share experience that I have found.

    I have searched the information for closing a compose view, and the way to detect the closing/cancelling of a compose mail as follow:

    Code:
    com_projectapprovar_HandlerObject.prototype.onAction = function(type, action, currentViewId, lastViewId) {
    	if (lastViewId.indexOf(ZmId.VIEW_COMPOSE) == 0){
    		if ((action=="Compose")&&(type=="app")){
    			alert("cancel by tap icon");
    			return;
    		}
    		if ((action=="Cancel")&&(type=="button")){
    			alert("cancel by cancel button");
    			return;
    		}
    	}
    }
    Hope this can help the beginners like me!

  2. #2
    hugo@dlshk is offline Active Member
    Join Date
    Feb 2012
    Posts
    30
    Rep Power
    3

    Default

    bug found
    the code in the previous post will catch all the cancel button when the viewid like compose*, such as the cancel button in attach attachment.

    the code below catch the cancel compose mail button

    Code:
    if ((lastViewId.indexOf(ZmId.VIEW_COMPOSE) == 0)&&(currentViewId.indexOf(ZmId.VIEW_COMPOSE) != 0)){

  3. #3
    hugo@dlshk is offline Active Member
    Join Date
    Feb 2012
    Posts
    30
    Rep Power
    3

    Default

    This time about the mail incoming filter creating inside zimlet.

    There is just getting, modifying, applying filter rule in soap.txt, but there is no hints about how to create filter rules in soap.txt.

    The clue for creating filter rule is in /[zimbra_install_path]/jetty/webapps/zimbra/js/zimbraMail/prefs/model/ZmFilterRules.js.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. sharing issue over SSL on 2nd domain
    By skot999 in forum Administrators
    Replies: 0
    Last Post: 02-03-2011, 02:12 PM
  2. Multi user file sharing problem in Zimbra Desktop
    By mints in forum General Questions
    Replies: 0
    Last Post: 11-19-2010, 06:30 AM
  3. Task sharing problem
    By ted sherrin in forum Installation
    Replies: 2
    Last Post: 04-07-2008, 12:41 AM
  4. [SOLVED] Outlook Sharing no longer available??
    By riccadus in forum Zimbra Connector for Outlook
    Replies: 13
    Last Post: 10-05-2007, 01:41 PM
  5. Sharing....
    By addihetja in forum Users
    Replies: 0
    Last Post: 05-07-2007, 11:36 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
  •