Steve7452812
Posts: 0
Joined: Thu Mar 26, 2015 9:55 pm

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

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

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

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

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

Return to “Issues”