i18n keys work well in custom value lists, but if I store an i18n key string in my db column, and create a val list that displays the column containing the i18n key string, I see the key string itself and not its related value. Is this the expected behavior? Is i18n supported for valuelists gotten from db tables?
displayvalue string should be something like ‘i18n:msg_key’
So did you add the ‘i18n:’ ?
Yes
so how is the valuelist populated?
Table values, not related and not custom.
Thanks
Tried some different approaches on this, but the only thing which seems to work is creating a dataset containing these values and set them with application.setValueListItems(‘myValuelist’,$ds).
Downside of course: it won’t be dynamic anymore.
Hope this helps
i18n elements for valuelist are only meant for DisplayValues not the real values (the dataprovider value is real value)
So i guess this will not work no. I dont think we first convert the dataprovider/realvalue to a message and then check if it is in the valuelist…
Thanks for the reply. In my case I am using the i18n for the display value, but I understand why it does not work. Maybe a checkbox for “eval i18n on display value” or something could be added as a feature someday.