Sorry for the massive amount of questions,
but I do not understand this error message:
Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!dropdownField [line 978]: A dropdown component [label=“Symbol Modifier 1”] has an invalid value for “value”. All selected values must be present in the choiceValues array, but value was 00 and choiceValues was 00.
here is my full drop down:
a!dropdownField( label: "Symbol Modifier 1", labelPosition: "JUSTIFIED", placeholder: "--- Select a Value ---", choiceLabels: { choose( wherecontains(local!mod1, local!modList), "1", local!airmod1.firstmodifier, local!airmmod1.firstmodifier, local!spacemod1.firstmodifier, local!spacemmod1.firstmodifier, local!landUnitmod1.firstmodifier, local!civLandmod1.firstmodifier, local!landEquipmod1.firstmodifier, local!landInstall.firstmodifier, ("not here"), local!SeaSurface.firstmodifier, local!SeaSubSurface.firstmodifier, local!activities.firstmodifier, local!signals.firstmodifier, ) }, choiceValues: choose( wherecontains(local!mod1, local!modList), tostring("00"), local!airmod1.code, local!airmmod1.code, local!spacemod1.code, local!spacemmod1.code, local!landUnitmod1.code, local!civLandmod1.code, local!landEquipmod1.code, local!landInstall.code, tostring("00"), local!SeaSurface.code, local!SeaSubSurface.code, local!activities.code, local!signals.code, ), value: tostring("00"), /*if(*/ /*rule!APN_isEmpty(ri!Symbol.symbMod1),*/ /*"00",*/ /*ri!Symbol.symbMod1*/ /*),*/ saveInto: {ri!Symbol.symbMod1,a!save(local!symbMod1,ri!Symbol.symbMod1)}, searchDisplay: "AUTO", showWhen: not(rule!APN_isEmpty(local!mod1)), validations: {} )
I am trying to get a string representation of 00
I have tried using "00" and tostring("00")
I think it has to be how the choose or the where contains functions work because I have hard coded the same value in and it is still giving me the same error message.
I have tried changing the value and the error message changes so that is not it.
thanks in advance for your assistance,
Kevin
Discussion posts and replies are publicly visible