Report showing data only when preview in Eclipse is executed

Hi people,
I intend to do a dynamic report sending two parameters and displaying on browser.
My application runs under Coldfusion 9 and i'm using Java Reporting Component for report generation and Crystal Reports Design for Eclipse 2.0 for design and Oracle 10g database.
In first preview it shows the parameter window and after confirmation the report is generated. But when i preview again the report is generated with the older data. It seems that the data in the first execution is cached.
In Coldfusion execution the report appears in browser when the value on the line parameter.setCurrentValue("","Pessoa",value); is the same used in preview. After change this an generic exception Error loading JDBC driver. Class 'oracle.jdbc.driver.OracleDriver' not found is throwed.
The Coldfusion code is below.
<cfscript>
     byteRead                    =     '';
     exportFormat               =     createObject('java','com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat').PDF;
     reportBuffer               =     createObject('java','java.io.ByteArrayOutputStream');
     reportDocument               =     createObject('java','com.crystaldecisions.reports.sdk.ReportClientDocument');
     reportParameter               =     createObject('java','com.crystaldecisions.reports.sdk.ParameterFieldController');
     printOutputController     =     createObject('java','com.crystaldecisions.reports.sdk.PrintOutputController');
     connInfo                    =     createObject('java','com.crystaldecisions.sdk.occa.report.data.ConnectionInfo');
     reportPath                    =     expandPath('report/DividasPessoas.rpt' );
     reportDocument.open(reportPath, 0);
     parameter = reportDocument.getDataDefController().getParameterFieldController();
     parameter.setCurrentValue("","Credor","1");
     parameter.setCurrentValue("","Pessoa","226426");
     printOutputController = reportDocument.getPrintOutputController().export(exportFormat);
     reportDocument.close();
     do{
          byteRead = printOutputController.read();
          reportBuffer.write(byteRead);
     }while( printOutputController.available() NEQ 0 );     
     reportBuffer = reportBuffer.toByteArray();
</cfscript>
<cfheader name="content-length" value="#ArrayLen(reportBuffer)#" />
<cfheader name="content-disposition" value="inline;filename=Report.pdf" />
<cfcontent type="application/pdf" variable="#reportBuffer#" />
I googled a lot about the problem, reviewed all Eclipse options to disable the "cache" but everything was unsuccessful.
I don't know if missing code is causing this or another component that i need to use.
Any suggestions?
Thanks everybody for attention and sorry for english errors.
Ian

Hi,
Regarding your query that when you preview a report that has parameters in it, the prompts daillog box comes when you first preview the report.when you again preview you get the old values again.
For this there is a refresh button, click on refresh, it will again promt you for parameters.
Thanks
Prithvi

