Value list display name merged from two i18n texts

Hi,

How can I set the Display Name for an item in a value list by merging two or more texts from i18n? Something like in a field from a form when you set the displayTags property to True, and you can add the i18n texts inbetween %%i18n:textKey%%.

Thanks,
Bogdan.

I think the easiest option is to use a calculation that returns the two texts.

Hi, but it’s a text in a ValueList. I want it to be visible in then list of a ComboBox. Can this be done?

Thanks,
Bogdan.

yes, a database valuelist can use a calculation.

Hi, thanks for the reply!

I think I didn’t make myself understood :) I should read the posts I made twice before sending them.

My value list it’s a static one and looks like this:

i18n:administrator|1
%%i18n:administrator%% & %%i18n:instructor%%|5
i18n:instructor|2
i18n:engineer|3
i18n:accountant|4

I was wandering if I can merge two i18n texts directly in the Custom Values editor of the valuelist, so I don’t have to create a new i18n text. Like it’s possible for a field/label text if I use displayTags property.

Thanks!

There is currently no such support on custom valuelists, you have to create a new i18n key today.
If this is important for you, file a feature request at http://servoy.com/s

Hi,

In the end I manage to do it like this:

	var contactRoles = application.getValueListItems("contact_roles");
	contactRoles.setValue(2, 1, i18n.getI18NMessage("administrator") + " & " + i18n.getI18NMessage("instructor"));
	application.setValueListItems("contact_roles", contactRoles);

So, right now, I don’t know if I will ever need it, but just out of curiosity, I wanted to know if it works. Maybe I will request it as a feature, bacause, if it works for Labels, would be nice to work also here.

Thanks a lot,
Bogdan.