get column's header and put into a dropdown.

Hi all,

I'd like to get programatically the shown text to the user in a simple tabe that it's bind to a database and put the columnnames to a dropdown.

any ideas?

thank's in advance!

regards

[225 byte] By [NewLitusa] at [2007-11-27 10:12:06]
# 1

Oh!! I've a same problem.

I need to know how obtain the table headers and put into a dropdown.

Anyone knows how do it?

Tnx

Reliona at 2007-7-28 15:18:06 > top of Java-index,Development Tools,Java Tools...
# 2

Any example please?

NewLitusa at 2007-7-28 15:18:06 > top of Java-index,Development Tools,Java Tools...
# 3

Hi There,

Im not sure what you are asking for, but if you want to populate a dropdown from data from database, this will help

http://www.netbeans.org/kb/55/dropdowncomp.html

Thanks

K

kish@suna at 2007-7-28 15:18:06 > top of Java-index,Development Tools,Java Tools...
# 4

> Hi There,

>

> Im not sure what you are asking for, but if you want

> to populate a dropdown from data from database, this

> will help

>

> http://www.netbeans.org/kb/55/dropdowncomp.html

>

> Thanks

> K

No, I know how to bind the dropdown directly to a Database this is simply.

The steps of my idea:

1. drag and drop a table.

2. Bind to a database table.

3.drag and drop a dropdownlist.

4. Obtain only the visible fields in the table (When I bind the data to table, I can select with table layout option the database fields to display.).

The idea is search by column in the table. The user selects in the dropdown the column and then search a word.

The 4 step is difficult for me.

Thank's

NewLitusa at 2007-7-28 15:18:06 > top of Java-index,Development Tools,Java Tools...