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-09-2008, 11:31 AM
Junior Member
 
Posts: 6
Default getting current users email address in a zimlet

is there a method in ZmZimletBase.js that I'm overlooking to find the email address(es) associated with the current user?

Also my javascript code stops executing when I try to use the ZmZimletBase getUsername() method. Anyone has a working sample for this?
__________________
In order to understand recursion, one must first understand recursion.
Reply With Quote
  #2 (permalink)  
Old 10-10-2008, 12:41 AM
Zimlet Guru & Moderator
 
Posts: 288
Default

For me it works perfectly with this :
Code:
var username = this.getUsername();
This work too as well (this one is used by the yahoo local zimlet) :
Code:
var username = appCtxt.get(ZmSetting.USERNAME);
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.