cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

How to update localization value in runtime without refreshing page

Velkumar
18-Opal

How to update localization value in runtime without refreshing page

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

1 ACCEPTED SOLUTION

Accepted Solutions
PaiChung
22-Sapphire I
(To:Velkumar)

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()

View solution in original post

2 REPLIES 2
PaiChung
22-Sapphire I
(To:Velkumar)

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()

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

Top Tags