var ACTION = AppGiniField('ActionR').getValue();
If
ActionR
-field is a lookup (which I cannot see from your bugreport), remember that
.getValue()
returns an
object, having
id
and
text
, not a simple type value.
Check return value in console:
Code: Select all
var field = AppGiniHelper.DV.getField("FIELDNAME");
var field_value = f.getValue();
console.log(field_value);
Examples
Here are two examples, directly from console.

- chrome_44wrKVe0kX.png (5.6 KiB) Viewed 5914 times
- First calls
.getValue()
on a field which is VarChar[100]
field, converted to color-picker by using dv.getField("varchar").toColorPicker();
(just an example from a previous forum thread)

- chrome_gC5Dj0ch31.png (766 Bytes) Viewed 5914 times
.getValue()
evaluates as a (simple-type) string.
- Second calls
.getValue()
on a field which is a Lookup field (unsigned int
).

- chrome_TfUcU91zKQ.png (2.11 KiB) Viewed 5914 times
getValue()
evaluates as an object, having id
and text
properties.
Tip (1)
Use
field_value.id
and/or
field_value.text
for getting the
id
or the
text
of the selected entry of a lookup field, if set.
Tip (2)
If you only need the
text-value of a lookup-field's selection, you can use
.getValue(true)
:

- chrome_Lxh9RfSC3p.png (2.33 KiB) Viewed 5914 times
Tip (3)
If there is no selection, yet, .getValue() returns null and getValue(true) returns an empty string:

- chrome_ZV4NHbSwNy.png (1.5 KiB) Viewed 5914 times

- chrome_YQQ6w4PEvT.png (3.92 KiB) Viewed 5914 times
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readability
AppGini 25.10 + all AppGini Helper tools