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

Rest API Zimbra 8

$
0
0
Hello,
I am French I ask you to forgive my use of the English ...

I try to wear my Zimlet (version 7) to Zimbra 8.

I have no problems until I try to export an email with the Rest API.

Here is what I did in Zimbra 7 and does not work on Zimbra 8:

https://serveurZimbra/home/ ~ /? id = 356 (356 is the identifier of the Zimbra mail export.)

I get this error:
Quote:

HTTP ERROR 501

Problem Accessing / service / home / ~ /. Reason:

can only handle messages / appointments / tasks / documents

Powered by Jetty ://



Unfortunately I can not find the API documentation for zimbra 8.

Sincerely,
aetuo

Click To Call Zimlet

$
0
0
I have a ShoreTel phone system and would like to use the Click to Call Feature but see it only integrates with Mitel phone systems. Is there a way to integrate it with other systems?

Zimbra auth Token in my own service

$
0
0
Hello everybody,

I was wondering if I can use the token to authenticate a user in my own application.

Basicly I have a Zimlet which should connect to a REST-Webservices which is protected (with Spring Security). To access this webservice the user needs the same credentials as for the zimbra server. So I thought perhaps I can use the Zimbra-auth-token to authenticate the user in the webapp. Unfortunately I couldn't find any information about this topic. I hope someone has a suggestion :)

Thanks
Christian

Ps I'm not sure if this is the right sub-forum

Can't get user IP on Internet Explorer

$
0
0
Hey guys!

I have a huge problem this time. We receive reports of problems from our users, and to identify the user problem we collect some information like: Operation System, Browser and IP. Well, my zimlet works very well on Firefox/Chrome/Safari, but Internet Explorer are giving me headaches. :(

Code:

        if (window.XMLHttpRequest) xmlhttp = new XMLHttpRequest();
                    else xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
               
                    xmlhttp.open("GET","http://api.hostip.info/get_html.php",false);
                    xmlhttp.send();
                    hostipInfo = xmlhttp.responseText.split("\n");
                    for (i=0; hostipInfo.length >= i; i++) {
                        ipAddress = hostipInfo[i].split(":");
                        if ( ipAddress[0] == "IP" ) return (ipAddress[1]);
                    }
                    return "Error!";
                }

I did some research, and sadly, discovered that IE8/9 have some issues with processing external pages (to prevent XSS). A alternative was to use XDomainRequest(), but you need to configure your site to support it, but also, that dont worked to me.

Right now I trying to use ProxyServlet, but now I got as result "undefined". Here the code:

Code:

/**
 * Performs a "GET" against an external server using the Proxy Servlet.
 *
 */
uspSuporte.prototype._getIP2 =
function() {
       
        var extServer = "myIPSite/showIP.php";

        // url encode the external server url
        // since it will part of the query params for the proxy servet
        var encodedExtServerUrl = AjxStringUtil.urlComponentEncode(extServer);
       
        // create proxy servlet URL
        var proxyServletUrl = [ZmZimletBase.PROXY, encodedExtServerUrl].join("");

        // submit the URL and asynchronous response (using callback)
        AjxRpc.invoke(null, proxyServletUrl, null, new AjxCallback(this, this._responseIP), false);
       
       
};
/**
 * Handles the callback from the external http GET AjxRpc.invoke().
 *
 *
 * @see                com_zimbra_example_httpgetpost_HandlerObject._executeExternalHttpGet
 */
uspSuporte.prototype._responseIP =
function(response) {

        if (response.success == false) {
                // display the error response
                return "Error";
        }
        // display the response
        return response.text;               

};

I also put it on my allowdomains:

Code:

<zimletConfig name="zimletname" version="0.1">
<global>
<property name="allowedDomains">myIPSite/showIP.php</property>
</global>
</zimletConfig>

Can someone give me some insight here?

Emoticons zimlet on Zimbra 8

$
0
0
Hello all,

Since we've migrate to Zimbra 8 OSS, we've lost the "Emoticons" button in WYSIWYG bar. Zimlet is activated, but the button is hidden.

Any method to show it or use smileys when write an email ?

Thanks in advance !

Sticky Notes - not appearing in toolbar

$
0
0
Dear All,

this is my first post on this forum. I think Zimbra is great. Happy to be here, and I hope to learn a lot.

I've been working with ZCS for 3 years, mainly creating users from the admin console, and recently I've been given full server access, so I'm a ' newbie' :)

