Results 1 to 6 of 6

Thread: [SOLVED] dragSource for uploaded document

  1. #1
    shillman is offline Junior Member
    Join Date
    Jan 2010
    Posts
    4
    Rep Power
    5

    Default [SOLVED] dragSource for uploaded document

    Is there a way to specify a dragSource for a document in my briefcase?

  2. #2
    sposetti is offline Former Zimbran
    Join Date
    Nov 2009
    Posts
    105
    Rep Power
    5

    Default

    You can indicate a briefcase item is a valid dragsource in your Zimlet Definition File XML with:

    <dragSource type="ZmBriefcaseItem" />

    In your zimlet, in the doDrop(obj) method, the ZmBriefcaseItem object will be passed in. You can check obj.type for "BRIEFCASE_ITEM".

  3. #3
    shillman is offline Junior Member
    Join Date
    Jan 2010
    Posts
    4
    Rep Power
    5

    Default

    <dragSource type="ZmBriefcaseItem" /> worked
    but, the object in the js file is undefined:

    com_zimbra_fooHandlerObject.prototype.doDrop =
    function(obj) {
    var type = obj.TYPE;
    alert(obj.TYPE);
    ...
    }

  4. #4
    sposetti is offline Former Zimbran
    Join Date
    Nov 2009
    Posts
    105
    Rep Power
    5

    Default

    I found with ZmBriefcaseItem, you have to check for obj.type (lowercase), not obj.TYPE.

  5. #5
    shillman is offline Junior Member
    Join Date
    Jan 2010
    Posts
    4
    Rep Power
    5

    Default

    That worked. I am using the desktop client so I can't open a browser to do some js debugging (at least I don't think I can). How can I see what methods are available for this object? Do I need ot download the source code?

    Thanks..

  6. #6
    sposetti is offline Former Zimbran
    Join Date
    Nov 2009
    Posts
    105
    Rep Power
    5

    Default

    Here's a link to the Zimlet Developer's Guide:

    ZCS 6.0:Zimlet Developers Guide:Introduction - Zimbra :: Wiki

    There is a section on using Zimbra Desktop for development, accessing the interface via a browser, turning on logging, etc:

    ZCS 6.0:Zimlet Developers Guideev Environment Setup - Zimbra :: Wiki
    Last edited by sposetti; 01-20-2010 at 04:57 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Problem displaying word document attachment
    By gallimore in forum Administrators
    Replies: 9
    Last Post: 10-23-2009, 12:08 PM
  2. Cannot view global domain document
    By lilwong in forum Installation
    Replies: 5
    Last Post: 11-19-2007, 01:56 AM
  3. Document doesn't work (zcs 5.0 beta 3)
    By wcbenyip in forum Administrators
    Replies: 0
    Last Post: 09-07-2007, 12:50 AM
  4. Document Provisioning error
    By jawad@cogilent.com in forum Administrators
    Replies: 1
    Last Post: 11-20-2006, 12:52 AM
  5. upgrade 3.01>4.0.2@userlimit= backups "unknown document: BackupRequest"
    By martin@coherentlogix.com in forum Installation
    Replies: 6
    Last Post: 10-04-2006, 08:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •