Hi, I'm trying to recover the system language that a user has set on his tools->settings->Language: or Metadata Language: from a content server table like KUAF. Can I get this knowing the userid? Thanks in advance
The table, KUAFPrefs can give this info.
There is a PrefsKeyword, MetadataLanguage, that would have the metadatalanguage such as 'en'.
For system language, in the "General" PrefsKeyword, would be an assoc, that would contain a value, "localeType", which would have something like en_US.
The rows in this table are only filled out if the user has ever set their personal settings, for the first time. Otherwise, it'll be blank and you can assume they have the defaults, in my mind.
If you like WebReports, the USERPREF sub-tag can give you a way to pluck this information, if don't want to go the route of direct DB-queries, provided you already have a listing of UserIDs. (Will likely need you to use DEF to have some sort of default return, in the case there is nothing there)
If you are in OScript, then you can look in the UAPI package at the following methods :