Is there a way to simply access the returned value from one of the display fields in a databound combo/select list.
For example, i have a currency table, which is beinged use to populate a select item for currency, this uses an primary key value as the stored valueField, and displays the currency code/symbol. Additionally the exchange rate is in the Display list of the select item. There is another field in my form that i want to set as the FX rate whilst also continuing to set the currency primary key id for the current field.
I have a "change()" function on the currency field in question, however i don't seem to be able to reference values from the display field list of the picklist item, so that i can set the other FX Rate field.
Is this possible? I guess the alternate approach would be to have another call tot he database after selecting the currency to fetch again the FX rate and pop to the FX Rate field?
Attached is a shot of my play page, the currency code, name and fx rate are in the picklist display fields, the currencyID is set to this field value. THe fx rate though i want to set into the next field in the page called FX rate...
For example, i have a currency table, which is beinged use to populate a select item for currency, this uses an primary key value as the stored valueField, and displays the currency code/symbol. Additionally the exchange rate is in the Display list of the select item. There is another field in my form that i want to set as the FX rate whilst also continuing to set the currency primary key id for the current field.
I have a "change()" function on the currency field in question, however i don't seem to be able to reference values from the display field list of the picklist item, so that i can set the other FX Rate field.
Is this possible? I guess the alternate approach would be to have another call tot he database after selecting the currency to fetch again the FX rate and pop to the FX Rate field?
Attached is a shot of my play page, the currency code, name and fx rate are in the picklist display fields, the currencyID is set to this field value. THe fx rate though i want to set into the next field in the page called FX rate...
Comment