Can I get a not binding column's value of a dropdown?

Hi,A dropdown bind a database table, value field is id,display field is name,but I want to get other column,can i get the value directly and that don't get the value from database by value field?ThanksSmile
[235 byte] By [nsqsmilea] at [2007-11-27 4:53:17]
# 1

I am not sure what you mean by "that don't get the value from database by value field"

Do you mean that your drop-down list is not bound to a database table?

See: http://developers.sun.com/jscreator/learning/tutorials/2/listbox_components.htm l

Do you mean that you want to get a different value from the database record that was selected? Then here is one way to do it: It finds the record for the corresponding id. Once you get the record you can get any other value from that record:

personDataProvider.setCursorRow(

personDataProvider.findFirst(

"PERSON.PERSONID", personIdDD.getSelected()));

Here are some sample programs to give you ideas:

http://blogs.sun.com/divas/entry/coordinated_drop_down_lists

http://developers.sun.com/jscreator/learning/tutorials/2/databoundcomponents.ht ml

jetsonsa at 2007-7-12 10:07:35 > top of Java-index,Development Tools,Java Tools...