Hi,
I have two main datasources set up…ProdDB and RSDB. In the Jasper report that I use…ProdDB is the DB to pull my main report data from..
BUT I also use RSDB ..which is the db reportserver uses to function..ReportServer Data Source ..and is currently pointing to :
jdbc:postgresql://localhost:5432/reportingdb
I use RSDB to pull the name of the user currently logged in ..using a datasource parameter LoggedInUserName and a query:
select username from rs_user where $P{_RS_USER_USERNAME} = username
This info is displayed in the jasper report as $P{LoggedInUserName}
Now, when I try to import this report into another instance of RS..and select the default DB as ProdDB after selecting it as a datasource object..and NOT selecting RSDB because it already exists on the new instance..the report crashes because it cannot locate RSDB…However if I select RSDB in the import DB menu..a duplicate of RSDB is created. Is there any other method to do this right ? without the duplication bit..apart from physically configuring each report after every import..
Thanks,
TZM