i18n keys as display values with value-list filter option

Hi All,

I have used “Apply valuelist name as filter on column ‘valuelist_name’” option to populate the value-list in my solution.

In this case, I have used i18n keys (Eg: i18n:mysolution.valuelist1.value1) as display values. But it’s not loading the i18n value properly.

Is it possible to use i18n keys as display values with above implementation?

Servoy Version : Version: 7.4.1 - build 2028

Hi Nisala,

You can create an un-stored calculation, which will return the i18n value for the specified i18n key. (I guess you are keeping the i18n key in one of the column of the field)

// Code for calculation
function calculation_name() {
    return i18n.getI18NMessage(column_name_holding_the_i18n_key);
}

Use that calculation as the display field in your valuelist. It will work.

Hi Pradipta,

Thanks for the quick solution. It works perfectly.