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 10-05-2010, 11:31 AM
Starter Member
 
Posts: 2
Default View an appt

Hello, all! I'm working on my first Zimlet. I'm pretty deep into this first one (about 400 lines so far) but have been stuck at this point for a few days.

I have an HTML button. When it is clicked, I want it to bring up the Zimbra appointment editor for an appointment of a given unique ID, which will be specified as a param for the function that is called in the HTML button's onclick event.

How can I get it to bring up the appointment editor?
Reply With Quote
  #2 (permalink)  
Old 10-21-2010, 07:20 AM
Starter Member
 
Posts: 2
Default

So far, I've been able to get the appointment composer to come up, but still can't figure out how to load the appointment data.

Code:
MyZimlet.showAppt = function (apptUid) {
  var apptComposeController = AjxDispatcher.run("GetApptComposeController");
  if (apptComposeController) {
    var appt = new ZmAppt();
    apptComposeController.show(appt);
  }
};
I tried

Code:
  if (apptComposeController) {
    var appt = new ZmAppt();
    appt.getById(apptUid);
    apptComposeController.show(appt);
  }
but it does the same thing as the first code block above: appointment editor appears but it is blank.

Anyone know how to load the data into the appointment composer?
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.