Data missing in reporting views

Hi,
As you can see below in the query, I am trying to report on hourly data (say 9:00 am, 10:00 am, 11:am , 12 pm) of current date time...I am finding data only in the CURRENT and DAILY views (whereas the DETAILS and HOURLY views are empty).
Where do I get the hourly information (not just current hour but for a window of 5-6 hrs from current time) ?
--25 hour period value for Read and write (Disk I/O)
--Details view
SELECT DISTINCT
  A.TARGET_NAME,
  A.TARGET_TYPE,
  A.COLLECTION_TIMESTAMP,
  sum(A.VALUE) AS READ_VALUE,
  sum(B.VALUE) AS WRITE_VALUE
  --A.KEY_VALUE 
FROM
  OEM_COPY.MGMT$METRIC_DETAILS A,
  OEM_COPY.MGMT$METRIC_DETAILS B 
WHERE
       A.TARGET_TYPE = B.TARGET_TYPE
   AND A.TARGET_NAME = B.TARGET_NAME
   AND A.TARGET_GUID = B.TARGET_GUID
   AND A.METRIC_LABEL = B.METRIC_LABEL
   AND TO_CHAR(A.collection_timestamp,'MM/DD/YYYY HH24') = TO_CHAR(B.collection_timestamp,'MM/DD/YYYY HH24')
   AND A.KEY_VALUE = B.KEY_VALUE
   AND A.METRIC_LABEL  In  ( 'Database Files'  )
   AND A.METRIC_COLUMN  In  ( 'write_cs'  )
   AND B.METRIC_COLUMN  In  ( 'read_cs'  )
   AND A.TARGET_TYPE  In  ( 'oracle_database'  )
   AND A.TARGET_NAME IN ('phadmdv')  
GROUP BY
  A.TARGET_NAME,
  A.TARGET_TYPE,
  A.COLLECTION_TIMESTAMP
ORDER BY
  A.TARGET_NAME,
  A.TARGET_TYPE,
  A.COLLECTION_TIMESTAMP
--Current value for Read and write (Disk I/O)
--From hourly table (empty)
SELECT DISTINCT
  C.TARGET_NAME,
  C.TARGET_TYPE,
  C.ROLLUP_TIMESTAMP,
  sum(C.KEY_VALUE) AS READ_VALUE,
  sum(B.KEY_VALUE) AS WRITE_VALUE
  --A.KEY_VALUE 
FROM
  OEM_COPY.MGMT$METRIC_HOURLY C,
  OEM_COPY.MGMT$METRIC_HOURLY B 
WHERE
       C.TARGET_TYPE = B.TARGET_TYPE
   AND C.TARGET_NAME = B.TARGET_NAME
   AND C.TARGET_GUID = B.TARGET_GUID
   AND C.METRIC_LABEL = B.METRIC_LABEL
   AND TO_CHAR(C.ROLLUP_TIMESTAMP,'MM/DD/YYYY HH24') = TO_CHAR(B.ROLLUP_TIMESTAMP,'MM/DD/YYYY HH24')
   AND C.KEY_VALUE = B.KEY_VALUE
   AND C.METRIC_LABEL  In  ( 'Database Files'  )
   AND C.METRIC_COLUMN  In  ( 'write_cs'  )
   AND B.METRIC_COLUMN  In  ( 'read_cs'  )
   AND C.TARGET_TYPE  In  ( 'oracle_database'  )
   AND C.TARGET_NAME IN ('phadmdv')
GROUP BY
  C.TARGET_NAME,
  C.TARGET_TYPE,
  C.ROLLUP_TIMESTAMP
ORDER BY
  C.TARGET_NAME,
  C.TARGET_TYPE,
  C.ROLLUP_TIMESTAMP
