How to select culture setting based on a variable
How to select culture setting based on a variable
Hi,
Using the Globalization editor, I have defined 2 languages for a Dashboard: English and Spanish.
When showing the Dashboard, I need to select the languaje based on the value of a variable.
How can I do that?
Thanks
Using the Globalization editor, I have defined 2 languages for a Dashboard: English and Spanish.
When showing the Dashboard, I need to select the languaje based on the value of a variable.
How can I do that?
Thanks
-
- Posts: 818
- Joined: Tue Sep 07, 2021 10:11 am
Re: How to select culture setting based on a variable
Hello,
We need some additional time to investigate the issue, we will let you know about the result.
Thank you.
We need some additional time to investigate the issue, we will let you know about the result.
Thank you.
-
- Posts: 818
- Joined: Tue Sep 07, 2021 10:11 am
Re: How to select culture setting based on a variable
Hello,
Please check the new "Report culture expressions" feature that was added in the new 2023.1.1 release:
https://www.stimulsoft.com/en/blog/news ... dashboards
Thank you.
Please check the new "Report culture expressions" feature that was added in the new 2023.1.1 release:
https://www.stimulsoft.com/en/blog/news ... dashboards
Thank you.
Re: How to select culture setting based on a variable
Hi Max,
Yes, I had already seen it.
The point is that I could not find where or how to set the expression to select the language (based on the value of a variable) in the Globalization section
Could you please guide me?
Thanks
Yes, I had already seen it.
The point is that I could not find where or how to set the expression to select the language (based on the value of a variable) in the Globalization section
Could you please guide me?
Thanks
- Attachments
-
- culture.png (7.12 KiB) Viewed 10312 times
-
- Posts: 818
- Joined: Tue Sep 07, 2021 10:11 am
Re: How to select culture setting based on a variable
Hello,
In the Culture property, select Insert Expression.
Please check the attached image.
Thank you.
In the Culture property, select Insert Expression.
Please check the attached image.
Thank you.
- Attachments
-
- Designer_QgKSLa6N2z.png (22.73 KiB) Viewed 10292 times
Re: How to select culture setting based on a variable
Thanks Max. But I still cannot figure out how to build the expression.
Ej:
if {var1} == 1 then it should select English
if {var1} == 2 then it should select Spanish
if {var3} == 3 then it should select Italian
How should I build the expression?
Thanks
Ej:
if {var1} == 1 then it should select English
if {var1} == 2 then it should select Spanish
if {var3} == 3 then it should select Italian
How should I build the expression?
Thanks
-
- Posts: 6364
- Joined: Tue Mar 20, 2018 5:34 am
Re: How to select culture setting based on a variable
Hello,
You can use the following expression:
{Switch(var1 == 1, "En-us", var1 == 2, "Es-es", var1 == 3, "IT-it")}
Thank you.
You can use the following expression:
{Switch(var1 == 1, "En-us", var1 == 2, "Es-es", var1 == 3, "IT-it")}
Thank you.
Re: How to select culture setting based on a variable
It work! thanks a lot Lech and merry Christmas!!
-
- Posts: 6364
- Joined: Tue Mar 20, 2018 5:34 am
Re: How to select culture setting based on a variable
Hello,
Merry Christmas and a Happy New Year. May your coming year be filled with magic and dreams!
Merry Christmas and a Happy New Year. May your coming year be filled with magic and dreams!