Show scrollpane only when table has x rows

Is there any way to not make use of scrollpane when a table currently has less that 5 rows ?
I have my table embedded in a JScrollPane, but I want to show the scrollpane only if my table has atleast
'x' number of rows.
Thanks,

Something like...
DefaultTableModel tm = new DefaultTableModel(data, index);
int size = tm.getRowCount();
JTable t = new JTable(tm);
JPanel p = new JPanel();
if(size > 5)
  JScrollPane jsp = new JScrollPane(t);
  p.add(jsp);
else
  p.add(t);
// add p to JFrame

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/

  • How to show the two advance tables In a ROW

    Hi ALL,
    There is any Option to show the two advance tables In a ROW
    Thanks&Regards
    vinu

    I have responded to your other post. Kindly respond to that and close this one.
    Regards
    Sumit

  • Need to hide row when table has 1 entry in adobe

    Dear Experts,
    I have made select statement in Initialization and in context i have called Table EKPO and under that EKET based on EBELP where clause. Then I have called Sub form for both Tables and made as EKPO(Role Body Row) EKET(Role Table for subform1, Role Body row for subform2)
    Eg: Table EKPO
                  Table EKET
    Need to hide if EKET has one row for that, I want to know number of rows in table, if row 1 then need to hide otherwise need to show in adobe.
    Sharrad Dixit
    dixitasharad at gmail

    Hi A,
    I hope as per your previous post, you might have already set the presentation variable. You can write the column formula now as:
    case when @{variables.country} = 'All Choices' then sum(revenue) by year else <your previous case to hide the USA column} end.
    Hope this helps.
    Thank you,
    Dhar

  • How to insert data into a table only when data has changed its value (when compared to the previous inserted value)

    I wish to insert data into a table only when the value of the inserted data has changed. Thus, in a time series, if the value of the data at time, t-1, is 206 then if the data to be inserted at time t is 206, then it is skipped (not entered).
    If the value of the data at time t+1 is 206, it is skipped also; until the value changes, so if the value at t+1 was 205, then that would be inserted, and if at time t+2 the data is 206, it would be inserted too.
    What is the best way to do it without increasing overheads?

    This view works:
    SELECT
    i.IDNO,i.[Date],i.[Level]
    FROM
    mytable i
    INNER
    JOIN mytable
    d
    ON
    d.IDNO
    = i.IDNO-1
    WHERE
    i.[Level]
    <> d.[Level]
    on this mytable below.  A trigger could be quite useful here although I am cautious using them. However I wish to avoid the overhead by not having a temp table (which could be sizable).  mytable below
    should give 3 lines. The IDNO is an identity column.
    IDNO
    Item
    Date
    Level
    1
    X24
    12/23/13 10:41
    22996
    2
    X24
    12/23/13 10:41
    22996
    3
    X24
    12/23/13 9:21
    23256
    4
    X24
    12/23/13 9:21
    23256
    5
    X24
    12/23/13 9:22
    23256
    6
    X24
    12/23/13 9:22
    23256
    7
    X24
    12/23/13 9:22
    22916

  • 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

  • Generate a surregate key only when insert a new row - (SCD1)

    Hi all,
    I&acute;m starting with OWB (10gR2) and I'm creating a simple template dimension with SDC type 1 with one source, one target and a sequence do generate the surrogate key.
    The main properties configurations are:
    - Target property: Loading type = INSERT/UPDATE.
    - Only match the natural key between source and target.
    - Only use the sequence.nextval when inserting a new row.
    - Mapping: Set based.
    The generated code was something like this:
    {color:#000080}+MERGE INTO DIM_DEFAULT+{color}
    {color:#000080}+USING SCR_TABLE+{color}
    {color:#000080}+ON(SCR_TABLE.NATURALKEY=DIM_DEFAULT.NATURALKEY)+{color}
    {color:#000080}+WHEN MATCHED THEN+{color}
    {color:#000080}+UPDATE SET NAME=SCR_TABLE.NAME+{color}
    {color:#000080}+WHEN NOT MATCHED THEN+{color}
    {color:#000080}+INSERT(SK_DEFAULT,NATURALKEY,NAME)+ {color}
    {color:#000080}+VALUES(SQ_DIM_DEFAULT.NEXTVAL,SCR_TABLE.NATURALKEY,SCR_TABLE.NAME)+{color}
    Ok, it works fine! But the merge statement generates a new SK for each merged row even if the action is update! What I want is a new SK only when the process inserts a new row. Hard-coding, I possible solve this problem creating a function to return the nextval from a sequence and put it on the insert clause like this:
    {color:#000080}+MERGE INTO DIM_DEFAULT+{color}
    {color:#000080}+USING SCR_TABLE+{color}
    {color:#000080}+ON(SCR_TABLE.NATURALKEY=DIM_DEFAULT.NATURALKEY)+{color}
    {color:#000080}+WHEN MATCHED THEN+{color}
    {color:#000080}+UPDATE SET NAME=SCR_TABLE.NAME+{color}
    {color:#000080}+WHEN NOT MATCHED THEN+{color}
    {color:#000080}+INSERT(SK_DEFAULT,NATURALKEY,NAME)+ {color}
    {color:#000080}+VALUES(FN_SQC_NEXTVAL('SQ_DIM_DEFAULT'),SCR_TABLE.NATURALKEY,SCR_TABLE.NAME)+{color}
    Hard-coded it works fine as I need and that&acute;s the point that I want to know:
    It&acute;s possible perform this solution using OWB?
    I tried to use Constants but this solution doesn&acute;t work then I tried an expression calling my sequence.nextval function but the result was:
    {color:#000080}+MERGE INTO DIM_DEFAULT+{color}
    {color:#000080}+USING (SELECT FN_SQC_NEXTVAL('SQ_DIM_DEFAULT') AS SK_DEFAULT_0,NATURALKEY,NAME FROM SCR_TABLE) AS SCR_TABLE+{color}
    {color:#000080}+ON(SCR_TABLE.NATURALKEY=DIM_DEFAULT.NATURALKEY)+{color}
    {color:#000080}+WHEN MATCHED THEN+{color}
    {color:#000080}+UPDATE SET NAME=SCR_TABLE.NAME+{color}
    {color:#000080}+WHEN NOT MATCHED THEN+{color}
    {color:#000080}+INSERT(SK_DEFAULT,NATURALKEY,NAME)+ {color}
    {color:#000080}+VALUES(SK_DEFAULT_0,SCR_TABLE.NATURALKEY,SCR_TABLE.NAME)+{color}
    It&acute;s the same of merge the row using the SEQUENCE.NEXTVAL direct.
    Does anyone have a workaround to solve this situation?

    Hi,
    Perhaps this comes a bit late but...
    Have you tried to change attribute properties in the mapping? For simple example you have a source table in sa-stage which have to fields: code (varchar2(2), natural key) and description (varchar2(50)). You want to map those fields to target table where you have 3 fields: id (NUMBER(10), surrogate id, nextval from sequence when new row inserted), code (as from the source, natural key, the field to determine if the coming row is new or one to be merged) and description as in source table. Fields and datatypes are just for an example.
    When you have source and target tables in your mapping (and fields mapped), drag the sequence operator to the mapping and map the nextval to target table's surrogate id field.
    - Change target table operator properties:
    * loading type = UPDATE/INSERT
    * Match by constraint = no constraint
    - Change target table attribute properties for:
    * surrogate id field: Load column when updating row = no; match column when updating row = no; load column when inserting row = yes
    * natural key field(s): Load column when updating row = no; match column when updating row = yes; load column when inserting row = yes
    * all the regular fields: Load column when updating row = yes; match column when updating row = no; load column when inserting row = yes
    - change the deleting rules as you want them to be
    - Validate your mapping. If the green light is shown, the settings in field properties are suitable for merge.
    Hope this is what you wanted to get. I think this kind of solution works fine. Trigger in the table that holds and where one inserts millions of rows sounds scary...
    Regards,
    jk
    Added text: sorry about false alarm. I think that was what you did. The solution above steals the nextvals from sequence. Perhaps no-native-english-reader should be more careful when reading questions ;-)
    Edited by: jkoski on 5.11.2008 1:30

  • Is there a setting where a text frame (border, color, etc) will be visible only when it has content?

    I use data merge a decent amount, often when I am quick prototyping decks of cards for games. (Talk about an awesome tool for quickly cranking out a hundred different cards). I was wondering if it possible to have a text frame style (say a 1pt solid black border, or a yellow background etc.) appear only when there is text inside that frame.
    For example the cards need to have different combinations of text on each one. The lower part of this particular card has 30 data field placeholders (15 text frames and 15 graphic frames) that are linked back to my .txt file with data merge. (In the first image below, all 30 data fields have data in them, the other images only have some data applied) The text frames hold the two letter code, the graphics frame is basically a .png of either a rectangle or oval which is on a layer behind the text frame.
    It would be awesome if a text frame border was only present when there was content in the text frame. That way I could eliminate all of the graphics frames in this particular case. Is this possible? I knid of don't want to ask this, but is it possible through scripting with some sort of conditional statement? (Iknow very little about scripting except that it exists to do certain tasks on a as needed basis)
    I'm using InDesign CC on Mac OSX 10.7.5
    Thanks!
    go-dog-go

    There's no one solution. Depends on the context.
    When we know what we have and where we want to go, everything becomes simple ...
    In your case, the solution I prefer is that with grep styles.
    Why? because it is truly magical.
    The beginning...
    All you finally have to do in the data file is inserting columns of calculation. We can talk later.
    This solution with grep style is very simple to define. In ID and Excel (for instance). Because I know how to do. I understand It could be not so simple for another person.

  • Idoc to be processed only when vl32n has been posted

    Hi All,
    I want the IDOC to be processed only when VL32N is been posted
    Regards
    Amey Kulkarni

    a

  • HOW TO SHOW PLUGS ONLY WHEN TRACK IS SELECTED??

    Hello, I has an m audio axiom pro, and it had a cool feature where when you selected a track in logic the plugs you were using for that track would pop up on the screen, when you went to the next track only that tracks plugs would show....
    Is there a way/key command to set this up?
    Thanks!!

    Hello, I has an m audio axiom pro, and it had a cool feature where when you selected a track in logic the plugs you were using for that track would pop up on the screen, when you went to the next track only that tracks plugs would show....
    Is there a way/key command to set this up?
    Thanks!!

  • Application alias shows up only when logged in as SYS

    Oracle 11gR2
    APEX 4.2.3
    RHEL 6.3
    select *
    from   apex_applications
    where  workspace = 'MY_WORKSPACE';
    -- 0 rows
    When logged into APEX as a user with a workspace assigned (MY_WORKSPACE) that contains an application (and an application alias), no rows are returned when given the application alias in the query above (see the above SQL).
    But log in as SYS and the application alias is there -- i.e. a row is returned.
    What could be causing this?

    Many dictionary views limit rows returned by level of access.
    For instance, schema owners will only see applications related to the workspace their associated with.
    Some views won't let you see any rows unless you're querying via APEX (not SQL Developer), eg: apex_application_files

  • Show ItemRenderer only when editing (onclick)

    I have a datagrid, that after the user has logged in becomes editable.
    I would like that when the user clicks into a given field, say a date or number field, an itemRenderer that corresponds to the type of date appear.
    Example: if i click into the date field, i get a datechooser, or a numericStepper when i click into a number based field.
    Then after I click out of that field, it just shows the value, no longer the itemRenderer.
    FYI, I am using Pure MVC, so this logic is in a mediator '.as' class.
    Please help.

    I am getting the itemEditor to work mostly now.
    problem i am having is, after i switch the datagrid to become editable and then click into a given field (ie: itemEditor as a numeric stepper), if i just click in and out of the field, but do not make any changes to it, the data in the field either becomes "NaN" (in the case of a numeric stepper editor) or just blank (in the case of a combo box editor)
    Here is my code:
    DataGrid.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    PureMVC AS3 Demo - Flex Application Skeleton
    Copyright (c) 2007 Daniele Ugoletti <[email protected]>
    Your reuse is governed by the Creative Commons Attribution 3.0 License
    -->
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns="*"
    width="100%" height="100%">
    <mx:Script>
      <![CDATA[
      import com.*;
      import flash.events.Event;
      import mx.controls.DataGrid;
      import mx.controls.dataGridClasses.DataGridColumn;
      import mx.controls.Alert;
      import flash.net.URLRequest;
      import mx.controls.NumericStepper;
      import mx.controls.DateChooser;
      import mx.controls.CheckBox;
      import mx.controls.ComboBox;
      public static const CREATION_COMPLETE: String = "myCreationComplete";
      public static const LOAD_SETTINGS: String = "load settings";
      private function dateFormat(item:Object, column:DataGridColumn):String
      return df.format(item.date);
      public function onLinkBtnClick(request:URLRequest):void
      //trace("urlRequest: "+request)
      try {
        navigateToURL(request);
      }catch (e:Error) {
        // UNFORTUNATELY, THE ERROR IS THRU INTERNET EXPLORER AND IS NOT CAUGHT HERE
        trace("error: " + e)
        Alert.show("There was an error in opening the requested file!")
      }]]>
    </mx:Script>
    <mx:DateFormatter id="df" formatString="MM/DD/YY"/>
    <mx:VBox width="100%" height="100%" verticalGap="0" >
      <mx:HBox id="cbHBox" width="100%" height="0" fontWeight="bold" horizontalAlign="right" visible="false" >
      <mx:CheckBox id="selectAllCB" label="Select All / None" labelPlacement="left" fontWeight="bold" color="0xFFFFFF" />
      <mx:Spacer width="{colSelected.width/2 + 2}" />
      </mx:HBox>
      <mx:DataGrid id="settingsDataGrid"
      height="100%" width="100%"
      editable="false"
      horizontalScrollPolicy="off">
      <mx:columns>
        <mx:DataGridColumn width="24" headerText="Number" dataField="number" resizable="false"/>
        <mx:DataGridColumn width="120" headerText="Title" dataField="title" />
        <mx:DataGridColumn width="20" headerText="Date" dataField="date" labelFunction="dateFormat" editorDataField="dfDate" itemEditor="com.view.itemRenderers.DGDateFieldEditor"  resizable="false" />
        <mx:DataGridColumn width="12" headerText="Book" dataField="book" editorDataField="nsBook" itemEditor="com.view.itemRenderers.DGNumericStepperEditor" resizable="false" />
        <mx:DataGridColumn id="colType" width="14" headerText="Type" dataField="type" editorDataField="cbType" itemEditor="com.view.itemRenderers.DGTypeComboBoxEditor" resizable="false" />
        <mx:DataGridColumn width="10" textAlign="center" headerText="Link" sortable="false" draggable="false" resizable="false"
        dataField="link" itemRenderer="com.view.itemRenderers.DGLinkButtonEditor"
        rendererIsEditor="true" editable="false"/>
        <!--<mx:DataGridColumn id="colSelected" width="46" headerText="Select" visible="false" editable="false" itemRenderer="{CheckBoxRenderer}"  editorDataField="selected" />-->
        <mx:DataGridColumn id="colSelected" width="46" textAlign="center" visible="false" sortable="false" draggable="false" resizable="false"
        headerText="Select" dataField="sel" itemRenderer="com.view.itemRenderers.DGCheckBoxEditor"
        rendererIsEditor="true" editorDataField="cbSelected"/>
      </mx:columns>
      </mx:DataGrid>
    </mx:VBox>
    </mx:Canvas>
    DGNumericStepperEditor.mxml
     <?xml version="1.0"?>
    <!-- itemRenderers\dataGrid\myComponents\EditorDGCheckBox.mxml -->
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
    implements="mx.controls.listClasses.IDropInListItemRenderer,mx.managers.IFocusManagerComp onent"
    horizontalAlign="center" verticalAlign="middle">
        <mx:Script>
            <![CDATA[
             import mx.controls.listClasses.ListData;
       import mx.controls.dataGridClasses.DataGridListData;
       import mx.controls.listClasses.BaseListData;
       import mx.controls.dataGridClasses.DataGridItemRenderer
       import mx.events.FlexEvent;
       import mx.controls.Alert
       private var _listData:DataGridListData;         
                // Define a property for returning the new value to the cell.
                public var nsBook:Number;           
                // Implement the drawFocus() method for the VBox.
                override public function drawFocus(draw:Boolean):void {
        bookNS.setFocus();
       [Bindable]
       override public function set data(value:Object):void{
        super.data = value;
        bookNS.value = data[_listData.dataField];
       override public function get data():Object {
        return super.data;
          public function get listData():BaseListData
        return _listData;
       public function set listData(value:BaseListData):void
        _listData = DataGridListData(value);
            ]]>
        </mx:Script>
    <mx:NumericStepper id="bookNS" horizontalCenter="center" maximum="18" width="100%"
            click="nsBook = bookNS.value" />
    </mx:VBox>
    PLEASE HELP, getting these itemRenderers and itemEditors to work properly is DRIVING ME CRAZY!!!

  • GoldenGate: Initialization when Table has Clob

    I have been testing Goldengate and I have performed schema initialization successfully when
    all tables have scalar data types.
    I have a problem when I include a table with a clob column in this test.
    My clob table is simply:
    desc johns_clob
    Name Null? Type
    ID NOT NULL NUMBER
    MYCLOB CLOB
    I've loaded the clob column with a character string that is 30000 characters long.
    When I try to start the initial load, I get the following information in my ggserr.log file and the
    process abends:
    2010-11-10 16:47:40 INFO OGG-00963 Oracle GoldenGate Manager for Oracle, mgr.prm: Command received from GGSCI on host 10.143.204.77 (START EXTRACT INITLOAD ).
    2010-11-10 16:47:40 INFO OGG-00975 Oracle GoldenGate Manager for Oracle, mgr.prm: EXTRACT INITLOAD starting.
    2010-11-10 16:47:40 INFO OGG-01017 Oracle GoldenGate Capture for Oracle, initload.prm: Wildcard resolution set to IMMEDIATE because SOURCEISTABLE is used.
    2010-11-10 16:47:40 INFO OGG-00992 Oracle GoldenGate Capture for Oracle, initload.prm: EXTRACT INITLOAD starting.
    2010-11-10 16:47:41 ERROR OGG-01192 Oracle GoldenGate Capture for Oracle, initload.prm: Trying to use RMTTASK on data types which may be written as LOB chunks (Table: 'JOHNB.JOHNS_CLOB').
    2010-11-10 16:47:41 ERROR OGG-01668 Oracle GoldenGate Capture for Oracle, initload.prm: PROCESS ABENDING.
    Trying to use RMTTASK on data types which may be written as LOB chunks
    I cannot find any reference to the message "Trying to use RMTTASK on data types which may be written as LOB chunks".
    Any help is appreciated.
    Thanks,
    John

    Hi,
    Did you check this Metalink Doc?
    Does GoldenGate Extract Support Oracle Spatial? [ID 971719.1]
    Modified 07-JAN-2010 Type HOWTO Status PUBLISHED
    In this Document
    Solution
    Applies to:
    Oracle GoldenGate - Version: 4.0.0 - Release: 4.0.0
    Information in this document applies to any platform.
    Solution
    Issue:
    Does GoldenGate Extract support Oracle Spatial?
    Solution Overview:
    Oracle Spatial is supported with limitations.
    Solution Details:
    Spatial is supported:
    1.Like-to-like only.
    ASSUMETARGETDEFS is required in the Replicat parameter file.
    SOURCEDEFS is not supported currently.
    2. XMLType embedded in Spatial (and other UDT and system-DT) is not supported currently. (OS-7065)
    3. The Spatial types that includes LOB are not supported currently. (OS-7134)
    --------------------------------- example --------------------------------
    NOTE: The 'SDO' indicates a spatial type object.
    --------------------------------- example --------------------------------
    --- create source table----
    CREATE TABLE cities (
    city VARCHAR2 (30) primary key,
    state VARCHAR2 (30),
    geom mdsys.SDO_GEOMETRY
    --- create target table----
    CREATE TABLE cities_t (
    city VARCHAR2 (30) primary key,
    state VARCHAR2 (30),
    geom mdsys.SDO_GEOMETRY
    INSERT into cities values ('SF','CA',
    mdsys.sdo_geometry (2008, null, null,
    mdsys.sdo_elem_info_array (1,1003,3),
    mdsys.sdo_ordinate_array (-109,37,-102,40)
    commit;
    SQL >select * from cities; <======================= source table
    CITY STATE
    GEOM(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
    SF CA
    SDO_GEOMETRY(2008, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 3), SDO_ORDINATE_ARR
    AY(-109, 37, -102, 40))
    SQL >select * from cities_t; <======================target table
    CITY STATE
    GEOM(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
    SF CA
    SDO_GEOMETRY(2008, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 3), SDO_ORDINATE_ARR
    AY(-109, 37, -102, 40))
    Thanks.

  • 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

  • Is there a way of syncing local contacts only when outlook has an exchange account in the profile

    I have Outlook 2010 set up with both a Pop3 account and a Microsoft Exchange account in the same profile. I have local contacts and Calendar entries in Outlook. The pop account is set up as the default account. When I sync Calendars and Contacts, then the exchange entries get transferred to the iPhone, even though the iPhone has the exchange account set up on it (and therefore I get the contacts and appointments over the air) but does not sync the local contacts and appointments.
    If I split the accounts into two profiles and set the profile with the pop account as the default profile then I get the local contacts, but having to swap between profiles is a pain.
    Can anybody help?

    You don't need to access your e-mail account, just get into your Apple account and change the e-mail address. If you can't access your Apple account, then you have a bigger issue to contend with.

Maybe you are looking for

  • Problem with calendat sync

    Itunes syncs the ical from my desktop to my iphone 4s, but not from my phone to my computer.  Thus, my desktop does not have events that I have added to the calendar on my phone, but my phone does get the events that I add to my desktop calendar.  An

  • Paper Tray designation from within the report

    We are running XMLP 5.6.3 from within Oracle Apps. Is there a way to designate a paper tray from withing the report? We have the requirement for AP Check to print first page to Tray #1 and then all the following pages to Tray #2. Since we have differ

  • Db restore non archive mode lost redo log file..restore from controlfile tr

    i have a db 11g I had taken non archive backup but failed to take redo log files backup... so while i restored the db ... after formatting the machine ..the oracle instance wont start. I create a controlfile trace but when i run it i get errors. sinc

  • Has anyone printed to a HP Laserjet 1160 or Officejet 725?

    I cannot get my Macbook to print (wirelessly) to either of these printers that are on my network. I see them there, but both just print out garble, and lots of pages of it. I was at the Apple store on my ProCare membership, and the genius installed a

  • Getting the computer to recognize the new HD

    I just installed a second hard drive in my computer, but when I booted up my machine, I can't seem to find it. How can I get my computer to recognize this second one? I'm pretty sure I installed everything properly, but I'll check again if people thi