CR 2008/VS 2005/Winform : HOW TO REFRESH DATA ONLY ?

Hi,
  I display a report in a CrystalReportViewer (Windows Form).
  This report have NO Saved data, use some parameters, use a formula, and connect to a SQL Server via OLE DB.
  I would like to REFRESH THE REPORT after some data has been modified in the Database. (just the DATA in the report, NOT the parameters, NOT their values, and NOT the formula).
  PROBLEM : this SIMPLE TASK seems to be IMPOSSIBLE to do !!! (I can't beleive this !)
  If I call Refresh() or  ReportRefresh(), in the Viewer or in the ReportDocument, the formula AND the report Parameters have no more effects.
   "ReuseParameterValuesOnRefresh = true " : DON'T WORK  !!! 
   QUESTION : Is there a way to refresh DATA in a report without completely reload the entire report file & params & formulas & Data & ... ???   
  Thanks a lot for your help.
  Steph

I have had a similar issues with report parameters.
The solution for me was to set the parameter value in the RefreshReport event of the ReportDocument not the crystalReportViewer.

Similar Messages

  • How to refresh data contained in CachedRowSet

    Hi all,
    I need to refresh data contained in CachedRowSet. I hope I don't have to call populate or execute again since I'm afraid this will need a big overhead. All I want is to be updated when other user add or delete any records.
    Any advice would be greatly appreciated.
    Setya

    essentially you want a live and sensitive cursor. perhaps you are missing the point of a cache. you can't have your cake and eat it too.
    in summary you need to refresh the whole thing.

  • How to refresh data in SelectOneChoice component based on backing bean

    Hello.
    I am using JD Studio Edition Version 11.1.1.5.0 on Weblogic 11.1.1.5
    I have page fragment with SelectOneCoice based on backing bean (used as filter)
    <af:selectOneChoice label="#{projectBundle['label.toolbar.spinbox.period']}"
                                        valueChangeListener="#{backingBeanScope.backing_jsf_fragments_project_ContentMainView.onPeriodValueChangeListener}"
                                        binding="#{backingBeanScope.backing_jsf_fragments_project_ContentMainView.soc2}"
                                        id="soc2" value="#{pageFlowScope.ContentMainView.period}" autoSubmit="true">
                      <f:selectItems value="#{pageFlowScope.YearsListBean.yearItems}"
                                     binding="#{backingBeanScope.backing_jsf_fragments_project_ContentMainView.si2}" id="si2"/>
    </af:selectOneChoice>
    there is backing bean which reads data from database and creates list + add null value
    package sk.web.view.bean;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.model.SelectItem;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.share.logging.ADFLogger;
    import oracle.jbo.Row;
    import sk.web.view.common.utils.ADFUtils;
    * Class is supposed to provide list of years for the af:SelectOneChoice component.
    public class YearsListBean {
        private static final String PERIOD_ITERATOR_NAME = "PeriodView1Iterator"; //auto generated id
        private List<SelectItem> yearItems;
        public YearsListBean() {
            super();
            yearItems = new ArrayList<SelectItem>();
            addYearsToList();
        public void addYearsToList() {
            DCIteratorBinding iter = null;
            iter = ADFUtils.findIterator(PERIOD_ITERATOR_NAME);
            Row[] rows = iter.getAllRowsInRange();
            addYearItemToList("", "");       
            for(int i = 0; i < rows.length; i++){
                Row row = rows[i];
                log.info("row[" + Integer.toString(i) +"]: " + rows[i].getAttribute("Year").toString());
                addYearItemToList( rows[i].getAttribute("Year").toString(), rows[i].getAttribute("Year").toString());
        public void clearYears() {
            log.info("Called.");
            getYearItems().clear();
       private void addYearItemToList(String strInYearLabel, String strInYearValue) {
            SelectItem tObjItem = new SelectItem();
            // Setup object
            tObjItem.setLabel(strInYearLabel);
            tObjItem.setValue(strInYearValue);
            // Add it ro list
            yearItems.add(tObjItem);   
        public List<SelectItem> getYearItems() {       
            // Get Output
            return yearItems;
    When I insert new record into DB table I want to show new value into filter. How to achieve this?
    I tryied get current instance of YearsListBean
         YearsListBean yearsList = (YearsListBean)FacesUtils.getManagedBean("pageFlowScope.YearsListBean");
    then clear and fill it again
         yearsList.clearYears();
         yearsList.addYearsToList();
    at the end I refresh view adding partial target
    AdfFacesContext.getCurrentInstance().addPartialTarget(getSoc1());
    But this procedure doesn't work. Please help me find working method.
    Thanks in advance.

    Why don't you use a model driven list in the first place? Your list gets it's data from a vo do this would be the preferred solution.
    Check out my sample http://wp.me/pcBZk-vM
    Which shows an similar use case.
    Timo

  • Dynamic servlet - PDF: how to refresh data?

    I'm working with servlets that dynamically generates PDF files to the browser.
    Using bottons with javascript I create a second window where the PDF file(servlet with PDF output) is displayed; But if I close it, and after this I want to display agai the same servlet but with different information inside, the computer display the info of the first PDF file on browser.
    This is because the first PDF file have the same name of the second one (the PDF name = Servlet name), therefore the file is "cached" by the browser.
    How can I fix this problem?

    Hi,
    You can include these lines in your code, which will change the first header line that matches name to have value, adding a new header if no existing header matches. Remove all matching headers but the first
    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Pragma", "no-cache");
    Whenever pressing "Forward" or "Back" button of your browser you can see the newly generated page.
    Hope this helps you.
    Thanks,
    Senthil_Slash.

  • How to refresh data in query

    Hi all,
    While uploading, the data in a workbook has to be updated/refreshed automatically in background(background scheduling). can you please throw some light on this?
    Regards,
    N.Raja Sekhar

    Hi Raja,
    Please see this thread:
    Save workbook after each refresh
    There are also lot of other thread that discussed the same requirement..
    Hope this helps..
    Regards,
    Prema

  • How to impdp data only into a specific schema

    Hello,
    How to impdp Tables and Materialized Views only into a specific schema. Also, how to exclude certain tables in particular schemas from being imported. Thank you.

    Pl Check the link
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_import.htm#i1007865
    Thanks

  • How to load data only at the upper level in ASO

    We are loading the Days member with values 31/30/29/28 for the top level combinations in Block storage cube using a rule file.<BR>Now we need to carry out the same thing in ASO but ASO has a constraint that we can load data only at zero level.<BR>If we do that, then data at higher levels, after aggregation is incorrect. What can be done ?

    Also possible but a little more complicated is to create a separate cube with a DayCount account and only accounts and time dimensions. The time dimension goes down to day. You load it with 1 record per day. Then, you use this cube and your original cube as source, transparent partitions to a BSO cube. <BR><BR>This way, you have no bogus "input" members anywhere. Formulas that combine DayCount with other things would be written as outline formulas in BSO, since it doesn't support MDX. If you need those to be in MDX, then this wouldn't work for you.

  • How to fetch data only from index

    Hi,
    I'm using below query which fetches arount 1,00,000 records & then perform group operations on them.
    <pre>
    SELECT Record_Type,Country_Product_Id,Channel_Id,SUM(Items)
    FROM t_Utr
    WHERE Four_Eyes_Status='A'
    AND(
    Booking_Date >= To_Date(v_Period_Start_Date, 'DD/MM/YYYY')
    AND Booking_Date <= To_Date(v_Period_End_Date , 'DD/MM/YYYY')
    AND Invoice_Id IS NULL
    AND Link_Id=p_Link_Id
    AND Billing_Indicator = 'L'
    GROUP BY Record_Type, Country_Product_Id, Channel_Id
    </pre>
    I'm having an index on all the columns being searched and all the values being fetched.
    Here I want to know if there is some procedure where we can fetch all the data from index itself, & we need not to switch again & again between table & index data.
    Thanks
    Deepak

    That's the kind of thing you want to leave to the optimizer.
    Provided you supply it with the information needed, most of the time it will make a better decision than you will on speculation.
    You want to avoid "hard coding" execution plans since this is contrary to the principles of the CBO and the "what" vs "where" philosophy underlying declarative programming.
    A few thoughts:
    1) Possibly the "AND Invoice_Id IS NULL" gets in the way of that of index only lookup
    2) To raise an optimizer bug/change request you will need to prove that your suggested plan is (a) possible (b) superior to the optimizer's choice (c) the optimizer choice is based on erroneous logic (possibly via 10053 trace)

  • How to copy data only

    Hi,
    I'm wondering what is the way to copy schema table data only (no definitions) between 2 databases?
    (the schema names are the same)
    What happens if tables are not identical (by definition).
    Thx,
    Dobby

    I'm wondering what is the way to copy schema table
    data only (no definitions) between 2 databases?
    (the schema names are the same)
    What happens if tables are not identical (by
    definition).I am curious why you wanted to do like that.
    You also can use following method(a little complex):
    1.  in sqlplus,
              set head off feedback off lines 300 pages 0
        1.1 spool /tmp/abc.txt
        1.2 select * from table1 where ...
        1.3 spool off
    2. in other database, use sqlloader or external table to get data.

  • How to refresh the ALV Tree

    Hi,
    I have an ALV Tree report developed using the OOPS. In my ALV Tree output, I have some buttons which will update the database after clicking. The data is correctly updating in the database. But, it is not getting updated in the ALV Tree display. That means, it is not REFRESHing the ALV Tree display. We have to again execute the program in order to see the updated output.
    Could anyone please suggest me how to Refresh the ALV Tree display..?
    We can't use the method 'REFRESH_TABLE_DISPLAY' as it is a PRIVATE method is the class CL_GUI_ALV_TREE.
    Please share your valuable thoughts.
    Thanks & Regards,
    Paddu.

    Hi paddu.
    please check out the link mentioned below,this will help u.
    How to Refresh data on ALV tree
    Regards
    Theres

  • Last Refreshed Date with Timezone

    Post Author: kongusiva
    CA Forum: WebIntelligence Reporting
    Hi,
    We have one requirements like below, we need to display Last Refreshed date which helps to see when the report got refreshed before.
    Present:            Last Refreshed Date: 01-JAN-2008 1:29 PM
    Requirement:     Last Refreshed Date: 01-JAN-2008 1:29 PM EST
                Users like to see the Time Zones also in the Last refreshed Date
    Please suggest me how to resolve the issue.
    Thanks
    Siva..

    Post Author: kcheeb
    CA Forum: WebIntelligence Reporting
    You could use the format editor, select Date and Time tab, Customize, Time tab then use the Format Formula Editor for the AM & PM symbols to add the time zone to the end of the AM or PM string.

  • How to refresh CR 2008 datasource

    Hello,
    We have upgraded CR 10 that came with the Visual Studio 2005 to CR 2008. However, just upgrading of the Visual Studio project was not enough, to make old CR 10 reports to work I have to open each report in the CR 2008 application (not the Visual Studio), refresh their data source and save, after this they work.
    I'm using datasets as a datasource, so I don't have problem with it. But some reports I inherited from the previous developer. He was using a C# class as a datasource for reports. It's just a C# class file - InvReport.cs. This file contains field definitions for several reports.
    I cannot figure out how to refresh this datasource. Class file is not in the list of the datasources for Crystal Reports, so whatever I'm trying to do in the Database Expert (or by setting datasource location) fails.
    Could you please advise me on how to deal with this situation? Or perhaps there is another way to to upgrade the old reports to 2008 version? According to Visual Studio - they all had been upgraded automatically, but in reality they don't work until I open each one in the report application and refresh datasource.
    Thank you,
    Peter Afonin

    Peter,
    Rather than updating the reports from VS2005 I would suggest you to use CR2008 designer. During updating of the application the reports might not have got updated properly as it depends on the complexity of the reports like stored procedures, formulas etc. So I would suggest you open the .rpt file in designer, Go to Field Explorer -> set data source location and then create a new connection in Replace with window and update the fields in Current datasource window.
    Preview to ensure the report displays proper data and then use this report in the application.
    Hope that helps!
    AG.

  • How to refresh report using Crystal Report Viewer 2008

    Hi,
    Please help me I dont now how to refresh report, te tab "refresh" is not active !!!!
    Jacek

    Hi Jacek,
    You can only refresh reports that are hosted on Business Objects servers (such as Crystal Reports Server 2008).
    http://www.businessobjects.com/product/catalog/crystalreports_viewer/
    Cheers,
    Fritz

  • How to refresh the data in a container and to update the new data

    Hi,
    I have created a Module Pool Program in which i have two containers to display the long text.
    Initially this container is filled and based on some condition i want to update the text in the same conatiner.
    I am using the below two classes to do all this.
    cl_gui_textedit,
    cl_gui_custom_container,
    Could someone help me how to remove the long text in the container and update the new long text.
    I am getting the new long text but not able display it in the same container. Please someone help me how to refresh and update the container.
    Thanks in advance.

    Hi
    Try this.
      IF cl_gui_textedit  IS INITIAL.
      create control container
        CREATE OBJECT cl_gui_custom_container
           EXPORTING
                container_name = 'Container Name''
           EXCEPTIONS
                cntl_error                  = 1
                cntl_system_error           = 2
                create_error                = 3
                lifetime_error              = 4
                lifetime_dynpro_dynpro_link = 5.
    create text_edit control
        CREATE OBJECT cl_gui_textedit
           EXPORTING
                parent = cl_gui_custom_container
                wordwrap_mode = cl_gui_textedit=>wordwrap_at_windowborder
                wordwrap_to_linebreak_mode = cl_gui_textedit=>false
           EXCEPTIONS
                error_cntl_create      = 1
                error_cntl_init        = 2
                error_cntl_link        = 3
                error_dp_create        = 4
                gui_type_not_supported = 5.
      ENDIF.
    *--use method to set the text
      CALL METHOD cl_text_edit->set_text_as_stream
        EXPORTING
          text            =  t_lines ( Internal table with long text).
        EXCEPTIONS
          error_dp        = 1
          error_dp_create = 2
          OTHERS          = 3.
    regards,
    Raghu.

  • How to refresh the data in sharepoint online

    Hi,
    I have an Office365 PowerBI Preview site and I have uploaded a excel sheet with a using power query connecting the
    azure data source. I then setup the "Data Management Gateway" and "Data Source" in the Manage Data settings within PowerBI and the Excel spreadsheet now refreshed data within the Excel web app. 
    Here I won't refresh my data but no error shown.  
    But Selected "Edit the Excel" option and refresh the connection on workbook Queries in power query within excel.
    Tts works fine. I can able to see my modified data.
    Anyone how to resolve this issues?
    Thanks,
    Ramu

    Is this still an issue, Ramu?
    Thanks!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

Maybe you are looking for