Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #1 (permalink)  
Old 05-09-2008, 04:40 AM
ras ras is offline
Junior Member
 
Join Date: Mar 2008
Posts: 7
ras is on a distinguished road
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
ab5602 ab5602 is offline
Member
 
Join Date: Nov 2007
Location: Detroit, MI
ZCS Version: Release 5.0.5_GA_2201.UBUNTU6 DEBIAN4.0 NETWORK edition
Posts: 22
ab5602 is on a distinguished road
Send a message via Yahoo to ab5602
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
 
Join Date: Mar 2008
Posts: 7
ras is on a distinguished road
Default

ok Thanks..
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Upgraded to 5.0 OSS - Sendmail Problem Chewie71 Installation 11 12-28-2007 06:07 PM
Zimbra, DNS & Postfix \ MTA stillwell Installation 5 06-28-2007 09:29 AM
3.0 to 4.5.3 Upgrade failed (mysql error) dealt Installation 35 03-19-2007 10:30 PM
Mail not being delivered EnglishDude Administrators 11 03-01-2007 09:28 AM
Zimbra fails after working for 2 weeks Linsys Administrators 9 10-20-2005 01:26 PM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.0.0