Page 1 of 1

how do you find the number of items in a select list that was populated by from a database

Posted: Thu Mar 26, 2015 9:55 pm
by Steve7452812

I am populating a select list from a database and need to know how many items have been retrieved and entered into the list.


how do you find the number of items in a select list that was populated by from a database

Posted: Fri Mar 27, 2015 3:41 am
by Bruce Stuart

Steve,
In the success event of the data service that populates your list put Java code like this:

var nitems = data.length;

You can then take that variable and store it to a local storage items... Or move it to a hidden control on your user interface.

Best,

Bruce