Page 1 of 1

Variable Alias value getting from database

Posted: Tue Jan 26, 2021 2:55 pm
by harundemir13
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,

Re: Variable Alias value getting from database

Posted: Tue Jan 26, 2021 3:20 pm
by HighAley
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.

Re: Variable Alias value getting from database

Posted: Wed Jan 27, 2021 10:59 am
by harundemir13
Hello,
Can you write an example? I don't understand

Re: Variable Alias value getting from database

Posted: Wed Jan 27, 2021 9:53 pm
by HighAley
Hello.

You could use the code like this

Code: Select all

report.Dictionary.Variables["Variable1"].Alias = "your alias";
Thank you.

Re: Variable Alias value getting from database

Posted: Thu Jan 28, 2021 6:23 am
by harundemir13
Thank you for your response

Re: Variable Alias value getting from database

Posted: Thu Jan 28, 2021 6:24 am
by Andrew
Hello,

You are welcome!