Example:
batchTag is an enumerated type attribute of a batchRange, with values like so:
JAN1 "January Biweekly 1",
JAN2 "January Biweekly 2",
etc.
I want to display the VALUE of the batchTag in the select, IOW, the select should contain
"January Biweekly 1"
"January Biweekly 2" ...
not
JAN1
JAN2
FEB1
FEB2
FEB3 ...
I have tried several things in the g:select to do this, but without any success. I thought perhaps “it” would be available as part of the g:select (as it is clearly an iteration) and tried to reference it.batchTag.name for the optionValue, but that did not work. Any suggestions?
Thank you!
Note the getKey() method. And then your g:select
or