Get current user language to use in XPath

0
Hello,   Is it possible to use the current user language in XPath constraint ?   I’m now using [Langu = 'EN'] but ‘EN’ should be the language from the user that’s logged in.   Regards, Michel
asked
3 answers
1

Exactly what Luuk is saying:

On your page get a dataview with the language object. Either through a DS microflow or pass the language as a page parameter.

Then in the datagrid you can use that “Language” to be the $currentObject as it is around your data grid. 

answered
1

Hi Micel,

 

You can retrieve the language from the current user [System.User_Language = '[%CurrentUser%]'] and use that as a variable in your XPath query?

Then you get [Langu = $Language/Code]

The Code typically is the code that you see in the Language settings so for American English: ‘en_US’

answered
0

You should be able to doing this:

 

example

answered