I am creating log entries when saving my forms using getOldValues and getChangedValues. It works for many formitems. However, I am having trouble getting some new values displayed on the form when the SAVE button is clicked. These are selectItems using the valueField/displayField scheme where the former has a key value and the latter is looked up.
Having the name of the field (fname) I can get the Old value ok using the result of getDisplayFieldName(fname) and to look in getOldValues. But, that does not work in getChangedValues. Nor does form.getItem(fname).getDisplayValue(). It just returns the key value.
Any clues how to get a value I can see with my eyes?
I will, of course, keep looking. But, it is not obvious to me.
Thanks,
Rick
P.S. I am running SmartClient Version: v8.2p_2013-01-14/EVAL Development Only on Mozilla Firefox 12.0 with Firebug using Windows XP Pro 32 bit.
Having the name of the field (fname) I can get the Old value ok using the result of getDisplayFieldName(fname) and to look in getOldValues. But, that does not work in getChangedValues. Nor does form.getItem(fname).getDisplayValue(). It just returns the key value.
Any clues how to get a value I can see with my eyes?
I will, of course, keep looking. But, it is not obvious to me.
Thanks,
Rick
P.S. I am running SmartClient Version: v8.2p_2013-01-14/EVAL Development Only on Mozilla Firefox 12.0 with Firebug using Windows XP Pro 32 bit.
Comment