Similar Messages

  • Fonts not showing correctly only when on my account page on app store

    fonts not showing correctly only when on my account page on app store

    Firstly, make sure that your device is not hidden (left hand pane). If it just reads device then toggle between SHOW and HIDE.
    Secondly, try all the other ports on your computer, even a number of times.
    Thirdly, if you have another computer try plugging your device into it without taking any action, give it a moment, remove it and try it back in your other computer again.
    Failing all that, see here - http://support.apple.com/kb/TS1538 for Windows and http://support.apple.com/kb/TS1591 for Macs
    And failing all that put the device into Recovery mode. See here and note the paragraph 'If you restore from a different computer.... ' down near the bottom of the page -
    http://www.apple.com/support/ipad/assistant/itunes/

  • Query Governor - Summary Data - Only when not out of date?

    In Oracle Discoverer Desktop edition the user can choose how Summary Data are used:
    1. Always, when available
    2. Only when summary data are not out of date (stale)
    3. Never
    What exactly is the meaning of "Only when summary data are not out of date"?
    In previous versions of Discoverer you had the opportunity to specify how old (in days) summary tables were acceptable to you.
    (By the way: In the Danish translation of Discoverer the word "not" has been omitted, so you have the opportunity to use summary data only when they are out of date :-)
    Best regards
    Torben

    Actually it doesn't matter if you have Applecare or not because Apple simply isn't recognizing this as an issue even though multitudes of people have experienced it. If they don't see it as a problem, then they obviously don't have a solution, and so taking your laptop in through apple care is totally useless.
    I've talked to 3 customer support representatives over the phone and they all said they were 'unaware of the issue' and would not even attempt to help. It's very disappointing.

  • Show LOV only when field is blank

    Hi all,
    My environs:
    Oracle 10g on Windows
    Forms [32 Bit] Version 9.0.4.1.0 (Production)
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Oracle Toolkit Version 9.0.4.1.0 (Production)
    PL/SQL Version 9.0.1.5.1 (Production)
    My problem:
    I have a field in a block, that is text_item and is tied to a LOV item. I want the LOV to show up automatically, each time I tab into it, only when the item is BLANK (say when I am trying to insert into the block). When on query, it should only display the queried value into the field, and user can choose to activate the LOV, by pressing F9, if she wants to. It now displays automatically each time text item is in focus (works fine when user is inserting, but annoying when she has queried the form, and trying to tab thru. Each time she focuses on the field, LOV is popping up!)
    The current property setting on the text field item: Type: Text Item
    List of Values : MY_LOV_NAME
    Validate from List : Yes
    Properties on MY_LOV_NAME
    Automatic Display: Yes
    Any suggestions? Or Item level trigger i can use, and if so, when build_in can I use?
    New to forms and will greatly appreciate advice from pros!!
    Thanks
    Libran_girl

    It is very simply,
    IN When-new-item-Instance
    DECLARE
    V_LOV BOOLEAN;
    BEGIN
    IF :ITEM_NAME IS NULL
    THEN
    V_LOV = SHOW_LOV(LOV_NAME);
    END IF;
    END;
    give it a try, you will get your result, if it doesn't work then try :block_name.item_name
    Abbas

  • Single Worksheet Viewer used in portlets shows data only in English

    Hi all,
    We have a problem with Discoverer portlets displaying data only in English:
    Our MOLAP cubes contain data in English and in Bulgarian. We have two public connections - one set to EN and the second to BG language.
    Into the portal we have two pages - first one contains Discoverer List of Worksheets and Discoverer Single Worksheet portlets, both using the EN connection, second page is similar but using the BG connection.
    When we open a worksheet from a portlet set to BG it always shows the data in EN. Same worksheet when opened from the stand-alone Viewer shows the data correctly.
    We found a Metalink note 395836.1 which says that Oracle have implemented a Single Worksheet Viewer since version 10.1.2 that is used in Discoverer portlets instead of the standard Viewer. There is also an explanation how to revert to the standard Viewer but only for the public users to the portal. We tested it and it works but we need it for the users that log into the portal.
    That makes us thing that the problem is related to this Single Worksheet Viewer.
    Has anyone fased this problem? Any ideas how to solve it?
    Regards,

    Hi,
    I opened a SR in Metalink and the answer from the support team is:
    "When the user "creates" the Disco Portlet, the language defined in the
    browser, in this case English, will be the language used when
    displaying the data in the SSO portlets.
    And the workaround someone to be able to publish the portlet in different language is to change the default browser language to the desired language before publishing the portlet. We tested it as follows:
    1. Changed the browser language to Bulgarian - for IE (Tools - Internet Options - General tab - Languages button), for Firefox (Tools - Options - Content - Languages area - Choose button)
    2. Added portlet to the page which is using the public connection set to Bulgarian language.
    3. After publishing the portlet, the data appears in Bulgarian.
    Tested with both Discoverer Worksheet and Discoverer List of Worksheets portlets and it WORKS for the both.
    The inconvenience is that if you are working with multiple languages you have to be careful which language is set in the browser when you publish a portlet and you have to switch between the different languages. There is no possibility to change the language after the portlet is published - it will open always in the initial language.
    I thing that such an important limitation should be included in the Discoverer official documentation.
    Regards,

  • Inconsistent data in reports while data populated when BI Publisher is up

    Hi,
    I am using an sql query in my report to populate data into it. The BI Publisher is up and running and then I viewed the report. It is displaying the data fine.
    Now, I added/updated/deleted the data into corresponding tables. The BI Publisher is still up and running.
    Now, when I try to view report the data getting displayed is not in consistent with the data in database. If I restart BI Publisher then the data is consistent with database.
    Can any of you tell me what to do to avoid this? Am I missing any configuration here? Is there any kind of caching happening within BI Publisher which can be prevented?
    Appreciate your help reg. this issue.
    Thanks in advance,
    -Vijay-

    Hi,
    there's a document cache at report level. Check if this is activated (which is as default). You'll find the checkbox Enable document cache at report level.
    Regards
    Rainer

  • Output preview works only when preview dialogue box is open?

    The output preview setting certainly takes effect, but only when the output preview dialogue box is open, so that accurately previewing images in reading mode is not possible; it's only possible to see a preview by going to an image and opening the OP dialogue box. As soon as the OP dialogue box is closed, the image reverts back to its pre-preview state. This can't be right!

    Thanks for your feedback. I had tried to navigate with the dialogue box open using the "hand", which didn't work; I see now that you can still go from page to page with the box open using either keyboard command or menu arrows.
    I was actually incorrect in referring to "reading mode"; I meant to say "full screen" mode. And again, since the cursor doesn't act as a cursor but rather as a pinpoint when the dialogue box is open, I incorrectly assumed that all navigation (including full screen mode) was disabled. This, I now see, is not the case.

  • Export report Excel-Data Only works not,'not enough memory for operation'

    Hi all,
    we are using in our Software CrystalReport Version 11 Service Pack 5. Crystal report is intergated for .NET. We can not uninstall CrystalReport Version 11 Service Pack 5 to install another Version or another Service Pack.
    We are haveing problems to export report as Excel 97-2000 Data Only, "not enough memory for operation" message pop up after you try to export report as Excel data Only.
    Export Report as PDF is working fine.
    This problems are on Windows XP Sp3 and Vista. On Windows 7 we have no problem.
    Please, can somebody help me solving this problem, or to finde a workaround for Windows XP. Memory from PC is not the problem.
    Mit freundlichen Grüßen / Kind regards
    Odisej Nujiq

    Odisej, unfortunately, processes such as remote sessions are reserved for phone cases only. You can create a phone case here;
    http://store.businessobjects.com/store/bobjamer/en_US/pd/productID.98078100?resid=S6I@hgoHAkEAAGsiyVkAAAAR&rests=1282226845369
    Also, just as an FYI, see the blog [What are these 'support' forums good for anyhow?|/people/ludek.uher/blog/2011/04/07/what-are-these-support-forums-good-for-anyhow]
    Without phone support, you are left to do most of the foot work your self. On the forums, we can provide suggestions and guidance, but that is about it.
    Couple of things to note though. If you do create a phone case, one of the 1st things that you will be asked is to update your app to SP6 - unless you can prove the same issue exists with SP6 (see more bellow).
    Something I would recommend you try is to take an XP box, install SP6 on it, then install your app on it. If this works, your options are highly limited. E.g.; SP6...
    One other utility that may be worthwhile to use is [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx]. Run that on the XP box. In the logs, look for "Access Denied" error messages. Look for load or other issues with crxf_xls.dll, exportmodeller.dll and crtslv.dll.
    From your responses I am still not sure if you actually did run Modules and compared the results. This is much, much easier to do than working with ProcMon and I'd start there. To summarize, my troubleshooting plan (irrespective of the limits imposed on you) would be:
    1) Use Modules as this is the easiest thing you can do
    2) Try this with SP6 - more work that (1) above, but at least you are on the latest. If this works, banging your head into an SP5 wall will do you no good (like I said, irrespective of what ever limits...)
    3) Use ProcMon - not too difficult, but time consuming as you will be looking over 100s, possibly 1000s of lines and not being familiar with details of CR, this will take time.
    - Ludek

  • Load new data only when needed

    I am trying to reduce the number of unnecessary load request to the server. I have this:
    var ds1 = new Spry.Data.XMLDataSet("test2.php", "export/row", {sortOnLoad: "grade_id", sortOrderOnLoad: "ascending", distinctOnLoad: true, useCache: false, loadInterval: 2000});
    But I want to update regions associated with this dataset only when i click a button, that way i dont kill the server , what is the best way to do that.

    Call ds1.loadData(); when you click the button.

  • Logging data only when value of tag increases

    Hello,
    I want to data log only when my tag value is increases another it will not log data in database.
    So how do I do this.
    Thanks & Regard
    Nitin Jain

    A functional global, which will look at the current value, compare it to the previous, and if the new value is greater, signal that fact, and replace the previous value with the new value. You probably want the comparison to have a range, or a threshhold, so that it has to have increased by a certain amount before this all occurs, also are you only concerned in increasing? If you signal were a slow sinusoidal one you would register increases all the way up one side of the waveform, then once the peak was reached no more data would be saved, unless of course the amplitude increased. Do a search on functional globals, Action Engines, to see what I'm refering to as a storage mechanism.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Show grid frames when previewing and printing

    Hoping somebody out there can help..
    I'm starting a new business, and teaching myself CS6 from scratch to design a 16 page catalogue in the next 4 weeks. I'm working with a 4, 6 or 9 grid structure per page using frames to create the grids. However, i can't work out how to show the frames holding the product information when previewing and printing the brochure. I also want to  lock the template frames in place if possible so they can't be altered when inserting text and images.
    I've watched a few tutorials and done quite a bit of research, but can't crack it!
    Yours hopefully...
    Hugh

    Eugene,
    Thanks for the feedback. Your answer helped me realise that text/Image frames aren't the right tool to create my catalogue page box template, but i haven't yet figured out which feature i should be using or how to edit the layout i want to copy! (below)
    I've done some more research on Frames, Layers, Tables & Rows, but still can't see which feature i should be using to replicate the page layout below to be printed and which will contain the product information.
    Any suggestions?

  • Activity monitor shows data sent when playing songs

    What's going on? Whenever I play a song on iTunesl, Activity Monitor shows data being sent, as if I'm streaming it. Am I?

    Data sent is termed uploading. Data received is termed downloading. So no, you're not streaming it.
    There are a lot of processes running on your Mac at the same time, many of which need to connect to the Internet to maintain a connection, check for data, etc. So it will send out a small amount of data, and receive some as well all the time. The amount of data transferred is usually very small, and you don't need to worry about it.

  • Crystal Report: Show Field only in Print-Preview

    Dear Experts,
    is it possible to show a field only in the print preview (when the report is generated) without printing this field?
    Thanks for Help.
    Jacqueline

    No, it is not possible to display a report object on screen then suppress it when printing.
    Fuskie
    Who thinks you would have to use 2 reports or use a parameter that offers the option of formatting for view versus for print...

  • How to display group data only when the particular group is clicked

    Hi frnds,
    I want to design my report as follows:
    Data is grouped by country, and for each country it is showing details for that country. I need to find out a way to display all group names first.  E.g.
    Argentina
    Aruba
    Australia
    And on click of particular country name it should display its details below it
    e.g.
    -Argentina
         BBB            Mendoza          123456
    +Aruba
    +Australia
    Has anyone done that before??? Is it possible to achieve it through Crystal Report Designer (2008)?? If yes then how???
    A prompt reply would be appriciated as i need this information urgently.
    Thanx.

    Thanx Jehanzeb,
    The sample u suggested did not solve my problem since it is opening the group data in new window.
    My question is - can we show/hide group data by clicking on that particular group (under that group name).
    e.g.
    ->(initial display - only groups)
    + Australia
    + America
    + Bhutan
    ->(on clicking a group)
    + Australia
    \- America
    abc    xyx    12213213    wqe9090
    dsd    dcv     90eur90e    ifjjdioifdoi
    + Bhutan
    In short, I am looking for on-demand display of records grouped by some field and the expansion of data must be done in the same page.
    Edited by: Kuldeep Chitrakar on Aug 6, 2008 12:44 PM
    Edited by: Kuldeep Chitrakar on Aug 6, 2008 12:45 PM
    Edited by: Kuldeep Chitrakar on Aug 6, 2008 12:46 PM

  • Selection screen in Cc reporting showing two lines when changed Person Res.

    Hi Guruz
    I have changed Person responsible in Cost centre hierarchy. Now I have two interval with different person responsible 1st one is from 01.01.07 to 31.12.2008 and 2nd one is from 01.01.2009 to 31.12.9999. When I go to cost centre report and look for the cost centre fo this cost centre system is showing two lines one with 1st Person responsible and second with 2nd Person responsible. I don't know how to show only latest one on the selection screen in cost centre reporting, any thoughts on this one?
    Many thanks

    Hi
    I wanted to keep history as well as showing only latest line for cost centre on selection screen but unfortunately it's not possible.
    The only way we can do this is change the name of person responsible from 01.01.2008 and system will show only one line. In this situation we will loose the history of the pervious person responsible for that cost centre but that's the way it works OR if you want history then we have to live with more than one line.
    Many thanks

