Variable Alias value getting from database

Stimulsoft Ultimate discussion
Post Reply
harundemir13
Posts: 17
Joined: Thu Aug 01, 2019 1:22 pm

Variable Alias value getting from database

Post by harundemir13 » Tue Jan 26, 2021 2:55 pm

Hello,
I can set variables Alias values with globalization string options for additional languages. I want to set variables alias that getting from the database. Is it possible?
Thank you,
HighAley
Posts: 8368
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Variable Alias value getting from database

Post by HighAley » Tue Jan 26, 2021 3:20 pm

Hello,

You could set the alias of the variable in the Globalization Strings.
It could be static value only.

As a way you could set the Alias before showing the report from the external code.

Thank you.
harundemir13
Posts: 17
Joined: Thu Aug 01, 2019 1:22 pm

Re: Variable Alias value getting from database

Post by harundemir13 » Wed Jan 27, 2021 10:59 am

Hello,
Can you write an example? I don't understand
HighAley
Posts: 8368
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Variable Alias value getting from database

Post by HighAley » Wed Jan 27, 2021 9:53 pm

Hello.

You could use the code like this

Code: Select all

report.Dictionary.Variables["Variable1"].Alias = "your alias";
Thank you.
harundemir13
Posts: 17
Joined: Thu Aug 01, 2019 1:22 pm

Re: Variable Alias value getting from database

Post by harundemir13 » Thu Jan 28, 2021 6:23 am

Thank you for your response
Andrew
Posts: 4035
Joined: Fri Jun 09, 2006 3:58 am

Re: Variable Alias value getting from database

Post by Andrew » Thu Jan 28, 2021 6:24 am

Hello,

You are welcome!
Post Reply