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 07-06-2011, 11:37 AM
Senior Member
 
Posts: 55
Default Getting username in panel from zimlet

Hi,

I want to change SMS zimlet for my needs. Unfortunately I don't know how to get username which is logged in panel and using SMS zimlet. This is needed for me to write in some mysql database. So.. how to get this username from JS ??
Reply With Quote
  #2 (permalink)  
Old 07-27-2011, 12:06 PM
Trained Alumni
 
Posts: 48
Default

You can get the username of the currently logged-in user by calling ZmZimletBase.prototype.getUsername() (returns user@domain.tld). You can get the user's unique ID by calling ZmZimletBase.prototype.getUserID()
__________________
Graham Ballantyne
Simon Fraser University
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.