teamireport Posted December 13, 2009 Share Posted December 13, 2009 HI Folks,I would like to know the following requirement is doable or not ?i have a 'n' number of jrmxl uploaded in the jasperserver thats points to one datasource where i specified the dbname say ( db1) .since my webapplication db name is 'db1' having this setup i'm calling all reports via webservice from my web application.i'm able to generated report and see the results. this webapplication dbname called as 'db1'.so that i have created js datasource dbname as 'db1'. if we do install our webapplication with jasperserver intergrated for other client say 'clientB' and its dbname called as 'db2'.here how i can dynamically change the datasource dbname say (db2) from 'db1' for the 'clientB' ,where all the jrxml is already pre-configured(i.e pointed to datasource 'db1') .for this requirements i have found few apporached like.creating multiple datasource for (db1,db2) and same multiple jrmxls with different datasource configured. this apporach is fine.but i'm looking forward is any other way we can do dynamically set datasource for different databases ?can anyone pl.guide me how this can be achivable ? Link to comment Share on other sites More sharing options...
jdevine Posted December 14, 2009 Share Posted December 14, 2009 Didn't we discuss this here?http://jasperforge.org/plugins/espforum/view.php?group_id=112&forumid=102&topicid=68118&topid=68147Point your jrxml files to a custom datasource and then have that map to different datasources based on an input parameter.Are you looking for something different? Link to comment Share on other sites More sharing options...
teamireport Posted December 14, 2009 Author Share Posted December 14, 2009 jdevine,ya we have discussed there and after our discussion i have tried to undestand custom datasource concept.i understood the example shipped with jasperserver a bi.but still i'm not clear for my requirements how i go with custom datasource apporach ,as i have posted two times.from your comments below, you got my doubt and where i'm struggling.snip>>Point your jrxml files to a custom datasource and then have that map to different datasources based on an input parameter.Are you looking for something different? 1 .here point jrxml to a custom datasource ,which means (Datasource which has two diff db name) , correct me if understood wrongly?2. how to map to different datasources for single report. and how to pass (datasource as input parameter).could you please elaborate on this ,so that i can easily take your valuable suggestions please? Post Edited by teamireport at 12/14/2009 16:19 Link to comment Share on other sites More sharing options...
jdevine Posted December 18, 2009 Share Posted December 18, 2009 Your organization will contain one datasource (a custom datasource).Every jrxml will be mapped to that datasource.The database that the datasource connects to will be driven by an input parameter to the report. Link to comment Share on other sites More sharing options...
teamireport Posted December 21, 2009 Author Share Posted December 21, 2009 Thanks jdevine for your valuable support .i'm somewhat getting you.could you pl.give an example on what you saying,so that i can easily catch your points.? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now