--Current value for Read and write (Disk I/O)
--From daily table (ONLY Daily averages)
SELECT DISTINCT
  C.TARGET_NAME,
  C.TARGET_TYPE,
  C.ROLLUP_TIMESTAMP,
  sum(C.AVERAGE) AS READ_VALUE,
  sum(B.AVERAGE) AS WRITE_VALUE
  --A.KEY_VALUE 
FROM
  OEM_COPY.MGMT$METRIC_DAILY C,
  OEM_COPY.MGMT$METRIC_DAILY B 
WHERE
       C.TARGET_TYPE = B.TARGET_TYPE
   AND C.TARGET_NAME = B.TARGET_NAME
   AND C.TARGET_GUID = B.TARGET_GUID
   AND C.METRIC_LABEL = B.METRIC_LABEL
   AND TO_CHAR(C.ROLLUP_TIMESTAMP,'MM/DD/YYYY HH24') = TO_CHAR(B.ROLLUP_TIMESTAMP,'MM/DD/YYYY HH24')
   AND C.KEY_VALUE = B.KEY_VALUE
   AND C.METRIC_LABEL  In  ( 'Database Files'  )
   AND C.METRIC_COLUMN  In  ( 'write_cs'  )
   AND B.METRIC_COLUMN  In  ( 'read_cs'  )
   AND C.TARGET_TYPE  In  ( 'oracle_database'  )
   AND C.TARGET_NAME IN ('phadmdv')
GROUP BY
  C.TARGET_NAME,
  C.TARGET_TYPE,
  C.ROLLUP_TIMESTAMP
ORDER BY
  C.TARGET_NAME,
  C.TARGET_TYPE,
  C.ROLLUP_TIMESTAMPThank you

I dont understand. what you say
you say that these query not returns rows and you need to know in what mgmt table is stored the mentioned information