Our install is on a CentOs server:

[zimbra@caw-server1 zimlets-extra]$ zmcontrol -v
Release 7.2.0_GA_2669.RHEL6_64_20120410002025 CentOS6_64 FOSS edition.

We have this minor problem : the zimlet sticky notes works for a few users, for the 100 -or -so others it' s not appearing in the toolbar.

In the Zimbra admin console it's enabled in COS ( under Configuration - Zimlets ) and for every user ( in Zimlets - set to COS )
In the user's Zimbra its enabled via Preferences - Zimlets - sticky notes is marked active .

I've been trying to use zmprov on the server:

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[zimbra@caw-server1 zimlets-extra]$ /opt/zimbra/bin/zmzimletctl listAcls com_zimbra_stickynotes
Listing COS entries for Zimlet com_zimbra_stickynotes...
default

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[zimbra@caw-server1 zimlets-extra]$ /opt/zimbra/bin/zmzimletctl listZimletsInstalled Zimlet files on this host:
[] WARN: error loading zimlet com_zimbra_social-backup
java.io.FileNotFoundException: zimlet description not found: com_zimbra_social-backup.xml
at com.zimbra.cs.zimlet.ZimletFile.initZimletDescript ion(ZimletFile.java:250)
at com.zimbra.cs.zimlet.ZimletFile.initialize(ZimletF ile.java:206)
at com.zimbra.cs.zimlet.ZimletFile.initialize(ZimletF ile.java:163)
at com.zimbra.cs.zimlet.ZimletFile.<init>(ZimletFile. java:149)
at com.zimbra.cs.zimlet.ZimletUtil.loadZimletsFromDir (ZimletUtil.java:401)
at com.zimbra.cs.zimlet.ZimletUtil.loadZimlets(Zimlet Util.java:338)
at com.zimbra.cs.zimlet.ZimletUtil.listInstalledZimle tsOnHost(ZimletUtil.java:930)
at com.zimbra.cs.zimlet.ZimletUtil.listAllZimlets(Zim letUtil.java:999)
at com.zimbra.cs.zimlet.ZimletUtil.dispatch(ZimletUti l.java:1775)
at com.zimbra.cs.zimlet.ZimletUtil.main(ZimletUtil.ja va:1897)
com_zimbra_adminversioncheck
com_zimbra_apptsummary
com_zimbra_attachcontacts
com_zimbra_attachmail
com_zimbra_birthdayreminder
com_zimbra_bulkprovision
com_zimbra_cert_manager
com_zimbra_date
com_zimbra_dnd
com_zimbra_email
com_zimbra_email2doc
com_zimbra_emaildownloader
com_zimbra_emailtemplates
com_zimbra_linkedin
com_zimbra_phone
com_zimbra_social
com_zimbra_srchhighlighter
com_zimbra_stickynotes
com_zimbra_url
com_zimbra_webex
Installed Zimlets in LDAP:
com_zimbra_apptsummary (disabled)
com_zimbra_attachcontacts
com_zimbra_attachmail
com_zimbra_birthdayreminder (disabled)
com_zimbra_date
com_zimbra_dnd
com_zimbra_email
com_zimbra_email2doc
com_zimbra_emaildownloader
com_zimbra_emailtemplates
com_zimbra_linkedin (disabled)
com_zimbra_phone (disabled)
com_zimbra_social (disabled)
com_zimbra_srchhighlighter (disabled)
com_zimbra_stickynotes
com_zimbra_url
com_zimbra_webex (disabled)
Available Zimlets in COS:
default:
com_zimbra_apptsummary
com_zimbra_attachcontacts
com_zimbra_attachmail
com_zimbra_birthdayreminder
com_zimbra_date
com_zimbra_dnd
com_zimbra_email
com_zimbra_email2doc
com_zimbra_emaildownloader
com_zimbra_emailtemplates
com_zimbra_linkedin
com_zimbra_phone
com_zimbra_social
com_zimbra_srchhighlighter
com_zimbra_stickynotes
com_zimbra_url
com_zimbra_webex

I----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I also tried to enable sticky notes for a user on the cli , but cannot find the right syntax :

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[zimbra@caw-server1 zimlets-extra]$ zmprov ma ivantentelen@cawdekempen.be zimbraZimletDomainAvailableZimlets "com_zimbra_stickynotes"
ERROR: service.INVALID_REQUEST (invalid request: LDAP schema violation: [LDAP: error code 65 - attribute 'zimbraZimletDomainAvailableZimlets' not allowed])

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I saw a bug report here :

