Hi
I have a persistent component which has a custom property which looks like this:
property name=“DISPLAY_IN_DIRECTORY_LB” setter=“false” formula="
select CASE WHEN DISPLAY_IN_DIRECTORY_NB = 1 THEN ‘Public’ ELSE ‘Private’ END from JOU_V_REV_PECO vrp where vrp.peco_ky = peco_ky
";
This works fine.
However, I want to replace the words ‘Private’ and ‘Public’ with strings from my language resource bundle, eg, “#getResource(“template.public”)#”. As soon as I do this I run into a, “Expression in cfproperty value must have a constant value” error.
I have tried loading the strings into local variables in the init() method and using the local variable instead, but I get the same error, no doubt for the same reason.
Does anyone know how I can achieve this?