Results 1 to 3 of 3

Thread: Zimlet Not Working Since Upgrade from 4.5 to 5.06

  1. #1
    Join Date
    Feb 2008
    Location
    Littleton, CO
    Posts
    9
    Rep Power
    0

    Default Zimlet Not Working Since Upgrade from 4.5 to 5.06

    Hello,

    I have this zimlet that we were using in 4.5 and is now not working in 5.06:

    <zimlet name="com_phpministry_oss" version="1.0" description="Database">
    <includeCSS>oss.css</includeCSS>
    <resource>oss.gif</resource>
    <zimletPanelItem label="Manage My Seminars" icon="oss-panelIcon">
    <toolTipText>Right-click to Schedule Seminar</toolTipText>
    <contextMenu>
    <menuItem label="Online Seminar Scheduling" id="mail.familyfoundations.us:20443/oss" icon="oss-panelIcon">
    <canvas type="window" title="Support Form" />
    <actionUrl method="post" target="https://mail.familyfoundations.us:20443/oss">
    <param name="param">${obj.appCtxt._activeAccount.name}</param>
    </actionUrl>
    </menuItem>
    </contextMenu>
    </zimletPanelItem>
    </zimlet>


    My goal is for the ${obj.appCtxt._activeAccount.name} to be replaced by the current logged in Zimbra user. I know that ${obj.appCtxt._activeAccount.name} is not correct, but I want to end up generating the url:

    https://familyfoundations.us:20443?param="dave", where "dave" is the currently logged in user. Previously, in version 4, this was stored in ls_last_username. Under version 5, the lsl_last_username stored in the cookie is no longer there, so I want to pass the username on the url.

    I looked in firebug and found that appCtxt._activeAccount.name} contains the current username, so I am trying to extract that from DOM. How do I do that?

    Thanks,

    Dave

  2. #2
    Join Date
    Sep 2005
    Posts
    55
    Rep Power
    10

    Default

    appCtxt is now a global (window) variable, so try one of these:

    appCtxt.getUsername()
    appCtxt._activeAccount.name
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Join Date
    May 2007
    Posts
    7
    Rep Power
    8

    Default Do I have the syntax right?

    I tried what you said. Here's how I changed it:

    <zimlet name="com_phpministry_oss" version="1.0" description="Database">
    <includeCSS>oss.css</includeCSS>
    <resource>oss.gif</resource>
    <zimletPanelItem label="Manage My Seminars" icon="oss-panelIcon">
    <toolTipText>Right-click to Schedule Seminar</toolTipText>
    <contextMenu>
    <menuItem label="Online Seminar Scheduling" id="www.company.com/oss" icon="oss-panelIcon">
    <canvas type="window" title="Support Form" />
    <actionUrl method="post" target="https://www.company.com/oss">
    <param name="param">${appCtxt._activeAccount.name}</param>
    </actionUrl>
    </menuItem>
    </contextMenu>
    </zimletPanelItem>
    </zimlet>

    Notice the <param line.

    This was translated when I clicked on the Zimlet into:


    https://www.company.com/oss/?param=$%7BappCtxt._activeAccount.name%7D

    (it took it literally, rather than translating it.

    Likewise, I changed it to:

    <zimlet name="com_phpministry_oss" version="1.0" description="Database">
    <includeCSS>oss.css</includeCSS>
    <resource>oss.gif</resource>
    <zimletPanelItem label="Manage My Seminars" icon="oss-panelIcon">
    <toolTipText>Right-click to Schedule Seminar</toolTipText>
    <contextMenu>
    <menuItem label="Online Seminar Scheduling" id="mail.familyfoundations.us:20443/oss" icon="oss-panelIcon">
    <canvas type="window" title="Support Form" />
    <actionUrl method="post" target="https://mail.familyfoundations.us:20443/oss">
    <param name="param">${appCtxt.getUsername()}</param>
    </actionUrl>
    </menuItem>
    </contextMenu>
    </zimletPanelItem>
    </zimlet>

    (change is on the <param line, above

    Here's what got put on to the URL line when the window was popped:

    https://mail.familyfoundations.us:20443/oss/?param=$%7BappCtxt.getUsername()%7D

    Do I have the syntax of the "<param" line correct?

    Thanks,

    Dave

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 09:06 AM
  2. Outlook 2007 Beta error
    By bersrker in forum Zimbra Connector for Outlook
    Replies: 13
    Last Post: 07-17-2008, 07:38 AM
  3. Can't Login to Admin Console - 5.0.1_GA_1902
    By FritzBrause in forum Installation
    Replies: 15
    Last Post: 02-05-2008, 05:23 PM
  4. Replies: 5
    Last Post: 01-11-2008, 04:34 AM
  5. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 10:38 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
  •