TOPIC: variable in RRD file to reference server name

variable in RRD file to reference server name 13 Feb 2019 19:34 #3635

  • flowersrj
  • flowersrj's Avatar
  • Offline
Hi,
Normally in our RRDs we use UNC paths for the crystal report like this:
EmailReport[ApptStats]=\\WINcpsNSprd43\ReportLocation\ApptStats.rpt?
However, when moving to a new server I would like things to be more portable.
I have tried this "\\localhost\ReportLocation\AppStats.rpt" and "\\127.0.0.1\ReportLocation\ApptStats.rpt>"
but neither works. Is there anything I can use so that when we move Logicity to a new server I don't have to change the server name?
Thanks, Rich
The administrator has disabled public write access.

variable in RRD file to reference server name 15 Feb 2019 13:35 #3636

  • flowersrj
  • flowersrj's Avatar
  • Offline
Seems that %COMPUTER_NAME% will work but if brought later thru the GUI it with revert to the local path. In my case that is "F:\"
The administrator has disabled public write access.

variable in RRD file to reference server name 15 Feb 2019 13:56 #3637

  • aellis
  • aellis's Avatar
  • Offline
Rich,
I am actually a little surprised \\127.0.0.1 wouldn't work. I am also puzzled in the %COMPUTER_NAME% thing you noticed - so you are saying you made your RRD file say something like this:

EmailReport[ApptStats]=\\%COMPUTER_NAME%\ReportLocation\ApptStats.rpt?

And when you open it in Logicity Solution Builder it switched to this:

EmailReport[ApptStats]=F:\ReportLocation\ApptStats.rpt?

Even if we replaced that variable somehow going into the designer I couldn't see how it could be that smart to swap like that - is there any chance the RRD is being restored from a backup or something?
The administrator has disabled public write access.

variable in RRD file to reference server name 15 Feb 2019 16:16 #3639

  • flowersrj
  • flowersrj's Avatar
  • Offline
Yes, I am using what amounts to your example. I re-checked and this time it did NOT revert back to 'F:\' in the Solution Builder. Not sure what happened the first time.
The administrator has disabled public write access.