valuelist Property Type in Web Component Spec

Forum to discuss the new web client version of Servoy.

valuelist Property Type in Web Component Spec

Postby sbutler » Thu Sep 17, 2015 1:01 am

On the docs, it shows a "valuelist" is a valid type. https://wiki.servoy.com/display/DOCS/Property+types
However, when I specify it, its not available to be set in the properties of the designer. Is there something special about the valuelist type?

Code: Select all
{
   ...
   "model":
   {
      "myValuelist":"valuelist"
   }
}
Scott Butler
iTech Professionals, Inc.
SAN Partner

Servoy Consulting & Development
Servoy University- Training Videos
Servoy Components- Plugins, Beans, and Web Components
Servoy Guy- Tips & Resources
ServoyForge- Open Source Components
User avatar
sbutler
Servoy Expert
 
Posts: 759
Joined: Sun Jan 08, 2006 7:15 am
Location: Cincinnati, OH

Re: valuelist Property Type in Web Component Spec

Postby derk.hulshof » Thu Sep 17, 2015 1:37 pm

Hi Scott,
Don't know if the valuelist is a special type, or how to get it connected to a valuelist.
But it looks to me that a valuelist is an array.

"model":
{
"myValuelist" : { "type": "valuelist[]" }
}
derk.hulshof
 
Posts: 108
Joined: Tue Dec 03, 2013 9:18 am
Location: Netherlands

Re: valuelist Property Type in Web Component Spec

Postby sbutler » Thu Sep 17, 2015 5:11 pm

It contains an array of elements, but the valuelist itself should be a single element. I even coppied from Servoy's example, with no success: https://github.com/Servoy/servoy-client ... bobox.spec

Code: Select all
{
   ...
   "model":
   {
      "dataProviderID" : { "type":"dataprovider", "pushToServer": "allow", "tags": { "scope": "design" }},
      "myValuelist": { "type" : "valuelist", "tags": { "scope" :"design" }, "for": "dataProviderID"}
   }
}


Wondering if it has something to do with the manifest Servoy is using: https://github.com/Servoy/servoy-client ... ANIFEST.MF
Code: Select all
Global-Types: globaltypes/customTypes.spec


Johan?
Scott Butler
iTech Professionals, Inc.
SAN Partner

Servoy Consulting & Development
Servoy University- Training Videos
Servoy Components- Plugins, Beans, and Web Components
Servoy Guy- Tips & Resources
ServoyForge- Open Source Components
User avatar
sbutler
Servoy Expert
 
Posts: 759
Joined: Sun Jan 08, 2006 7:15 am
Location: Cincinnati, OH

Re: valuelist Property Type in Web Component Spec

Postby lvostinar » Fri Sep 18, 2015 10:23 am

"myValuelist":"valuelist" is fine, there is a bug in editor so it doesn't show in Properties View. We already fixed that now.
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1062
Joined: Tue Feb 19, 2008 10:53 am


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 7 guests