StiAlias

Stimulsoft Reports.WEB discussion
Post Reply
Werlang
Posts: 26
Joined: Wed Feb 20, 2013 1:50 pm

StiAlias

Post by Werlang »

It is possible to use an alias like this

Code: Select all

[StiAlias("Column alias")]
public string Name { get; set; }
But we have to localize these aliases to user language.

Code: Select all

[StiAlias(I18N.Tr("ColumnAlias"))]
public string Name { get; set; }
And in I18N.TR(string aliasCode):

Code: Select all

Dictionary dict = user.GetUserLanguage();
string aliasName = dict[aliasCode];
This way, is it possible to register somethig to get column alias in the required language? And have a clean class:

Code: Select all

public string Id { get; set; }
public string Name { get; set; }
public string Number { get; set; }
The alias code would be ClassName.Id, ClassName.Name, ClassName.Number...

Thanks in advance
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: StiAlias

Post by Alex K. »

Hello,

Unfortunately, it is not possible.

Thank you.
Post Reply