Quantcast
Channel: Zimbra :: Forums - Zimlets
Viewing all 171 articles
Browse latest View live

Creating a Zimlet using the web service Owncloud ????

$
0
0
What are the steps to create a new Zimlet use web services Owncloud ??

How to create multi-level context menu?

$
0
0
Hello,

Accordinly to ZCS 6.0 Zimlet Definition File Reference menuItem element can have nested menuItem elements which would allow to create multi-level context menu.

I'm trying this with ZCS 7.2.2, here is related part of my zimlet definition file
HTML Code:

<contextMenu>
        <menuItem label="Top level item 1" id="item-1"/>
        <menuItem label="Top level item 2" id="item-2"/>
        <menuItem label="Top level item 3" id="item-3"/>
        <menuItem />
        <menuItem label="Other items..." id="other-items">
                <menuItem label="Nested menu item 1" id="item-4"/>
                <menuItem label="Nested menu item 2" id="item-5"/>
                <menuItem label="Nested menu item 3" id="item-6"/>
        </menuItem>
</contextMenu>

"Other items..." menu item is visible in UI but its subitems don't appear onhover.

Probably 7.0+ API is little different in this area but I can't find it's documentation.

Please help.

Help config Dropbox

Manage banner advertising in a custom skin

$
0
0
Hi, I would insert a bottom adv in my skin.
I have read this in the guide: "to actually display ads, you deploy Zimlets that implement the code necessary to show the ads".
How do I manage banner advertising completely?
Thanks, Daniel.

Problem with sendRequest using ZCS 8.0.4 API

$
0
0
Hi all,
I'm trying to send call REST using sendRequest(requestStr, serverURL, requestHeaders, callback, useGet, passErrors) of zmZimletBase with Post method, but it's not working...
Does anyone have the same problem with ZCS 8.0.4 API ??

I specify that it work using zimbra 8.0.3 !

thanks,
nick

Select message listener

$
0
0
In my zimlet, how can i catch the event of selecting a message ?

Thanks in advance

How to bind event listener to action menu item created with JS?

$
0
0
Hello,

I'm trying to build context menu for my zimlet panel item with javascript. Here is the code:

Code:

