Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-11-2011, 04:14 AM
Member
 
Posts: 10
Default New appointement

Hello, I want open a new tab Appointment in zimbra.
I have see that it's possible for a new message.I think replace "GetComposeController" by "GetCalController" and "NEW_MESSAGE" by "NEW_APPOINTEMENT"... but fail!
Code:
function Compose_Mail_Example() {
}

Compose_Mail_Example.prototype = new ZmZimletBase();
Compose_Mail_Example.prototype.constructor = Compose_Mail_Example;

Compose_Mail_Example.prototype.doubleClicked = function() {
    this.singleClicked();
};

Compose_Mail_Example.prototype.singleClicked = function() {
	// Tries to open the compose view on its own.
	var composeController = AjxDispatcher.run("GetComposeController");
	if(composeController) {
		var newWindow = false;
		//to field content
		var to = "a";
		//subject field content
		var subject = "example subject";
		//body content
		var body = "example body";
		var params = {action:ZmOperation.NEW_MESSAGE, inNewWindow:newWindow, 
		toOverride:to, subjOverride:subject, extraBodyText:body, callback:null}
		composeController.doAction(params); // opens asynchronously the window.
	}
};
HELP ME!

Tanks...
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.