I need to dynamically show a property from a language dependend pagegroup in an autocontrol
I have this Data Page containing the addresses of different offices. Part of the data (streetname, town, office) is language dependend, so stored in an embedded pagegroup (index=languagecode).
* housenumber (as this is language independend)
* LanguageDependendInfo(NL).Streetname (streetname in Dutch)
* LanguageDependendInfo(FR).Streetname (streetname in French)
The objective is to display an autocomplete in my section containing the address in the users default language (OperatorId.Language), but make all languages seachable.
So I tried showing .LanguageDependendInfo(OperatorId.Language).Streetname, but this generates an error on the embedded pagegroup index.
On the other hand .LanguageDependendInfo(NL).Streetname (which I would use behind the scenes. Searchable, but not shown) works fine, so somehow it should be possible.
Do I need to surround my index with some code in order to execute this first and use the result?