var ctxtMenu = this.getZimletContext().getPanelActionMenu();
ctxtMenu.createMenuItem("item1", {"text":"Menu Item 1});

Menu items appear in the menu but they appear not to be bound to menu selection event listener as ones defined in zimlet definition file (XML). In other words menuItemSelected() method is not called when generated by JS menu items are selected.

How to bind the event listener to dynamicly added items?

List of ZCS 8.04 compatible Zimlets

$
0
0
Hello,

I've tried a few Zimlets but there seems to be a lot of them incompatible with my release of Zimbra: 8.0.4

Is the a full list with compatibility info for all Zimlets?

Trial and error can be fun... but not too efficient... ;-)

Thanks!
Bernard

Batch Events....

$
0
0
Hi,

I am considering making a zimlet that when modifying an event in a calendar using a particular resource that IF that resource is in use after that event and the change to the first event would cause a resource conflict with the later event that it would AUTOMATICALLY push the second event later and that would cascade for the rest of the day.

Is a zimlet the right way to approach it?

Thanks!

Adding a button to toolbar in mobile version?

$
0
0
We've made a custom Zimlet that involves adding a new button to the toolbar. Works well, but the button isn't showing in the mobile version. Does the mobile version not implement initializeToolbar? And anyone have any tricks for debugging the mobile version on an Android phone? :D

Kathy A.

How to monitor user activity like file upload, task creation etc...?

$
0
0
I need to know when a user created briefcase folder, file uploaded or task/appointment created (any SOAP requests).
Then I need to insert the event into mysql.

At the moment I'm thinking of trace.log monitoring and parsing. But I don't like this approach very much.

I hope there is server API which would allow me to run java daemon on my server and to listen for mentioned events.

Another way I'm thinking of is catching events on client side via zimbra ajax tk API and to send it to backend then.

Please advise.

Thank you in advance!

time accounting

$
0
0
Hallo!
Is there some zimlet fot time accounting?
For now we are using Zimbra Open source as alternative to MS Exchange and Fengoffice fot time accounting for work. But mabey there is some zimlett allready for that?

How to listen for global API requests?

$
0
0
New task create view is invoked by the following code:
Code:

AjxDispatcher.run("GetTaskController").show(new ZmTask(....))
After "save" button is pressed "CreateTaskRequest" SOAP request is sent.

Is it possible to listen for that event ("save button pressing")?

A way to do some restricted actions with different account privileges

$
0
0
There is no big hope of getting an answer here as I can't remember how many previous my posts are still not answered. But just in case.

I have such configuration when an user has read-only access to some shared object.
I need to allow for the user to do some restricted actions with that object, for example to add new raw to a spreadsheet.

Directly it is not possible as the user does not have write permissions to the resource.
I'm going to implement SOAP document handler which would get request from any authenticated user and perform another SOAP request posting it with another user authority.

For example, unprivileged user sends a request which contains new sheet raw data ("Cell1 value", "Cell2 value" ... ).
Document handler code receives the request, gets the data, adds the data to resultant sheet and puts it to new SOAP request.
Then it authenticates with proper user authentication details (one which has write permissions to the resource) by doing "login" HTTP request, gets SESSION cookie from the response, and performs another "SaveDocument" request with the cookie.

Though this approach looks working probably it is not the best (easiest, proper).

Please advise.

Thanks in advance.

Lookbehind in content regexp

$
0
0
Hi all.

I'm developing a simple zimlet that recognizes telephone numbers in the content of an email and offers the possibility to click to call. To make my life easier, I'd like to use a "lookbehind" regex expression. Since the regex is defined in my zimlet xml file and a lookbehind uses the form "(?<=someconent)", I cannot simply use the "<" char in the expression, since it will invalidate the xml. I tried replacing the "<" with "&lt;" like this "(?&lt;=somecontent)", but then I get an error message "SyntaxError: invalid quantifier" in zimbra webmail as soon as the zimlet gets initialized.

Any ideas?

Archive Button

$
0
0
According to this bug, there should be an official Archive button zimlet included in v8, but I'm not seeing it in the latest version. Does anyone know where I can get it? There's an Archive zimlet in the Gallery, but it's 3rd party.

Does anyone have a list of the standard zimlets that come with Zimbra these days? The Archive button was a big reason for upgrading to v8, I need it and my clients need it.

Thanks,
Adam

Open an email in a popup arbitrarily

$
0
0
Hi,
I'm trying to open an email in a popup, just like "Launch in a separate window" option we found right clicking on an email.

After a long search in the code, I've found that the action is registered in ZmOperation.js file as DETACH_WIN operation, but I can't find how to launch them.
Am I in the right direction? Anyone can write me how these operations works?

I've also found the detachMsgInNewWindow function that seems what I need. I can open the popup with the email with this code
Code:

ZmMailMsgView.detachMsgInNewWindow(appCtxt.getById(370));
where 370 is the msgId of my email, but it works only if I've previously opened the email in the MailApp (seems that this loads the email in the js client).
So I've tried to load the email before the detachMsgInNewWindow call with something like
Code:

ZmMailMsg.fetchMsg({msgId:370,sender:appCtxt.getAppController(),getHtml:appCtxt.get(ZmSetting.VIEW_AS_HTML)});
or
Code:

ZmMailMsg.load({getHtml:appCtxt.get(ZmSetting.VIEW_AS_HTML),needExp:true,noTruncate:true,forceLoad:true});
but no success...

No error appears with the loading, but the email is not available as appCtxt.getById(370), maybe because I've not secified a callback in the load, and that's basically for putting the email loaded in the right js object... but I can't find the right way to do that.


Anyone knows if the correct way is the operation way or the second manner with load and detachMsgInNewWindow function?


Any help would be appreciated.
Thanks in advance for any reply.

Display extra info in message header on message view.

$
0
0
Hi,

How can I add a extra info on the header of the message ( see attached image). No need for custom formatting, it is fine to be exactly as "To:" and "From:".

Context:
I am developing a Zimlet in which existing emails can be associated with tracking numbers. The user will be able to associate new tracking numbers or see on that extra line if it as already been associated with a tracking number. Underlying, I am hooking a call to our webservice when onMsgView and onConvView are executed.
Attached Images

Zimbra Social not working

$
0
0
I have search thru all the posts before posting this. I'm on Zimbra 7.2 and have updated the Zimlet to version 3.7.

The proxy error can be easily overcome by the very troublesome adding of these command lines using the CLI console for each and every COS we have one by one (example below is for our COS: g10):

zmprov mc g10 +zimbraProxyAllowedDomains twitter.com
zmprov mc g10 +zimbraProxyAllowedDomains *.twitter.com
zmprov mc g10 +zimbraProxyAllowedDomains *.facebook.com
zmprov mc g10 +zimbraProxyAllowedDomains *.linkedin.com
zmprov mc g10 +zimbraProxyAllowedDomains *.digg.com
....

With that, I manage to get Twitter to works. But Digg and Facebook are not working. Was told that if I downgrade the Zimlet to version 2.x, Facebook will works. Any other workaround???

Do I really need to restart zmmailboxdctl on every JSP zimlet change in _dev mode?

$
0
0
Hi,

Every change I made to the JSP files on my zimlet, which is located at /opt/zimbra/zimlets-deployed/_dev/zimlet-name/file.jsp, I have to run 'zmmailboxdctl restart' to get it updated. Is there a way to overcome this?
Viewing all 171 articles
Browse latest View live




Latest Images