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

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 06-14-2009, 11:35 AM
Elite Member
 
Posts: 328
Default [SOLVED] how to create new Operation?

Hi!
I like zimbra(of course). But I have a problem when I want to create new Operation in Zimbra.
Example:
I need to add a new menu item when I click on a folder tree. I think I must define a new operation in ZmOperation:
ZmOperation.registerOP("Share_all",{textKey:" Share this foder to public"});
Then I must add it to a menu action of folder tree.
But in fact, it's not work!
Who can help me: how I do in this case? Thank you.
Reply With Quote
  #2 (permalink)  
Old 06-15-2009, 04:01 AM
Elite Member
 
Posts: 328
Default I resolved

Ok, now, I can resolve it. Too simple, You must define operation in ZmOperation.js then use createMenuItem of ZmPopupMenu object to add it to menu context. Notice: you should check if this menuItem is present before add it to menu context. have fun!!!
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.