Skip to Content
0
Former Member
Jan 26, 2009 at 10:31 PM

Reading Data Source Name as a field variable.

26 Views

Hi,

I am trying to find out if there is a function or operator in Crystal Reports or CR-Basic code that allows the name of a data source to be displayed as an output field.

For example: If the source name is a view titled "v_ThisIsAView", then I would like to be able to display that title in a dynamic text box.

There may be several other views that use the same report as a template: "v_ThisIsAnotherView", and "v_YetAnotherView".

I am aware that adding a column with the source title directly to the report is the most basic solution, however for this application it is not the best way to do that.

It seems there should be a way in the code to get the data name source, since the report obviously needs to know the name of the data source it is pulling information from.