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 05-09-2008, 04:40 AM
ras ras is offline
Junior Member
 
Posts: 7
Default unable to use type : "select" in PropertyEditor

i have created a zimlet that opens up a propertyEditor. I tried using date as type which works but with select it didnt work. when the editor is display it just shows the text box and not the dropdown. and also tell me what attribute is to be used with select whether it is item or items.

var O=new DwtPropertyEditor(N,true);
var M=[{label:"Account Name",name:"Name",type:"string",value:"",required: true},
{label:"Website",name:"Website",type:"string",valu e:""},
{label:"acc",name:"acc",type:"select",value:"",ite m:[{label:"one",value:"one"},
{label:"two",value:"two"}],},
{label:"Dob",name:"Dob",type:"date",value:""}];
O.initProperties(M);
O.setFixedLabelWidth();
O.setFixedFieldWidth();

what is wrong with this code..???
waiting for reply..
Reply With Quote
  #2 (permalink)  
Old 05-09-2008, 06:38 AM
Project Contributor
 
Posts: 67
Default

I ran into this problem too.. The issue turned out to be that the 'select' option does not seem to be available to the DwtPropertyEditor object. Instead, you have to create your own dialog box, without using DwtPropertyEditor & fill it with your own HTML:

Code:
this._view = new DwtComposite(this.getShell()); 
...
this._select = new DwtSelect(this._view);
Hope this helps!
Reply With Quote
  #3 (permalink)  
Old 05-09-2008, 09:04 PM
ras ras is offline
Junior Member
 
Posts: 7
Default

ok Thanks..
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.