Insert alias in Datasource
Posted: Mon Oct 15, 2018 1:59 pm
Hello.
We are trying to localize the report datasource during the creation and edition of a report. We are providing to the report, programmatically using the MVC components, Datasets as a source of data.
Depending of the user language we want to translate the names of tables and fields using alias but keeping the same internal names in order to reuse the reports(Attached 1 and 2).
We have seen that we can use the properties “name” and “caption” for fields but we can’t find how to do the same for the tables (“Datos Personales” & “Personal Data” in the attached screen-caps).
Please, can you give as an example of how we can obtain this functionality using code?
We are trying to localize the report datasource during the creation and edition of a report. We are providing to the report, programmatically using the MVC components, Datasets as a source of data.
Depending of the user language we want to translate the names of tables and fields using alias but keeping the same internal names in order to reuse the reports(Attached 1 and 2).
We have seen that we can use the properties “name” and “caption” for fields but we can’t find how to do the same for the tables (“Datos Personales” & “Personal Data” in the attached screen-caps).
Please, can you give as an example of how we can obtain this functionality using code?