How to show only Table/Column alias in DataSource tree

Stimulsoft Reports.JS discussion
Post Reply
Vitalii_bizone
Posts: 5
Joined: Wed Jun 08, 2022 6:02 am

How to show only Table/Column alias in DataSource tree

Post by Vitalii_bizone »

hello! I've added "alias" for every "report.dictionary.dataSources" and for all "dataSource.columns"
and now user can see "columnName [columnAlias]"
and i wonder: is it a way to show only alias?
Vitalii_bizone
Posts: 5
Joined: Wed Jun 08, 2022 6:02 am

Re: How to show only Table/Column alias in DataSource tree

Post by Vitalii_bizone »

i've found solution by myself, thanks :)
this option useAliases is neither mentioned in docs https://www.stimulsoft.com/en/documenta ... rts_js.htm nor commented what it does in types.d.ts

new Stimulsoft.Designer.StiDesignerOptions().dictionary.useAliases = StiUseAliases.True;
Max Shamanov
Posts: 278
Joined: Tue Sep 07, 2021 10:11 am

Re: How to show only Table/Column alias in DataSource tree

Post by Max Shamanov »

Hello,

You are welcome!
Post Reply