Skip to main content
19-Tanzanite
November 15, 2021
Solved

How to update localization value in runtime without refreshing page

  • November 15, 2021
  • 1 reply
  • 1224 views

Hi all,

 

In mashup, I have a dropdown to select/change language for the user.

 

Velkumar_0-1636957810169.png

 

Whenever dropdown value changed I'm setting user language preference through service. The problem is localization values are not updating until I refresh the mashup manually. I tried using navigation function also still didn't work. 

 

Could any one help me to solve this. I want localization value should be updated automatically 

 

/VR

Best answer by PaiChung

the only way is to use the refresh, you can trigger a refresh using the expression widget so a user doesn't have to manually hit refresh.

You should be able to use location.reload()

1 reply

PaiChung22-Sapphire IAnswer
22-Sapphire I
November 15, 2021

the only way is to use the refresh, you can trigger a refresh using the expression widget so a user doesn't have to manually hit refresh.

You should be able to use location.reload()

Velkumar19-TanzaniteAuthor
19-Tanzanite
November 16, 2021

Thanks @PaiChung  It worked.

 

I also used a link widget to reload the page that too worked but the expression method makes more sense.

 

/VR