Use same report to print out different data sources on the fly.

Post Author: Lady101
CA Forum: Data Connectivity and SQL
We have 10 reports use diferent datasource( use views with different joint tables), but their print out format are identical. Is there a way to just use single report to run those 10 reports dynamically(the report can point to the right data source on the fly)? So that we can just change single report format when report format needs to be changed. Right now we have to change 10 reports format one by one.

Another option would be to make a single pass in the Source Monitor and save a bunch of subclips. Here's a thread discussing keyboard workflows: Re: Question on making many Subclips in a fast way
If you name highlights with one base name and lowlights with another, it would be easy to drop each batch into its own sequence.

Similar Messages

  • Issue with Crystal Report based on 2 different data sources

    Hi there,
    I am having a frustrating problem with a report I've designed and I'm hoping someone might be able to assist please.
    The report has 3 different prompts, each of which is based on a dynamic list of values retrieved via views within a SQL server db.
    We are wanting to introduce the use of Universes as much as possible, so the data returned is based off a BO Universe data source query.
    I have uploaded the report into BO and have provided the necessary database logon information for the report (in the "Process" > "Database" settings in the CMC) for both the direct db datasource connection (for the views) and the BO Universe query connection.
    When the report is run however, the report still prompts for the database user name & password credentials. I have triple checked my db connection settings, and also have "Use same database logon as when report is run" set to true. I also tested a cut-down version of the report without the Universe connection with the same db logon credentials I provided and there was no credentials prompt when it was run, proving those values are accepted.
    Does anyone know why this is happening & if there is a way around it? Alternatively, is there some way that a report prompt may be based on a dynamic list of values retrieved via a Universe connection? This way I'd be able to remove the db connection for the views and have the report solely based on the Universe.
    Another issue that occurs is out of the 3 prompts, a user can select a User Name OR Number, and also must select a Period. However if the User Name or Number is left blank the message "The value is not valid" is shown. So I tried a cut-down version of the report with only the BO Universe as a data source (static prompts) and this didn't occur, i.e. I was allowed to leave either the User Name or Number empty.
    I hope this all of makes sense - let me know if not. If anyone is able to help out with any of this it would be very much appreciated.
    Cheers,
    Marco

    Please re-post if this is still an issue to the Business Objects Forum or purchase a case and have a dedicated support engineer work with you directly

  • How do I use multiple classes to print out different results

    I tried the below, but it only printed the print line from the class that contains the "main" method, but I want the second one (Demo2) to print to check some logic :
    class StaticDemo {
    int x;
    static int y;
    class Demo {
    public static void main(String args[]){
    StaticDemo.y = 30;
    System.out.println("StaticDemo.y = " + StaticDemo.y);
    class Demo2 {
    public static void main(String args[]){
    System.out.println("StaticDemo.y 2 = " + StaticDemo.y);
    }

    You can only have one main method. Try something like this:
    class StaticDemo
       int x;
       static int y;
    class Demo
       public static void main(String[] args) {
          StaticDemo.y = 30;
          System.out.println("StaticDemo.y = " + StaticDemo.y);
          Demo2 d2 = new Demo2();
          d2.display();
    class Demo2
       void display() {
          System.out.println("StaticDemo.y 2 = " + StaticDemo.y);

  • Reports fail when run against a different data source

    Hello,
    We have a VB.NET 2008 WinForms application running on Microsoft .NET 3.5. We are using Crystal Reports 2008 runtime, service pack 3 -- using the CrystalDecisions.Windows.Forms.CrystalReportViewer in the app to view reports. In the GAC on all our client computers, we have versions 12.0.1100.0 and 12.0.2000.0 of CrystalDecisions.CrystalReports.Engine, CrystalDecisions.Shared, and CrystalDecisions.Windows.Forms.
    Please refer to another one of our posted forum issues, u201CCritical issue since upgrading from CR9 to CR2008u201D, as these issues seem to be related:
    Critical issue since upgrading from CR9 to CR2008
    We were concerned with report display slow down, and we seemed to have solved this by using the Oracle Server driver (instead of either Microsoft's or Oracle's OLEDB driver).  But now we must find a resolution to another piece of the puzzle, which is:  why does a report break if one data source is embedded in the .rpt file is different than the one you are trying to run the report against, in the .NET Viewer?
    Problem:
    If you have a production database name (e.g. "ProdDB") embedded in your .rpt file that you built your report from and try to run that report against a development database (e.g. "DevDB") (OR VICE VERSA -- it is the switch that is the important concept here), the report fails with a list of messages such as this:
        Failed to retrieve data from the database
        Details:  [Database vendor code: 6550 ]
    This only seems to happen if the source of the report data (i.e. the underlying query) is an Oracle stored procedure or a Crystal Reports SQL Command -- the reports run fine against all data sources if the source is a table or a view).  In trying different things to troubleshoot this, including adding a ReportDocument.VerifyDatabase() call after setting the connection information, the Crystal Reports viewer will spit out other nonsensical errers regarding being unable to find certain fields (e.g. "The field name is not known), or not able to find the table (even though the source data should be coming from an Oracle stored procedure, not a table).
    When the reports are run in the Crystal Reports Designer, they run fine no matter what database is being used; but the problem only happens while being run in the .NET viewer.  It's almost as if something internally isn't getting fully "set" to the new data source, or something -- we're really grasping at straws here.
    For the sake of completeness of information, here is how we're setting the connection information
            '-- Set database connection info for the main report
            For Each oConnectionInfo In oCrystalReport.DataSourceConnections
                oConnectionInfo.SetConnection(gsDBDataSource, "", gsDBUserID, gsDBPassword)
            Next oConnectionInfo
            '-- Set database connection info for each subreport
            For Each oSubreport In oCrystalReport.Subreports
                For Each oConnectionInfo In oSubreport.DataSourceConnections
                    oConnectionInfo.SetConnection(gsDBDataSource, "", gsDBUserID, gsDBPassword)
                Next oConnectionInfo
            Next oSubreport
    ... but in troubleshooting, we've even tried an "overkill" approach and added this code as well:
            '-- Set database connection info for each table in the main report
            For Each oTable In oCrystalReport.Database.Tables
                With oTable.LogOnInfo.ConnectionInfo
                    .ServerName = gsDBDataSource
                    .UserID = gsDBUserID
                    .Password = gsDBPassword
                    For Each oPair In .LogonProperties
                        If UCase(CStr(oPair.Name)) = "DATA SOURCE" Then
                            oPair.Value = gsDBDataSource
                            Exit For
                        End If
                    Next oPair
                End With
                oTable.ApplyLogOnInfo(oTable.LogOnInfo)
            Next oTable
            '-- Set database connection info for each table in each subreport
            For Each oSubreport In oCrystalReport.Subreports
                For Each oTable In oSubreport.Database.Tables
                    With oTable.LogOnInfo.ConnectionInfo
                        .ServerName = gsDBDataSource
                        .UserID = gsDBUserID
                        .Password = gsDBPassword
                        For Each oPair In .LogonProperties
                            If UCase(CStr(oPair.Name)) = "DATA SOURCE" Then
                                oPair.Value = gsDBDataSource
                                Exit For
                            End If
                        Next oPair
                    End With
                    oTable.ApplyLogOnInfo(oTable.LogOnInfo)
                Next oTable
            Next oSubreport
    ... alas, it makes no difference.  If we run the report against a database that is different than the one specified with "Set Datasource Location" in Crystal, it fails with nonsense errors 

    Thanks for the reply, Ludek.  We have made some breakthroughs, uncovered some Crystal bugs and workarounds, and we're probably 90% there I hope.
    For your first point, unfortunately the information on the Oracle 6550 error was generic, and not much help in our case.  And for your second point, the errors didn't have anything to do with subreports at that time -- the error would manifest itself even in a simple, one-level report.
    However, your third point (pointing us to KB 1553921) helped move us forward quite a bit more.  For the benefit of all, here is a link to that KB article:
    Link: [KB 1553921|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533353333333933323331%7D.do]
    We downloaded the tool referenced there, and pointed it at a couple of our reports.  The bottom line is that the code it generated uses a completely new area of the Crystal Reports .NET API which we had not used before -- in the CrystalDecisions.ReportAppServer namespace.  Using code based on what that RasConnectionInfo tool generated, we were able gain greater visibility into some of the objects in the API and to uncover what I think qualifies as a genuine bug in Crystal Reports.
    The CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable class exposes a property called QualifiedName, something that isn't exposed by the more commonly-used CrystalDecisions.CrystalReports.Engine.Table class.  When changing the data source with our old code referenced above (CrystalDecisions.Shared.ConnectionInfo.SetConnection), I saw that Crystal would actually change the Table.QualifiedName from something like "SCHEMAOWNER.PACKAGENAME.PROCNAME" to just "PROCNAME" (essentially stripping off the schema and package name).  Bad, Crystal...  VERY BAD!  IMHO, Crystal potentially deserves to be swatted on the a** with the proverbial rolled-up newspaper.
    I believe this explains why we were also able to generate errors indicating that field names or tables were not found -- because Crystal had gone and changed the QualifiedName to remove some key info identifying the database object!  So, knowing this and using the code generated by the RasConnectionInfo tool, we were able to work around this bug with code that worked for most of our reports ("most" is the key word here -- more on that in a bit).
    So, first of all, I'll post our new code.  Here is the main area where we loop through all of the tables in the report and subreports:
    '-- Replace each table in the main report with new connection info
    For Each oTable In oCrystalReport.ReportClientDocument.DatabaseController.Database.Tables
        oNewTable = oTable.Clone()
        oNewTable.ConnectionInfo = GetNewConnectionInfo(oTable)
        oCrystalReport.ReportClientDocument.DatabaseController.SetTableLocation(oTable, oNewTable)
    Next oTable
    '-- Replace each table in any subreports with new connection info
    For iLoop = 0 To oCrystalReport.Subreports.Count - 1
        sSubreportName = oCrystalReport.Subreports(iLoop).Name
        For Each oTable In oCrystalReport.ReportClientDocument.SubreportController.GetSubreportDatabase(sSubreportName).Tables
            oNewTable = oTable.Clone()
            oNewTable.ConnectionInfo = GetNewConnectionInfo(oTable)
            oCrystalReport.ReportClientDocument.SubreportController.SetTableLocation(sSubreportName, oTable, oNewTable)
        Next oTable
    Next iLoop
    '-- Call VerifyDatabase() to ensure that the tables update properly
    oCrystalReport.VerifyDatabase()
    (Thanks to Colin Stynes for his post in the following thread, which describes how to handle the subreports):
    Setting subreport connection info at runtime
    There seems to be a limitation on the number of characters in a post on this forum (before all formatting gets lost), so please see my next post for the rest....

  • Two Different Data Sources in EIS

    <p>Hi -</p><p> </p><p>Can we have 2 different Data Sources in the OLAP model.</p><p>Example:</p><p>We have our Fact table in Teradata and Dimension table inOracle.</p><p>Can we create a model with this kind of scenario?</p><p>WIll it be a maintenance nightmare if we do this?</p><p> </p><p>Any help would be greatly appreciated.</p><p> </p><p>Thanks,</p><p>Jeeva</p>

    Hi Jeeva,<BR><BR>Yes you can do this. I have models which use data from Oracle, SQL Server and also Text files! All you need is to setup the appropriate ODBC connections on the box that contains EIS then when you create your OLAP model, you add new data sources by clicking "Connections" then "Add Data Source"<BR><BR>Hope this helps.<BR><BR>Brian

  • Report using two different data sources won't work.

    I'm trying to build a report that shows information from a production table and an archive table.
    Tables are in different databases, which are defined as their own Data Sources in Publisher.
    Two data sets containing the same query but using different Data Sources are defined in the Data Model.
    When selecting option 'Concatenated SQL Data Source' the report never completes.
    If any of the two Data Sets is selected as the Main Data Set, the report shows information related to that source only.
    Any hints on how to make this work would be appreciated.
    Thanks.
    ccastillo

    More details on this issue:
    The production database has a synonym pointing to the archive database. I build a query using a UNION ALL statement linking both tables.
    For the same set of parameters, this query completes in a couple of minutes outside BI Publisher, but never ends (I cancel after an hour) inside Publisher.
    Is there any special considerations for the use of synonyms inside Publisher?

  • Smart forms- when i print a report it print main window data on same page

    hi,
    when i print a report it print main window data on same page .
    i.e. if data is more then one page then it shows data page wise on computer screen but when i print it print all data on same only one page by over wrriting .
    pl. help why it is happening
    i create page in page i set next page and in second page give first page.
    mukesh

    mukesh,
    what happened to this: smart form
    close that please.
    by the way,did you tried with what i suggested?
    lets say mainwindow in 1st page.
    copy the first page to second page.
    now.
    for 1st page: next page is : page2
    for page2: next page is also : page2

  • Not able to edit the report created on different data source.....

    I have a query regarding Report in OBIEE - reports developed from BI Publisher are specific to data source on which they have been created ??
    i have a sample report that was created on different data source, i have the corresponding RPD also. I changed the data source according to my DB and when i try to update/edit the report,
    on Analytics for adding a new column, it is generating a seperate new Query from QueryBuilder for that additional cloumn rather than adding up the new query with the previous one(existing report query). Is it because of mismatch of data source on which report had been created and on which it is being update ?? if it is the case, where do i need to make changes related to JDBC connection or others ??
    when i try to create a new sample data set and try to update it, it adds up the extra edited things to original query and works perfectly fine. can ny 1 help me for the same ??

    Hi Denis,
    Normally,what we do is once we provide access to webi users group for each user from BO supervisor module, user(s) will able to refresh/edit the existing report from Full client BO.His colleagues have had no problem editing all his reports from their machines but he is not able to edit any report from his machine and BO is getting freeze.
    He also reinstalled BO and cleaned out everything on his Computer and re-built it but the issue is not yet resolved
    Can you please tell me how to resolve this issue
    Kind Regards,
    Srinivas

  • How to print out a date from the past

    I am trying to print out a date from the past but I cant seem to get It,
    Lets use for example Independece Day,
    How would you write the code in order to print out that exact date?

    Look at the
    [url=http://java.sun.com/javase/6/docs/api/index.html?
    java/util/Date.html]Date APIActually the Calendar class would be better to use, since you can set all the different fields from year to second, plus things like day of week, day of month, week of year, etc.
    too slow
    Message was edited by:
    hunter9000

  • Print out a Date in a format I want

    Now if I print out a Date object, I will get something like "Sat Jan 01 00:00:00 CST 2005", but what I want is "1/1/2005". I tried to use the get methods to get the month, day, and year so that I can put them in a format I want. However, all the get methods have been deprecated. What will be a possible(maybe easy as well?) way to do it? Thanks.

    Something like:
    import java.util.Date;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    public class Test {
        public static void main(String[] args) {
            DateFormat df = new SimpleDateFormat("d/M/yyyy");
            Date now = new Date();
            System.out.println(df.format(now));
            // new for Java 5.0 - almost the same format
            System.out.printf("%te/%<tm/%<tY%n", now);
    }Note: If you're using Java 5.0, then you can use the new printf method for PrintWriters. However, this doesn't appear to have a formatting token for single digit months.
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/Formatter.html#dt
    Cheers, Neil

  • Problem with SQL*Loader and different date formats in the same file

    DB: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    System: AIX 5.3.0.0
    Hello,
    I'm using SQL*Loader to import semi-colon separated values into a table. The files are delivered to us by a data provider who concatenates data from different sources and this results in us having different date formats within the same file. For example:
    ...;2010-12-31;22/11/1932;...
    I load this data using the following lines in the control file:
    EXECUTIONDATE1     TIMESTAMP     NULLIF EXECUTIONDATE1=BLANKS     "TO_DATE(:EXECUTIONDATE1, 'YYYY-MM-DD')",
    DELDOB          TIMESTAMP     NULLIF DELDOB=BLANKS          "TO_DATE(:DELDOB, 'DD/MM/YYYY')",
    The relevant NLS parameters:
    NLS_LANGUAGE=FRENCH
    NLS_DATE_FORMAT=DD/MM/RR
    NLS_DATE_LANGUAGE=FRENCH
    If I load this file as is the values loaded into the table are 31 dec 2010 and 22 nov *2032*, aven though the years are on 4 digits. If I change the NLS_DATE_FORMAT to DD/MM/YYYY then the second date value will be loaded correctly, but the first value will be loaded as 31 dec *2020* !!
    How can I get both date values to load correctly?
    Thanks!
    Sylvain

    This is very strange, after running a few tests I realized that if the year is 19XX then it will get loaded as 2019, and if it is 20XX then it will be 2020. I'm guessing it may have something to do with certain env variables that aren't set up properly because I'm fairly sure my SQL*Loader control file is correct... I'll run more tests :-(

  • How do I get the system to print-out a date at the bottom of page?

    When I am at a website and ask for a print-out of the page -
    the current date and time of print-out no longer appears at the lower right corner of page.

    I have resolved the problem. I will not use your time attempting to explain the process of elimination. However, the end result---
    I had taken delivery of a new printer mid-January - it is a HP OfficeJet 6000 (E609) - I wondered if that might be the problem - since I could not ascertain exactly when the print-out problem had presented itself.
    O.K. I logged on to the system and brought up the "Google" page to ask for a print-out. I checked for a print - and when the print box appeared I checked on "properties". That showed - to the left: "General Everyday Printing" and over to the right: Page size "A4 210 x 297mm" also the option "letter 8.5" x 11" and Legal 8.5" x 14" - so, I changed it to ask for the "letter - 8.5" x 11" - then I checked to "print" - I believe it was the "OK" - and the "Google: page was printed intact - showing the data generally associated with the top of the page and the date/time at the lower right.
    I placed a telephone call the HP this morning to ask them about the "A4" option and was advised that it is a "standard size paper" - but could not explain under set of circumstances it would be applicable.
    Hopefully, this data will be helpful to someone - thank you very much for your assistance in this matter.

  • Will OBIEE Support creating reports from 2 different data sources

    Hello Guys
    I am new to BI . Can anybody let me know how to create a report using 2 different data sources .
    Ex: Suppose we have 10G and SQL server , can we import tables to rpd and join 1 fact & dimension from 10G and 1 Fact from SQL server to the 10G tables . If so ,
    1) Will the repository be consistent ?
    2) Is it a best practice to do this kind of modeling ?
    3) Will it affect the performance of the reports ?
    Your advice is highly appreciated .

    Hi,
    Dont try to do this at the BI server layer. Oracle has special abilities to do this thing. So use the power of oracle to import the tables from the sql server to oracle and in the bi server just create one data source.
    you can browse for *'DBLINK'* in oracle.
    Regards,
    Karthick

  • How to use same RESULT SET for two different events

    hello friends,
    I need to use same result set for two different events. How to do it.
    here My code,
    private void jComboBox1ItemStateChanged(java.awt.event.ItemEvent evt) {
    // TODO add your handling code here:
    try
    String selstate,selitem;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con=DriverManager.getConnection("jdbc:odbc:tourismdatasource","sa","");
    selstate="select * from tab_places where state=?";
    PreparedStatement ps=con.prepareStatement(selstate);
    ps.setString(1, jComboBox1.getSelectedItem().toString().trim());
    ResultSet rs=ps.executeQuery();
    if(rs.next())
    jTextField1.setText(rs.getString("place_ID"));
    jTextField2.setText(rs.getString("place_name"));
    jTextField3.setText(rs.getString("category"));
    byte[] ba;
    ba=rs.getBytes("image");
    ImageIcon ic = new ImageIcon(ba);
    jLabel6.setIcon(ic);
    in=true;
    catch(ClassNotFoundException cfe){JOptionPane.showMessageDialog(null, cfe.getMessage());}
    catch(SQLException sqe){JOptionPane.showMessageDialog(null,sqe.getMessage());}
    Now i need the same Result Set(rs), in another event(jButton6ActionPerformed),
    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
    }  how do i get dat resultset,
    help me out

    One post wasn't enough?
    {color:0000ff}http://forum.java.sun.com/thread.jspa?threadID=5246634{color}
    db

  • How to remove a text in browser: Some plug ins used by this page are out of date

    How to remove a text in browser: Some plug ins used by this page are out of date. It occur in every page when I surfing. I am aware that is a threat but when I tried to install an update of flash the userinit.dll file from windows registry had gone and I had to reset everything.

    a error during the flash update might be itself an indication of malware active on the pc. the browser is your door to the web - therefore it's very important to keep it and all plugins up to date in order to keep your pc & the integrity of your personal data safe.
    [https://www.mozilla.org/plugincheck/]

Maybe you are looking for

  • Why are my photo events scattered in iPhoto?

    I just got am iPad 2.  When I did my synch to move from my iPad, I noticed all of my events broke apart so I now I have several of the same events with different pictures in them.  Any idea what is going on?

  • Apex 2.2 - Admin logon screen cannot be displayed

    I have installed Application Express 2.2 into an Oracle 9.2.0.8 database running on a LINUX X86 server but even after following all the relevant documentation for the installation and configuration I am still unable to access the 'apex admin' logon s

  • Regex Problem

    hi all, I wanna know how to check whole string using java regular expressions? e.g. i want to test whther 123 contains only number or not? "123".matches("\\d") is it corect? And if i want to check maltec shouls contain only alphabetci characters or n

  • Why is there not a "iBook" app for Macbook pros?

    I just bought some books off of the iTunes store and I am rather frustrated that I can not open them in anyway on my Macbook Pro. Apple why have you not made a iBook app for Macbook Pros yet???

  • Does Migration Assistant move Mailbox (mail.app) IMAP data?

    Recently I used migration assistant to move a user from a Lion machine to a Mavericks machine. I couldn't get it to work via direct ethernet (famous "1 minute remaining" bug) [1] so I migrated from a Time Capsule backup. After migration the User's ma