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 01-10-2010, 12:05 PM
Member
 
Posts: 14
Post Query all ZmAppt objects / Get a ZmAppt object by id

Hi all,

I'm currently stuck with a problem that should probably be easy to solve but I couldn't find a working solution yet. I hope someone can help me out.

What I'm trying to do is query all appointments as ZmAppt objects (basically the same thing "GetContacts" does for ZmContacts). However, the code I wrote for that only returns incomplete information (i.e. it seems to miss the startDate and endDate, the rest is alright). Here's what I did:

Code:
var cb = new AjxCallback(this, this._processSearchResponse);
var types = new AjxVector(); types.add("APPT");
appCtxt.getSearchController().search({query: "in:calendar", userText: true, types:types, limit:500, noRender:true, callback:cb});
In _processSearchReponse I'm basically processing the data I'm getting back using response.getResponse().

Now as already mentioned before, while this actually returns all appointments as objects, it doesn't seem to give me all the data I need. Is there any other way to do it? Or am I doing anything wrong?

Alternatively, is there any way to get a ZmAppt object by its id? (Because the code above returns the ids of all appointments).

Any suggestions/help would be greatly appreciated.
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.