Results 1 to 4 of 4

Thread: Zimlet Configuration

  1. #1
    Join Date
    Feb 2006
    Posts
    1
    Rep Power
    9

    Question Zimlet

    HI,
    I developed a zimlet that takes a hard coded user id and password. I need to pass the usernmae from the browser. can any one halp me that how thje XML file read the data and pass it the application that it invokes.

  2. #2
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default

    Did you read the spec?

    If you've got something in your .xml file like this
    Code:
        <userProperties>
            <property type="string" name="user" minLength="0" maxLength="32" label="Username" />
            <property type="password" name="pass" minLength="0" maxLength="32" label="Password" />
        </userProperties>
    In your .js file, you can set them with this:
    Code:
    this.createPropertyEditor();
    and refer to them:
    Code:
    this.getUserProperty("user");
    this.getUserProperty("pass");

  3. #3
    Join Date
    Nov 2006
    Posts
    13
    Rep Power
    9

    Default How to emit a button from the edittor props

    Hi,
    We need to have a single button as ok or cancel otherwise close.
    How can we do this ?
    thank u.



    Quote Originally Posted by marcmac View Post
    Did you read the spec?

    If you've got something in your .xml file like this
    Code:
        <userProperties>
            <property type="string" name="user" minLength="0" maxLength="32" label="Username" />
            <property type="password" name="pass" minLength="0" maxLength="32" label="Password" />
        </userProperties>
    In your .js file, you can set them with this:
    Code:
    this.createPropertyEditor();
    and refer to them:
    Code:
    this.getUserProperty("user");
    this.getUserProperty("pass");

  4. #4
    Join Date
    Nov 2006
    Posts
    13
    Rep Power
    9

    Default customizing editor props

    Hi,
    We need to display an editor props in zimbra.
    But we should have only a single button in the editor props.
    just ok or cancel or close button.
    How can we do this?
    can u please help , and send us the code and the way to proceed.

    Thanks a lot.




    Quote Originally Posted by marcmac View Post
    Did you read the spec?

    If you've got something in your .xml file like this
    Code:
        <userProperties>
            <property type="string" name="user" minLength="0" maxLength="32" label="Username" />
            <property type="password" name="pass" minLength="0" maxLength="32" label="Password" />
        </userProperties>
    In your .js file, you can set them with this:
    Code:
    this.createPropertyEditor();
    and refer to them:
    Code:
    this.getUserProperty("user");
    this.getUserProperty("pass");

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Replies: 5
    Last Post: 01-11-2008, 05:34 AM
  3. Replies: 13
    Last Post: 07-20-2007, 04:21 AM
  4. Domain Admin Error: Permission Denied
    By shanson in forum Administrators
    Replies: 3
    Last Post: 05-29-2007, 06:48 AM
  5. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11: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
  •