I'm using RS2008 R2. I've created a report that has Action:Go to URL expressions. The expressions link to another report detail that render directly to Excel and work just fine.
The issue I'm having is coding the expression to work in all three of our deployment environments. We have a Development, Acceptance and Production deployment environment. The Action expression in Development reads, " When I deploy to Acceptance I have to change the expression to read, " And in Production I have to change the server location again. So far I've at least created a report variable to store the value so it's easy to change before each deployment but I'm soon going to have more reports to maintain and I'd rather have a dynamic solution that doesn't involve any maintenance at all.
Is there anyway I can code the expression so that it becomes "aware" of which environment it's been deployed? Is there a configuration file option that can be used to store a variable for example? I can't seem to find such a solution so I'm hoping that one of you experts can help me out.
Ideally, the solution would involve a config file but I'm not sure that's an option. I've looked into it but can't seem to find out how to do that. If I could I'd create one config file in each of the three environments with an appropriate URL string that can be read into the expression. Another option would be to create an expression or custom code that can determine what environment it's in to decide which URL string to use. I tried custom code thinking I could use System.IO.Directory.GetCurrentDirectory() but that failed because I couldn't reference System.IO. Am I on the right track? How could I resolve this roadblock?
If you have a suggestion or comment on my logic please clue me in to where I've gone wrong or offer a solution.
Any other comments or suggestions would be greatly appreciated.
Thanks in advance.
The issue I'm having is coding the expression to work in all three of our deployment environments. We have a Development, Acceptance and Production deployment environment. The Action expression in Development reads, " When I deploy to Acceptance I have to change the expression to read, " And in Production I have to change the server location again. So far I've at least created a report variable to store the value so it's easy to change before each deployment but I'm soon going to have more reports to maintain and I'd rather have a dynamic solution that doesn't involve any maintenance at all.
Is there anyway I can code the expression so that it becomes "aware" of which environment it's been deployed? Is there a configuration file option that can be used to store a variable for example? I can't seem to find such a solution so I'm hoping that one of you experts can help me out.
Ideally, the solution would involve a config file but I'm not sure that's an option. I've looked into it but can't seem to find out how to do that. If I could I'd create one config file in each of the three environments with an appropriate URL string that can be read into the expression. Another option would be to create an expression or custom code that can determine what environment it's in to decide which URL string to use. I tried custom code thinking I could use System.IO.Directory.GetCurrentDirectory() but that failed because I couldn't reference System.IO. Am I on the right track? How could I resolve this roadblock?
If you have a suggestion or comment on my logic please clue me in to where I've gone wrong or offer a solution.
Any other comments or suggestions would be greatly appreciated.
Thanks in advance.