-
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.
-
-
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?