Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-23-2006, 02:27 AM
Starter Member
 
Posts: 1
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.
Reply With Quote
  #2 (permalink)  
Old 02-23-2006, 08:05 AM
Zimbra Employee
 
Posts: 2,103
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");
Reply With Quote
  #3 (permalink)  
Old 03-05-2007, 05:55 AM
Member
 
Posts: 13
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");
Reply With Quote
  #4 (permalink)  
Old 03-05-2007, 09:53 PM
Member
 
Posts: 13
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");
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.