# GUI / SQL backend / Valuelist

**URL:** <https://forum.servoy.com/t/gui-sql-backend-valuelist/1859>\
**Category:** Classic Servoy\
**Created:** [May 7, 2004, 2:37pm UTC](https://forum.servoy.com/t/gui-sql-backend-valuelist/1859 "2004-05-07T14:37:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebrandt](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@ebrandt](https://forum.servoy.com/u/ebrandt)\
**Post date:** [May 7, 2004, 2:37pm UTC](https://forum.servoy.com/t/gui-sql-backend-valuelist/1859/1 "2004-05-07T14:37:51Z")

</div>

I have a table for orders, and a table for accounts. I have created a valuelist in the orders form that display’s a listing of account names sorted by name from the Account Table. When the account is selected the account ID is inserted. So far this is what I want.

The problem I have is that there are 2400 account names in the listing, and it is only displaying the first 200 records. What I want to accomplish is a way for the user to type the first few letters of the account name and it would scroll to the section of the listing which alphabectically matches what is typed.

This was easy to accomplish in filemaker, but I am having trouble understanding the architechure. I have played around with several methods, and I could not even get the value list to display all 2400 records.

I am guessing that there will need to be some sort of SQL select statement embedded in a method.

Thanks for everyones patience, I have tried the help section, and read the documentation, but I guess this is a development design issue, and I need to better understand the development enviorment.

---

<div class="post-metadata">

**Author:** ![Riccardino](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Riccardino](https://forum.servoy.com/u/Riccardino)\
**Post date:** [May 7, 2004, 5:16pm UTC](https://forum.servoy.com/t/gui-sql-backend-valuelist/1859/2 "2004-05-07T17:16:10Z")

</div>

> ebrandt:  
> This was easy to accomplish in filemaker, but I am having trouble understanding the architechure. I have played around with several methods, and I could not even get the value list to display all 2400 records.
> 
> I am guessing that there will need to be some sort of SQL select statement embedded in a method.

Have you tried using a SQL query, storing the result in a variable and create an array to populate the valuelist?  
I don’t remember the syntax (and I can’t check it right now), but I think this option could do what you’re asking…

---

<div class="post-metadata">

**Author:** ![ebrandt](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@ebrandt](https://forum.servoy.com/u/ebrandt)\
**Post date:** [May 7, 2004, 5:27pm UTC](https://forum.servoy.com/t/gui-sql-backend-valuelist/1859/3 "2004-05-07T17:27:15Z")

</div>

OK, Thanks, thats a place to start, I am still trying to understand variables and array’s and how they are used. This should be a good way to better understand the Servoy tool set.

Thanks Again,  
Erich

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [May 8, 2004, 5:18pm UTC](https://forum.servoy.com/t/gui-sql-backend-valuelist/1859/4 "2004-05-08T17:18:54Z")

</div>

having a valuelist of more then 200 values is really not a good UI design  
You should give the user a search dialog where he can search for that contact. That’s a much better approace.

That you only see 200 is a bit strange because the limit we have is 500 when you are displaying non distinct values (that you de because we are doing a distinct select when what you show is the same as what you return but you have name/id combinaton)
