Question

1
Replies
15
Views
Jorre Member since 2018 7 posts
ING Belgium SA NV
Posted: June 11, 2020
Last activity: June 15, 2020

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).

D_Offices (office-class)

pxResults(1)    * housenumber (as this is language independend)    * ZIPCode    * LanguageDependendInfo(NL).Streetname (streetname in Dutch)                                                      .Town                                                      .Office    * LanguageDependendInfo(FR).Streetname (streetname in French)                                                      .Town                                                      .Office pxResults(2) ...

 

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? Help appreciated!

 

Pega Platform 7.3 User Interface Financial Services Front-End Developer
Share this page LinkedIn