Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Variable per server Post Reply Post New Topic
Author Message
RalfCologne
Newbie
Newbie


Joined: 23 Jan 2017
Online Status: Offline
Posts: 2
Quote RalfCologne Replybullet Topic: Variable per server
    Posted: 24 Jan 2017 at 11:14am
Hi everyone, I like to use same report on test and production, but display a "Testenvironment" string on test. I do have same databases on both sides. Do I have somehow a global variable on server level, e.g. servername, which I can use to identify on which environment the report is being executed?

Thanks
Ralf
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 24 Jan 2017 at 1:38pm
Out of the box, I do not think so.  Someone may have created a custom function that might do that.  The only other thing I can think of (Not the best DB practice).  Have a standalone table in each database with an identifying  value.  Then you could look for that.
IP IP Logged
RalfCologne
Newbie
Newbie


Joined: 23 Jan 2017
Online Status: Offline
Posts: 2
Quote RalfCologne Replybullet Posted: 24 Jan 2017 at 11:22pm
Thanks for your answer.

I found a way to have specific information in report datasource per environment and can used this.

Thanks anyway!
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.