Similar Messages

  • Data missing from report

    Hi
    I have a data set in a BIDS report and when I select the RUN ! option in Query Designer i get the following sample data
    When I look at Preview View in the report the rows relating to ra_tncy_no 202519 are missing. All other data is showing in the report as expected.
    Can anyone assist with why the data is not showing in the report view
    Thanks
    John

    Hi John,
    According to your description, when you preview the report, displayed data is not corresponding to the query results within the query designer.
    In your scenario, the issue could cause by that you have specified the visibility expression for ra_tncy_no field within group properties. Please go to Row Groups pane, click the first drop down button then select Group Properties. On Visibility page, please
    check if you have selected the display option like below and the expression is specified which value in ra_tncy_no field should hide or display. If so, please change the display option to Show.
    Besides, the issue could also cause by that you have add a filter condition within Group Properties. Please check the Filters page, if it looks below and the condition is used for filtering ra_tncy_no field , please delete the condition.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • OBIEE 10g - Unable to see data in the report view with grand total applied

    Hi,
    We're facing with a strange issue.
    We're working on a report view.
    We're able to see data when Grand total is not applied on the report. The moment Grand Total is applied, it's showing either an empty table with NULL values or "No Results" page.
    Please help.
    Thanks in advance.
    -Rama

    Hi Dpk,
    Thanks for your reply.
    I included it in the instanceconfig.xml, but the issue still exists.
    Couple of Observations
    #1 - We noticed this issue when we drill down to the level which has really sparse data.
    It works fine when we look at the enterprise wide report.
    #2 - Works fine with few dimensional attributes and facts on the report
    When we add a fact that doesn't have any value at that level, the issue starts to appear.
    Thanks in advance.
    -Rama

  • "Date picker" in report - - View source shows no label for the date picker

    Hi
    In one of my reports, I am using multiple types (textarea/text/date picker/select list)
    I wanted to use a javascript based on the label, but I do not see "<label>" for Date picker in the view source due to which my Javascript fails.
    Snippet of view Source:
    <td class="t3data" ><label for="f08_0001" class="hideMe508">CATEGORY</label><textarea name="f08" rows="4" cols="16" wrap="VIRTUAL" id="f08_0001">EMPLOYEE INDUCTION</textarea></td>
    <td class="t3data" ><span class="lov"><input type="text" name="f11" size="15" maxlength="2000" value="29-FEB-08" style="padding-right:5px;" id="f11_0001" /><script type="text/javascript">
    As you can see above, we have a "label for" for the text area but not for the date picker
    Is there a reason for the same?
    Thanks
    Nitin

    Hi,
    OK - the headers attribute should also help as these will identify the correct cells. You would need to know the html tags used within each cell for each datatype.
    Would using cloneNode help you? It's a method of creating a copy of an entire row in a single instruction
    Andy

  • Compare Date Parameters on Report Viewer

    Visual Studio 2010 (VB.NET)
    Crystal Reports 2010
    I have two date parameters in my report viewer (Start and End dates). When the user clicks the "Apply" button in the parameter panel is there any way to display a dialog box if the Start date is after the End date?
    I don't see any event for the "Apply" button, just the "Refresh" button (the ReportRefresh event).

    I actually got a hack job workaround to get this to work without having to write my own parameter panel or edit any of my 150+ reports:
    At the form load I can loop through the controls in the crystal viewer until I find the toolbar that holds the "Apply" button and add an event handler to it's ButtonClick event.
    I am using VB.NET:
    'Because there is no event handler for the "Apply" button in the parameter panel,
    'loop through the controls until we find the toolbar that holds that button. We can then
    'add an event handler to the button click event so we can check if the "Apply" button is clicked.
    For Each ctl As Control In CurrentCrystalReportViewer.Controls
        If ctl.Name = "InteractiveParameterPanel" Then
            'This control is the parameter panel
            For Each subCtl As Control In ctl.Controls
                If TypeOf subCtl Is Windows.Forms.ToolBar Then
                    'This controls is the toolbar that holds the "Apply" and "Delete" parameter buttons
                    Dim parmTool As ToolBar = subCtl
                    'add event handle so we can catch when a button is clicked
                    AddHandler parmTool.ButtonClick, AddressOf ParmToolBar_ButtonClick
                    Exit For
                End If
            Next
        End If
    Next
    When the "Apply" button is clicked this event will then be called:
    Private Sub ParmToolBar_ButtonClick(ByVal sender As Object, ByVal e As ToolBarButtonClickEventArgs)
            If e.Button.Text = "Apply" Then
                'check if there are date parameters
                If CurrentCrystalReportViewer.ParameterFieldInfo.Count > 0 Then
                      'loop through and find the start and end date parameters to compare the dates.
                End If
            End If
    End Sub

  • Select Row as Data filter between Report viewer webpart

    Hi All,
    i have a requirement in SharePoint 2013 which has 2 SSRS Report Viewer webpart.
    i need to pass data which i select in First webpart to second webpart.
    is this possible how can i achieve this.
    Thanks for your time.
    Regards
    Bhasker
    hi

    Hi Bhasker,
    In my opinion, you can refer to the steps as below:
    1.Get the parameters from one SSRS Report Viewer Web Part:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/454ae44f-0d29-485a-8830-d2fb0e03f250/how-to-pass-parameters-from-report-viewer-to-report-server?forum=sqlreportingservices
    http://msdn.microsoft.com/en-us/library/ff487390.aspx
    2.Pass parameters to another SSRS Report Viewer Web Part:
    http://sharepoint.infoyen.com/2012/08/25/pass-multiple-filter-parameters-to-custom-report-viewer-web-part/
    http://stackoverflow.com/questions/2564178/passing-multiple-parameters-from-custome-webpart-to-reporting-services-report-vi
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

  • Errors when viewing data with Crystal Report Viewer.

    we receive the following errors when we try to merge a crystal report with data, we are using a crystal  report viewer to display the report.
    Can someone help us with where we might be going wrong?
    Thanks
    Rajesh
    General Information
    Additional Info:
    ExceptionManager.MachineName: CCS104
    ExceptionManager.TimeStamp: 02/10/2008 12:40:31
    ExceptionManager.FullName: Congestion.Framework.ExceptionManagement, Version=33.36.0.0, Culture=neutral, PublicKeyToken=null
    ExceptionManager.AppDomainName: /LM/W3SVC/1/ROOT/BackOfficeTR4-1-128674174088125000
    ExceptionManager.WindowsIdentity: NT AUTHORITY\SYSTEM
    Renewal charges Statement Id : 37171
    Unknown Database Connector Error
    Error in File C:\WINNT\TEMP\{AE9A7C1D-F11A-41CC-B2F7-BC1062DC3A5B}.rpt:
    Unknown Database Connector Error
    Stack Trace :    at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.  (Object 
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataSet dataSet)
       at Congestion.Core.PresentationTier.BackOffice.WF_NewReport_P.DownloadPDFStatement(Int64 lngCanId, Int64 lngFasId, String strChargeType)
       at Congestion.Core.PresentationTier.BackOffice.WF_NewReport_P.Page_Load(Object sender, EventArgs e)
    Source : CrystalDecisions.ReportAppServer.DataSetConversion

    Hi,
    Its a best practice to use the code given below in the unload event of the page or the code can also be written in a button press event so that the disposing is ensured manually(If sessions are in use).
    boReportDocument.Close();
    boReportDocument.Dispose();
    GC.Collect();
    Note: boReportDocument is the object of ReportDocument.
    This code disposes the report object after using it.
    Check the issue with [filemon|http://technet.microsoft.com/en-us/sysinternals/bb896642.aspx] utility.
    Amit

  • Export and Print icons missing from report viewer

    I'm currently embedding crystal within a wicket application in which I'm making use of the getHtmlContent() method to retrieve the report's HTML.  For whatever reason, I'm not able to get either the export or print icons (on the top left side of the viewer).  Is this because I'm using the getHtmlContent() method or do I have something misconfigured somewhere?  Setting the setHasExportButton(true) and setHasPrintButton(true) on the report viewer object has no effect. 
    If I run the same report using the generated JSP outside of my application (within tomcat), I see the export/print buttons.  I notice the JSP makes use of the processHttpRequest() method.  Any help will be greatly appreciated.
    Thanks!
    Louis

    Hi Louis
    - The getHtmlContent() method handles the user's request to generate the HTML for the report and returns the HTML as a String.
    Note: Either the getHtmlContent method or the processHttpRequest method can be used to handle the user's request to generate the HTML for the report, depending on how you write your JSP. If the viewer's content is displayed more than once, then the getHtmlContent method is more efficient, because the request is processed once and the resulting HTML string can be used multiple times. In this case, you must set the content type of the HTML, as recommended in the table. Additionally, using getHtmlContent sets setOwnPage to false and disables exporting and printing.
    - The setOwnPage(true) and  processHttpRequest() method should be used if you want the export and print button to appear in the report viewed through Crystal Report Viewer.
    Following is the snippet of code which shows you how to use these 2 methods.
    //Get the IReportSource object from sesion and pass it to the viewer
         IReportSource reportSource = (IReportSource)session.getAttribute("reportSource");
    Create the viewer and render the report -
         //create the CrystalReportViewer object
         CrystalReportViewer oCrystalReportViewer = new CrystalReportViewer();
         //set the reportsource property of the viewer
         oCrystalReportViewer.setReportSource(reportSource);
         //set viewer attributes
         oCrystalReportViewer.setOwnPage(true);
         oCrystalReportViewer.setOwnForm(true);
         //set the CrystalReportViewer print mode
         //oCrystalReportViewer.setPrintMode(CrPrintMode.ACTIVEX);
         oCrystalReportViewer.setPrintMode(CrPrintMode.PDF);
         //process the report
         oCrystalReportViewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
    Hope this helps you .
    Thanks
    Soni

  • T.code KKRS - target data missing in reports - t.code KKSB

    Hi Gurus,
    when i am extracting the product hierarchy reports using the t.code KKRS.
    I am unable to see target data in year 2012 report only. But for year 2011, i am able to see both the target data and actual data.
    In 2012 i am able to see only actual data.
    What might be the reason of missing the target data in year 2012? What i should do?
    Thanks a lot,
    Gustavo

    Dear Gustavo
    please check note 87010
    br, Guido

  • Data missing in report--HELP Emergency

    Hello All:
    I've a multiprovider on Cube1 and cube2. Cube 1 has data at day level while cube 2 has monthly level data. The user enters a date suppose 04/30/2007, it brings data from cube1 without any problem, what happens with cube 2. I've written a customer exit to get month from given date for second cube but the key figures are showing blank when I run this report. Calday in the default view (rows) of the report. Please help me with this.
    Thanks in advance,
    Manasa.

    Hi Manasa,
    I guess following check would help you
    Solution 1 : In the multiprovider check keyfigure assignement whether you have checked Cal.day or Cal.month for your second cube .
    Solution 2 : you can restrict cube for your keyfigure by using RKF .If that particular Keyfigures gets data from cube 2.
    you check  the data by using LISTCUBE T.code.for multiproviders.
    Cheers
    Sreedhar

  • Data missing in report

    Hi all,
    I am working on Purchasing, in that i have 0vendor which have navigational attribute Preferred Supplier.
    In my report i kept preferred supplier in filter with value not assigned.
    after i run the report 4 records r missing, when i campare this with the same report in other dev server.
    i identified more values in preferred supplier in the other dev box, than in which server i developed. is it problem of that,
    What r those values i mean is it masterdata?
    Values: i was talking abt in navigation block, under dimensions.
    Regards,
    Madhu.

    If 0vendor has navigational attribute Preferred Supplier then Preferred Supplier will reflect values from master data table for corresponding valus of 0vendor.
    You are comparing too diff boxes all togather...are they being loaded from the same source..
    compare the records in cube and master data in the both the servers

  • Data Missing in Reports

    Hi,
    I am assigned an issue where the data is not reflecting in the BI reports.
    Scenario:
    A new vendor number was assigned to an existing customer in September 2010. After this month, data for this customer is not appearing in the reports.
    Analysis:
    I checked for the multiprovider for the available data. The vendor number for this customer is the old one and not the new one.
    I checked the transaction fk03 for vendor details, there the new vendor number is assigned for this customer.
    I checked the query based on the mp, the characteristic value assigned for this vendor is the old one.
    I am not able to connect these things altogether and carry forward. Please help.
    Thanks ,
    Saurav

    Hi Saurav
    have you reloaded customer master data to BW after this change?
    if no please do that.
    Also master data loaded prior to this change will continue to have link with older vendor unless you dont reload this.
    this happens because transaction data loaded prior to change will still have SID of older vendor only.
    Also make sure you run Attribute change run after you reload master data.
    hope this helps.
    Regards
    Sudeep
    Edited by: Sudeep Paranjape on Mar 29, 2011 6:04 PM

  • Crystal report Viewer Session times out for more data in Portal

    Hi All,         
         I am using below java SDK code to render a report in crystal report viewer. When i refresh report with more data(more parameter value) the server session times out in portal. Is there any way to fix this issue. The report loads data and then displays in Crystal report viewer, When more data is there the server times out as the server time is set to 60 sec. Is there any way to open the crystal report viewer as and when the report loads data to avoid server time out isse.
    Please help . Please let me know if I am missing something.. Thanks in Advance!!!
    CODE;
    <%@page language="java" contentType="text/html; charset=ISO-8859-1"
           pageEncoding="ISO-8859-1" session="false"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.OpenReportOptions"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.ReportClientDocument"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.ParameterFieldController"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKException"%>
    <%@page
           import="com.crystaldecisions.report.web.viewer.CrystalReportViewer"%>
           <%@page import="com.crystaldecisions.report.web.viewer.*"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%>
    <%@page import="java.io.Writer"%>
    <%@page import="java.io.IOException "%>
    <%@ page import="com.crystaldecisions.report.web.viewer.ReportExportControl" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ExportOptions" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat" %>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.DatabaseController"%>
                  <%@page
           import="com.crystaldecisions.sdk.occa.report.application.ReportSaveAsOptions"%>
           <% response.setHeader("pragma","no-cache");//HTTP 1.1
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Cache-Control","no-store");
    response.addDateHeader("Expires", -1);
    response.setDateHeader("max-age", 0);
    //response.setIntHeader ("Expires", -1);
    //prevents caching at the proxy server
    response.addHeader("cache-Control", "private"); %>
    <%
           String reportPath,Sharedpath;
           ReportClientDocument reportClientDocument;
                ParameterFieldController parameterFieldController;
                try{
                    reportPath = "reportlocation";
                 Sharedpath = "Target Location";
                    reportClientDocument = new ReportClientDocument();
                    reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
                         reportClientDocument.open(reportPath, OpenReportOptions._openAsReadOnly);
                         reportClientDocument.getDatabaseController().logon("Dbname", "dbpassword");              
                         System.out.println("Connecting...");
                       parameterFieldController = reportClientDocument.getDataDefController()
                   .getParameterFieldController();
                    parameterFieldController.setCurrentValues("", "param 1",
                         new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,29});
    parameterFieldController.setCurrentValues("", "Param 2",
                  new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23});
    reportClientDocument.saveAs("Target Report Name","Target Location", ReportSaveAsOptions._overwriteExisting);
           reportClientDocument.close();
           System.out.println("Finished...");              
    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setOwnPage(true);
    viewer.setPrintMode(CrPrintMode.ACTIVEX);
    viewer.setReportSource(Sharedpath);
    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
                  System.out.println("Finished...");
           }  catch (ReportSDKException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
    %>

    Hi All,         
         I am using below java SDK code to render a report in crystal report viewer. When i refresh report with more data(more parameter value) the server session times out in portal. Is there any way to fix this issue. The report loads data and then displays in Crystal report viewer, When more data is there the server times out as the server time is set to 60 sec. Is there any way to open the crystal report viewer as and when the report loads data to avoid server time out isse.
    Please help . Please let me know if I am missing something.. Thanks in Advance!!!
    CODE;
    <%@page language="java" contentType="text/html; charset=ISO-8859-1"
           pageEncoding="ISO-8859-1" session="false"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.OpenReportOptions"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.ReportClientDocument"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.ParameterFieldController"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKException"%>
    <%@page
           import="com.crystaldecisions.report.web.viewer.CrystalReportViewer"%>
           <%@page import="com.crystaldecisions.report.web.viewer.*"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%>
    <%@page import="java.io.Writer"%>
    <%@page import="java.io.IOException "%>
    <%@ page import="com.crystaldecisions.report.web.viewer.ReportExportControl" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ExportOptions" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat" %>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.DatabaseController"%>
                  <%@page
           import="com.crystaldecisions.sdk.occa.report.application.ReportSaveAsOptions"%>
           <% response.setHeader("pragma","no-cache");//HTTP 1.1
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Cache-Control","no-store");
    response.addDateHeader("Expires", -1);
    response.setDateHeader("max-age", 0);
    //response.setIntHeader ("Expires", -1);
    //prevents caching at the proxy server
    response.addHeader("cache-Control", "private"); %>
    <%
           String reportPath,Sharedpath;
           ReportClientDocument reportClientDocument;
                ParameterFieldController parameterFieldController;
                try{
                    reportPath = "reportlocation";
                 Sharedpath = "Target Location";
                    reportClientDocument = new ReportClientDocument();
                    reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
                         reportClientDocument.open(reportPath, OpenReportOptions._openAsReadOnly);
                         reportClientDocument.getDatabaseController().logon("Dbname", "dbpassword");              
                         System.out.println("Connecting...");
                       parameterFieldController = reportClientDocument.getDataDefController()
                   .getParameterFieldController();
                    parameterFieldController.setCurrentValues("", "param 1",
                         new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,29});
    parameterFieldController.setCurrentValues("", "Param 2",
                  new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23});
    reportClientDocument.saveAs("Target Report Name","Target Location", ReportSaveAsOptions._overwriteExisting);
           reportClientDocument.close();
           System.out.println("Finished...");              
    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setOwnPage(true);
    viewer.setPrintMode(CrPrintMode.ACTIVEX);
    viewer.setReportSource(Sharedpath);
    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
                  System.out.println("Finished...");
           }  catch (ReportSDKException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
    %>

  • Report Viewer and Multiple Data Sources

    I know that it is possible to create a report in Crystal Reports using multiple data sources.  But is it possible to use just the Free  Report Viewer to view a report with Multiple Data Sources?
    Our company uses Crystal Reports XI.  I do not use the program myself, I am in the IT Department.  I have limited knowledge of Crystal and do not do any of the report writing.
    If this is possible, and if someone could help me out with what would need to be done, or point me in the right direction of a Knowledge Base or Help Topic that explains this, that would be great.
    Thanks.

    I believe it can but both data sources need to be set up. Ask a report designer to help you use the Designer to test this and see what is required.

  • Crystal Report Viewer 2008, postback causes a weird QueryString for dates

    HI,
    I'm having a weird problem that was masked with the error "".
    What is happening to me is that i have an ASPX page where the QueryString passed in is used as parameters to the report (straightforward).  When the page first loads, this is all fine the QuerySTring is properly parsed and the report is properly displayed.  Now, the problem comes when i click on the PRINT Button it performs a postback, and during that postback the querystring is read so that it can rebuild the report on the postback.  (In previous versions of crystal, this has always worked).  The issue here is that the version 12 of the report viewer here now appears to also append some information to the query string that was not previously there (like this:  ServletTask=Print&cmd=get_pg&page=1)  So the problem here for me is this is what my original QueryString looks like:
    tokenid=b2817081-6b52-43c7-8e2c-d6209af2ed98&Type=Appointment&Val=12%3b1%3b1%3b06%2f10%2f2000
    THat query string is generated by the following code (pre-encoded)
    "PrintPage.aspx?tokenid=" & Guid.NewGuid.ToString & "&Type=Appointment&Val=" & "12" & ";" & "1" & ";" & "1" & ";" & "1/1/2000"  (NOTE the date here, i'll get to that in a second)
    Then, what the problem is on the postback the Query String looks like this:
    tokenid=2a4f42de-bd90-48b5-ac82-bd34b503afd3&Type=Appointment&Type=Appointment&Val=12%3b1%3b1%3b1%2f1%2fPrintPage.aspx%3ftokenid%3d2a4f42de-bd90-48b5-ac82-bd34b503afd3&Val=12%3b1%3b1%3b1%2f1%2f2000&ServletTask=Print&cmd=get_pg&page=1
    As you can see here it's all messed up.
    So, what i found here is that the underlying cause is that we are passing a "date" in the original QueryString and it seems on the postback the Crystal Reports Viewer is having some issue with that and basically messes up the query string...
    I have Crystal Reports 2008/SP3 installed.
    Any help would be greatly appreciated.
    Thanks

    Cleaning up these forums I came across this unanswered thread.
    Very weird behavior that I have seen maybe 3 or 4 years ago - I think it was with opendocument.aspx...
    In this case, we appear to be re-adding the querystring with the aspx name and question mark (u2026.parentagesu2026).  Having two question marks (%3f) is essentially a malformed URL since this indicates where the querystring starts.
    The duplicate querystring may have been a coding error(?) where it gets added again on a postback.
    Were you able to resolve the issue?
    Ludek

Maybe you are looking for