The CreatorCon Call for Content is officially open! Get started here.

setting language for an user dynamically based on the parameters we passed to the portal via url.

Community Alums
Not applicable

Hi,

 

            I am building a portal by using "Ui builder" , where I had created a page where table , sysid are required parameters. 

 

Now, i need to change the language based on the field value which is fetched from  the  page parameter sysid record.

 

if the field value is "colmbia" , i need to change the language of the page to "spanish" , otherwise i need to keep english.

 

please suggest an approach!

 

 

4 REPLIES 4

maroon_byte
Mega Sage

User preferred language is stored in User Preference (sys_user_preference).

Hence, based on the field value, you would need to update or insert record in this table for Name field as 'user.language'.

 

Regards,

Sharad

Community Alums
Not applicable

Hi  Sharad,

      I had updated the user.language record value then it was not changed instantly, i need log out and login for reflect the user preference value then only it was reflecting. I need that user preference to reflect instantly 

It was working thanks