Maybe you are looking for

  • Crawler - Refreshing Previously Imported Documents

    I checked the box in red below and it updated the MetaData for a pdf that the customer said was not updating. I then re-ran teh crawl. The document updated the meta data BUT IT ALSOso marked all the documents as updatedLWill this checkbox always caus

  • Dynamically defining a cursor statement

    I was hoping to find help with coding a dynamically defined cursor statement, as some of the tables in the 'FROM' clause of the cursor definition are not known until runtime. Thanks in advance for your help! Cheers, Vladimir

  • Why is printing from Acro Reader X so slow?

    I have Windows 7, an HP laser printer, and Acrobat Reader X. It seems to me when I've printed previously the pages alway came out at about 2 pages per second; right now I have a 117 page PDF that's printing only one page every 30 seconds - so slow th

  • Reg subtotal text in ALV

    Hi, How to change the subtotal text in ALV grid display using classes.

  • Un iPhone va t'il copier ses fichiers sur un iTunes vide ou bien iTunes va vider l'iPhone ?

    Bonsoir, j'ai un iPhone 4 avec le dernière mise a jour installée (4.3), j'ai iTunes sur un pc fixe, avec lequel mon téléphone est complément synchronisé. J'aimerais télécharger iTunes sur mon pc portable pour pouvoir gérer mes fichiers multimédia pen