https://bugzilla.zimbra.com/show_bug.cgi?id=63170

saying it needs to be reïnstalled, but then again, since it works for some users..........

Can anyone give me some advise on this? Help would be greatly appreciated.

Friendly regards, J.

Birthday Reminder Zimlet doesn't work in 8.0

$
0
0
Hi,

I just installed the birthday reminder zimlet on my 8.0 server. It shows up under Zimlets, and when I click it a dialog shows up. As it is labeled "Birthday Reminder: Preferences" I think it should be possible to set the options for reminder creation there. There aren't any options displayed, though, only the note about a new calendar being created, a horizontal line and two buttons labeled "Start Address Book Scan" and "Abbrechen" (cancel in German).

When I click the Start button nothing happens. Cancel closes the dialog, of course.

Does the zimlet not yet work with v8.0?

Thanks, Christian

zimlet présentation layer ??

$
0
0
Hi
i am newbies to zimbra dev
so many questions to ask

as i see on the wiki they talk a lot about JS

what about GWT , JSF and it's tool box ... can i do something with my experience their ??

DwtTree.addSelectionListener fires twice for clicks - WHY?

$
0
0
While amending the tree view, I found out that the selections fire twice for 2nd, 3rd... ciick on any item in the tree list. The first click, however, just fires once.

Code:

var i=1;
    this._treeclick = function() {
        console.log('Treeclick ' + i++);
        console.log(arguments);
    }
    linkTree.addSelectionListener(
        new AjxListener(this, this._treeclick, {})
    );

The function _treeclick will be executed once for the first click, and then twice for each click from there on. All of the events are "mouseup" and I can not distinguish between them -- they are the same.

Is this a bug? This was tested against 7.2.1 Network edition and against ZimbraDesktop 7.2.1.

