documentation missing?

Release notes for Servoy betas

documentation missing?

Postby RobertMeyer » Sat Dec 27, 2003 9:11 pm

I'm trying to use the method "getSelectedElements" with
a field whose display type is "check".

the method appears to return an array, and after checking
a few of the checkboxes, I can see that the resulting array
contains the items that were checked. so far, so good.

however, how can I tell how MANY items are in this array?
(or, how many of the checkboxes were checked).

I believe I've searched all available documentation, but
can't find this function described anywhere.

thanks in advance.
rm.
RobertMeyer
 
Posts: 268
Joined: Sat Dec 27, 2003 9:05 pm

Postby maarten » Sun Dec 28, 2003 11:10 am

var check = elements.myValueList.getSelectedElements()
var lengthOfArray = check.length


Here are some good references to java scripting with clear examples.

http://devedge.netscape.com/library/manuals/2000/javascript/1.5/guide/
http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/
Maarten Berkenbosch
User avatar
maarten
 
Posts: 797
Joined: Wed Apr 23, 2003 10:52 pm
Location: Amersfoort, Netherlands

Postby RobertMeyer » Sun Dec 28, 2003 6:46 pm

thanks Maarten;

I just discovered that this is a java function, not
a servoy function. I hadn't realized that at first.

thanks for getting back to me.

rm.
RobertMeyer
 
Posts: 268
Joined: Sat Dec 27, 2003 9:05 pm

Postby maarten » Sun Dec 28, 2003 7:25 pm

Since arrays are used quite often, I'll ask dev team if they can put in an extra tree for array functions
(inside the JS Lib of the method editor)

thanks.
Maarten Berkenbosch
User avatar
maarten
 
Posts: 797
Joined: Wed Apr 23, 2003 10:52 pm
Location: Amersfoort, Netherlands


Return to Latest Releases

Who is online

Users browsing this forum: No registered users and 2 guests