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-22-2011, 04:08 AM
Junior Member
 
Posts: 5
Default Help creating a zimlet

Hello, I'm trying to create a menu zimlet for "Briefcase" where the user can create a custom Briefcase with a template and add sharing rights at the same time.

My first question is how I create a new briefcase, I have the parent id and name, but didn't find any way to create one. Can you please help or point me in the right direction?

Thanks in advance,
Vlad.
Reply With Quote
  #2 (permalink)  
Old 10-22-2011, 04:21 AM
Junior Member
 
Posts: 5
Default

BTW, using the js api
Reply With Quote
  #3 (permalink)  
Old 10-22-2011, 05:08 AM
Junior Member
 
Posts: 5
Default

Found a way to do this:

Code:
	var folder = {
		name:document.getElementById('client').value,
		'l':document.getElementById('folder_id').value,
		view:"document"
	};
	var jsonObj = {CreateFolderRequest:{
		_jsns:"urn:zimbraMail",
		folder:folder
	}};
	var searchParams = {
            jsonObj:jsonObj,
            asyncMode:true,
            callback:new AjxCallback(this, this.handleCreateBriefcase),
            errorCallback:new AjxCallback(this, this.handleCreateBriefcaseError)
    };
	appCtxt.getAppController().sendRequest(searchParams);
now my problem is how will I upload some default files there? Any tips?
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.