Setting currently displayed folder using JavaScript

Interested in talking about Mash-up's? This is the place.
Post Reply
pkopacz
Posts: 6
Joined: Sat Sep 13, 2014 3:52 am

Setting currently displayed folder using JavaScript

Post by pkopacz »

How do I make a particular folder the currently selected folder using JavaScript?   I have a Zimlet that creates a button in the Mail toolbar and want the Inbox to be made the currently displaying folder when this button is clicked.
raulicci
Posts: 14
Joined: Mon Aug 03, 2015 11:55 pm

Setting currently displayed folder using JavaScript

Post by raulicci »

I also look for something, want to show the contents of a folder in a custom tab like my INBOX
but I find nothing, and no one answers forum.
I think with SOAP and JSON within zimlet SearchRequest can make a come back this is something very similar to that already used by zimbra when clicking on the icon of the custom folder in the left pane default.
I keep you informed if I get something.
This is what I'm trying with no results yet.
com_zimbra_myzimlet_HandlerObject.prototype._getShowResultFolderId =
function(t) {
var e=AjxSoapDoc.create("SearchRequest","urn:zimbraMail");
var cuery="raulicci";
e.setMethodAttribute("types","conversation");
e.setMethodAttribute("limit",100);
e.setMethodAttribute("offset",0);
e.set("query",cuery);
t.response=appCtxt.getAppController().sendRequest({
soapDoc:e,noBusyOverlay:false}
);
this.handleSearchResponse(t)
};
Post Reply