Also, I would only like to handle clicks, but if the DwtTreeItem has set selectable=false, then I can not catch the click events (even by using other listeners (addTreeListener, addListener).

Regards,
Miha.

Add location into the task list view

$
0
0
Hi everyone,

I'm trying to add the location, directly into the task list view. Nowadays, if we need to see the the location of a task we need to open the task details. What i want is, to be able to see the location directly in the task list, and make a sort on it.

zimlet.jpg

I'm pretty confident about my javascript skills, but i have to admit that i'm totally lost with the creation of a zimlet.

So if it already exist (I searched but don't find anything..) do you have a link or if it don't, which objects do i need to modify, and after that how can i make the page aware of this changes ?

I don't need a full solution obligatory, just a hint would be already perfect.

Of course i already look at the documentation and all the examples, but i didn't find anything that can help me. And my personal investigation lead me to a tons of undocumented function and variable..

Thanks (And sorry if my english is not perfect, this is not my native language)
Attached Images

Admin Extension Zimlet CSS/Images issue.

$
0
0
Hello Everyone,

I'm developing Admin Extension Zimlet. I've specified resource and includeCSS tag in zimlet definition xml file. But zimbra doesn't load images or CSS files.

Any idea how to make this work?

Regards
Stalker.

create a url request component out of a hash ?

$
0
0
Hi,

is there a function in the API that converts a hash like this : {name1:value1, name2:value2} into the string : name1=value1&value2=value with properly encoded characters ? this is obviously to construct a URL.

Printing Multiple Attachments

$
0
0
We are using web UI and have vendors that send 10+ pdf invoices. Is there a way to print all of these without having to download them or open each one individually? I'm hoping a zimlet provides the option. Thanks!

Right click on an email address (Copy Email)

$
0
0
Hi there, i've been looking for a Zimlet that will basically allow me to click on an email, click on an email address and then right click and "copy email address" that would be added to the list of existing Right click options, such as find emails, Go to URL, Edit contact and so on.

Any suggestions how this can be done, or if there is something that already exists for this, i've searched yet not found.

I did try searching through all files for the text "Go to URL" and was going to see if I could adapt that menu, or atleast see how it was working, but cannot find the code that does this, any ideas?

Thanks

ZCS 8 and zimlet compatibility

$
0
0
Hi,
I'm using ZCS 8 GA on a Ubuntu 12.04 64bit; I'm very unlucky with zimlets.
I've tried "Social" (install is ok but I'm not able to add Facebook account), Yahoo maps and Email2Doc tell me that zmassistant in not assigned.
So.. where can I find a zimlet's list that are well tested on ZCS 8 ?
Thank you very much!

Social zimlet does not show properties of account any more

$
0
0
I have a problem with the zimlet social. Until now, in the social zimlet Zimbra social, I could click on the picture of a twitter account and a box would come up showing the twitter account so I can follow that account etc. Now, all that is shown is: Adam (undefined) on Twitter and that's all. No account details visible. The system is running zimbra 7.2.0_GA2681 build 20120703184628
I was told that this is because this zimlet is end-of-life
Kind regards,
Tony Thijs

Zimbra 8 Changes that may affect Zimlets

$
0
0
Hi,
I wanted to drop a note on some changes we did in Zimbra 8 that may affect Zimlet development. While, we didn't make any major changes to the Zimlet API, we did make some changes around views.

* View Type
A view type is the general type of view, such as "TV" or "CLV2", identified by the ZmId.VIEW_* constants. If the type of view supports session views, it is used as a base for the view ID.

GET: [controller].getDefaultViewType()

GET: [controller].getCurrentViewType()
SET: [controller].setCurrentViewType(type)

appCtxt.getCurrentViewType()

Now that view type is available, you should not need to use indexOf to see if a view is (for example) a compose view. The old way:
if (appCtxt.getCurrentViewId().indexOf("COMPOSE") >= 0) …

Instead, look at the view type:
if (appCtxt.getCurrentViewType() == ZmId.VIEW_COMPOSE) …

Also note the use of the ZmId constant rather than the string literal. Please use those constants, including the ones for other things such as item types, organizer types, and operations. That mostly applies to zimlet code.


* View ID
For views that do not support sessions, the view ID is the same as the view type, for example, "LOADING" or "ACCT". If the view supports sessions, the view ID is made up of the view type and the session ID.

GET: [controller].getCurrentViewId()
SET: [controller].setCurrentViewId(viewId)

appCtxt.getCurrentViewId()

* View
The view is the object that is being displayed, usually some form of DwtComposite such as DwtListView. Many top-level views are compound views, such as ZmDoublePaneView or ZmContactSplitView, which comprise a list view and an item view.

GET: [controller].getCurrentView()
If you want the list view from a view that may or may not be compound, use:

GET: [controller].getListView()

* Deprecated
VAR: [controller].sessionId
VAR: [controller].viewId
VAR: [controller]._currentView
GET: [controller]._getViewType()
GET: [controller]._defaultView()

For example in Z7 it was common do to the following:
com_zimbra_example_toolbarhook_HandlerObject.proto type.initializeToolbar = function(app, toolbar, controller, viewId) {
if (viewId == ZmId.VIEW_CONVLIST || viewId == ZmId.VIEW_TRAD) {
...
}
}

In Z8 this would look like:
com_zimbra_example_toolbarhook_HandlerObject.proto type.initializeToolbar = function(app, toolbar, controller, viewId) {
var viewType = appCtxt.getViewTypeFromId(viewId);
if(viewType == ZmId.VIEW_CONVLIST || viewType == ZmId.VIEW_TRAD) {
....
}
}

Thanks,
Jeff

Update Field Status in Database

$
0
0
Hi All,

I'm very new to Zimbra Application. I've scenario like, added one button (Archive) in Compose mail window. If I click on the button then I need to store a Boolean value in database. I'm able to set the Boolean value by using event mechanism through Zimlet, but I'm failing to update this Boolean value in the database. Please any one let me know how can we do this process using zimlet or any alternate way to do this. I'm really breaking my head, sine last two days.

Thanks & Regards

Sai Mohan

webex basic account & webex zimlet

$
0
0
Hi All,

I'm trying to add my webex account into zimbra and I'm sorry to say that it's not working as expected. I think the issue is related too the WebEx Company Id: field. Basic / most accounts do not have there own domain name for webex (example: company.webex.com). Is there a workaround?

Feasability of a special requirement

$
0
0
Hi,

please excuse but i am completely new to Zimbra and zimlets. I only want to ensure that a special requierement is feasable with zimlets. I am not familar with the power and diversity of zimlets. So please be indulge.

Is it possible to develop a zimlet that takes an outgoing email before sending and rebuild it completely (e.g. add/remove/modify body and attachments, etc.) and send it in this new format to the recipients? Is it possible that such a zimlet also runs identical in the zimbra desktop?
Viewing all 171 articles
Browse latest View live