Skip to Content
author's profile photo Former Member
Former Member

Dynamic datasource using JSP Crystal Report Viewer

Hi,

I want to create a report using dynamic datasource. Datasource name should be passed as parameter or it should be picked up from some configuration file. Please help. Below is the content of sample crystal report viewer JSP:

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="ISO-8859-1" %>

<%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer" %>

<crviewer:viewer reportSourceType="reportingComponent" viewerName="CrystalReport1-viewer" reportSourceVar="CrystalReport1" isOwnPage="true">

<crviewer:report reportName="/Sample Reports/accounts.rpt" />

</crviewer:viewer>

Thanks & Regards,

Mohammed Masiuddin

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on May 28, 2012 at 03:44 PM

    Hello,

    Are you using our Java SDK? If so you should post to the Java SDK forum, or I'll move it.

    As you know to set location to a new DB in Cr Designer you need to use the Set Location option in the Database Menu.

    What this does is update the connection as well as the fully qualified table location. It can't be done dynamically, no place in the URL to do so.

    If you are doing it an application then there are SDK API's to so.

    Need more info.

    Don

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 11, 2012 at 01:07 PM

    Hi Mohammed,

    Did you get this to work ?

    If so what did you do.

    We need to do this as well

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.