How can we fetch the users local settings language

lock
push_pin
done
Answered
2

Hi,

As the topic states, how can we fetch the user license using the Netserver?

The closest we have actually found is the homecountry from SoContext.CurrentPrincipal, but, that does not really work :)

Do we have to use the findagent and fetch the language from userprefference table or something?

11 Apr 2025 | 07:49 AM

All Replies (2)

You can use the lanc/kang/'lang' template variables to pass it to your web app, if you want to retrieve it from the database you can take it from the user preference table, prefsection = 'Functions', prefkey = 'LanguageUICookie'.

Do note that, sadly, not all local user settings are saved to the database, only the language, number date format and e-mail client are. (number and date format is prefkey 'LanguageCookie', E-mail client is 'DefaultMailClient').

11 Apr 2025 | 07:59 AM
Wow, thanks alot man! Really appreciate it
11 Apr 2025 | 08:01 AM

Add reply