This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i am not all that clear with what the application but based on some assumptions I can say the following: let the name of Form=FORM1 name of textfield=TEXT1 name of list=LIST1
for accessing the combo box value you need to use this[this.selectedIndex].text..
then you may write
try it out. hope it helps.
Life called,so here I am.<br />Cheers<br />Niki.:-)
Joined: Mar 22, 2005
Hi, Thanks a lot Niki. Actually what I need is: I have two columns in a table. Occupation, OccupationRating. OccupationRating has corresponding rating for each Occuation. Occupation is implemented as Combobox and when user selects any option, the corresponding Occupationrating has to be retrieved from the table (for eg: two dimentional array) and need to show up in a noneditable textfield.
Joined: Mar 20, 2005
but check this out.
you must be populating the combo box in java using the database right??
well considering thats the case for each entry in the combo box you must be creating
or something like that. well wy dont you assign the rating to the name attribute of the option tag as
assuming the rating for engineer is 1. you will have to do this when you build the option tag in java.
i havent tried this out but i am preety sure it will work out. try it out and let me know.