How to bring all columns in a single/first page in report painter

Hi Experts,
There are 9 columns in a report painter which includes 1 lead column.
7 columns comes in a first page including lead column and rest 2 columns goes to second page. This report is copied from another report where all columns comes in a first page only. if the original report comes in one page then why not the new report.
Please suggest how to bring all columns in a single/first page in the new report.
Please revert if I'm confused anywhere.
Thanks in advance
Arabinda

Hi Rajneesh,
Thanx for the quick reply. When I change the column width to 10 it comes in one page. But the requirement is to keep the column width to at least 12 or 14 and moreever the original report from where this report is copied having the same no of columns and the column width for original report is 14 and it comes in one page only.
Do I need to do something more to achieve this. My question is how the original reports data comes in one page where as the current report having issue with same number of columns.
Pls suggest.
Thanx,
Arabinda

Similar Messages

  • How to disable JTable Column Dragging (only single column)

    How could i disable a single column from being dragged in JTable?
    I need to fix the first column from being dragged in JTable and all other columns except the first can be dragged. how would i accomplish this task ?
    well, i know how to fix all column in jtable from being dragged using
    table.getTableHeader().setReorderingAllowed(false);But dont know how to fix only a single column. is there any method for doing this. or i have to implement any other logic?
    Please help me !
    Thanks

    The question is why do you have this requirement. I figure if the user wants to reorder the colum, let them, the table won't break.
    Maybe something like this would be acceptable:
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    public class FixedColumnScrollPane extends JScrollPane
        public FixedColumnScrollPane(JTable main, int fixedColumns)
            super( main );
            //  Use the table to create a new table sharing
            //  the DataModel and ListSelectionModel
            JTable fixed = new JTable( main.getModel() );
            fixed.setFocusable( false );
            fixed.setSelectionModel( main.getSelectionModel() );
            fixed.getTableHeader().setReorderingAllowed( false );
    //        fixed.getTableHeader().setResizingAllowed( false );
            fixed.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
            main.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
            //  Remove the fixed columns from the main table
            for (int i = 0; i < fixedColumns; i++)
                TableColumnModel columnModel = main.getColumnModel();
                columnModel.removeColumn( columnModel.getColumn( 0 ) );
            //  Remove the non-fixed columns from the fixed table
            while (fixed.getColumnCount() > fixedColumns)
                TableColumnModel columnModel = fixed.getColumnModel();
                columnModel.removeColumn( columnModel.getColumn( fixedColumns ) );
            //  Add the fixed table to the scroll pane
            fixed.setPreferredScrollableViewportSize(fixed.getPreferredSize());
            setRowHeaderView( fixed );
            setCorner(JScrollPane.UPPER_LEFT_CORNER, fixed.getTableHeader());
        public static void main(String[] args)
            //  Build your table normally
            JTable table = new JTable(10, 8);
            table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
            JScrollPane scrollPane= new FixedColumnScrollPane(table, 1 );
            JFrame frame = new JFrame("Table Fixed Column Demo");
            frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
            frame.getContentPane().add( scrollPane );
            frame.setSize(400, 300);
            frame.setVisible(true);
    }Or maybe you should be using a Row Header. A row header is like the column header of JTable. It remains fixed on the left side of the scroll pane. Search the forum for examples using "setrowheaderview".

  • How to print all columns in one page

    Hi,
    Can anybody explain me how to print all columns in one page.we have around 15 to 20 columns for 4 reports and all these reports are build on one multiprovider.we are using BW 3.5.
    Can anyone explain me  how to print ALL COLUMNS IN ONE PAGE  .currently they are getting all columns in 2 to 3 pages. They are using PORTAL to run the reports here.
    Is it possible to do by customizing Webtemplate or by macros in Workbook.Please help me
    Edited by: kotha123 on Oct 11, 2010 5:58 PM

    Hi,
    Your best bet is to use a workbook template or else Excel to pdf option...Thanks

  • How to remove all columns and cells in numbers

    how to remove all columns and cells in numbers

    Click on the Table's icon in the Sheets list. Press delete.
    Done.
    Regards,
    Barry

  • How to return all columns starting with E?

    How to return all columns starting with E in emp table?
    My attempts (below) were unsuccessful.
    SQL> SELECT E* from emp;
    SELECT E* from emp
    ERROR at line 1:
    ORA-00936: missing expression
    SQL> SELECT E.* FROM EMP;
    SELECT E.* FROM EMP
    ERROR at line 1:
    ORA-00904: "E": invalid identifier
    SQL> SELECT EMP.E* FROM EMP;
    SELECT EMP.E* FROM EMP
    ERROR at line 1:
    ORA-00936: missing expression

    You need to do it dynamically:
    SQL>  var cur refcursor
    SQL>  declare
      co varchar2(40);
    begin
      for c in (select column_name from cols where table_name = 'EMP' and column_name like 'E%') loop
        co := co || c.column_name || ',';
      end loop;
      open :cur for 'select '|| rtrim(co,',') || ' from emp';
    end;
    PL/SQL procedure successfully completed.
    SQL>  print cur
         EMPNO ENAME    
          7369 SMITH    
          7499 ALLEN    
          7521 WARD     
          7566 JONES    
          7654 MARTIN   
          7698 BLAKE    
          7782 CLARK    
          7788 SCOTT    
          7839 KING     
          7844 TURNER   
          7876 ADAMS    
          7900 JAMES    
          7902 FORD     
          7934 MILLER   
    14 rows selected.

  • How do i customize the "tile" on the first page of Wiki Server 4 on OS X Server?

    How do i customize the "tile" on the first page of Wiki Server 4 on OS X Server?
    The title says "OS X Server" and i want it to say something else... How can i do that?

    Ok... i did some digging around... and struck gold.
    The digging part is not for the "faint of heart" since the Terminal is your best friend and some coding knowledge is involved. Suffice to say my trip in Wiki Server 4 land led me through Ruby on Rails code. I was surprised to find that i'm able to read ruby code, and i don't know Ruby at all. After looking through Model Views and Controllers i figured out the solution was simpler than i anticipated.
    To modify the title on the first page you need to edit a .strings file. You need to use the download version (not the mac app store app) of TextWrangler or some other editor that allows Authenticated Saves (save files as other users). Make sure the Wiki service is off... the slider in the server app is off.
    The location of the file depends on your language locale that you use:
    /Applications/Server.app/Contents/ServerRoot/usr/share/collabd/coreclient/locale s/en.lproj
    where "en" can be either de, es, fr, it, ja, ko, nl, zh_CN, zh_TW depending on your wiki language.
    First()you need to right click on the file and "Get Info" and adjust the permissions temporarily for "Everyone" to "Read and Write".
    Open the file in TextWrangler and find the key general.os_x_server and under it you can modify the string "OS X Server" to anything you want "My own company Wiki".
    Save()the file.
    Second()you need to right click on the file and "Get Info" and adjust the permissions temporarily for "Everyone" back to just "Read".
    Move()the slider in the Server App to On again for the wiki.
    Enjoy!!!

  • How to add different columns in a single dashboard prompt?

    Hi
    I am new to this forum. I got a new requirement, my client is asking me to show multiple columns with multiple tables in a single dashboard prompt
    for Ex: Column name Table name
    1. Customer 1. Customer Details
    2. Market 2. Region
    3. Order 3. Order Status
    4. Product 4. Product Type
    He wants to show all these column names in a single prompt when user click on the particular column name it should appear on report. Is it Possible? if possible tell me how?

    See this thread...
    Re: How to add new columns by using Multiselect

  • How to bring all records

    hello,
    i have the following line in a query:
    AND (mmt.ATTRIBUTE1)= NVL(:P _Subject,mmt.ATTRIBUTE1)
    It gives me only the not null "mmt.ATTRIBUTE1" records when the parameter is not entered.
    How can i modify this in order to bring all the records even where the column mmt.ATTRIBUTE1 is NULL
    Thank you..

    Thank you. Thank you. Thank you....
    It finally worked.
    You can find the entire select statement below as per your request...
    SELECT
    DISTINCT mmt.transaction_id ,
    mmt.organization_id ,
    mmt.transaction_type_id ,
    mmt.inventory_item_id ,
    sib.segment1           ,
    sib.description ,
    mtt.transaction_type_name ,
    mmt.subinventory_code ,
    mmt.locator_id ,
    mmt.transaction_reference ,
    mmt.transaction_date ,
    sib.primary_unit_of_measure,
    ABS(mmt.primary_quantity) ,
    mmt.TRANSACTION_SET_ID
    ,mta.REFERENCE_ACCOUNT
    ,mmt.ATTRIBUTE1          "Subject"
    ,mmt.ATTRIBUTE2          "Remarks"
    FROM
    mtl_material_transactions mmt,
    mtl_system_items_b sib,
    mtl_transaction_types mtt
    ,MTL_TRANSACTION_ACCOUNTS     mta
    ,gl_code_combinations gcc
    ,fnd_currencies fc
    ,org_organization_definitions ood
    ,gl_sets_of_books gsob
    WHERE 1=1
    AND ood.set_of_books_id = gsob.set_of_books_id
    AND fc.currency_code = gsob.currency_code
    AND mmt.ORGANIZATION_ID=ood.ORGANIZATION_ID
    AND mmt.organization_id = sib.organization_id
    AND mmt.inventory_item_id = sib.inventory_item_id
    AND mmt.transaction_type_id = mtt.transaction_type_id
    AND DECODE(mmt.transaction_type_id,2,mmt.Transaction_quantity,-1) < 0
    AND mta.TRANSACTION_ID= mmt.TRANSACTION_ID
    AND mta.reference_account = gcc.code_combination_id
    AND ood.set_of_books_id = gsob.set_of_books_id
    AND fc.currency_code = gsob.currency_code
    AND mmt.ORGANIZATION_ID=ood.ORGANIZATION_ID
    AND TRUNC(mmt.transaction_date) = NVL(:date_from,TRUNC(mmt.transaction_date))
    AND TRUNC(mmt.transaction_date) = NVL(:date_to,TRUNC(mmt.transaction_date))
    AND NVL(mmt.transaction_reference,'X') = NVL(:trx_ref,NVL(mmt.transaction_reference,'X'))
    AND NVL(mmt.ATTRIBUTE1,'xyzabc123')= NVL(:P_Subject,nvl(mmt.ATTRIBUTE1,'xyzabc123'))
    AND mmt.organization_id = NVL(:orga_id,mmt.organization_id ) ;
    Thanks again...

  • How to compare all columns in a SELECT with all columns in a Cursor ?

    Hi All,
    I would like to know if something like this is possible in PL/SQL
    I have a cursor CUR1 which is a SELECT * FROM T1.
    And in my loop for every record found in CUR1 I am trying to retrieve its consecutive record in the table T2. Unfortunately T1 and T2 do not have a primary key so there are duplicates. But if I can compare each column of CUR1 with its respective column in T2, I can find the record. But the question is how ?
    So I tried something like this, but of course this is wrong, but hope this would give you an idea of what I trying
    VAR_T2 T2%ROWTYPE;
    CUR_T1 IS SELECT * FROM T1
    LOOP CUR_TI
    SELECT * INTO VAR_T2
    FROM T2 WHERE
    ‘ALL COLUMNS OF T2’ = ALL COLUMNS OF CUR1;
    So is there a easy way to accomplish this. Thank you, AJ

    As Walter says, this is simply an intersect if you are comparing all the columns.
    However, if you really must do it in a slow by slow, PL/SQL loop (no real valid reason why you would though)...
    DECLARE
      VAR_T2 T2%ROWTYPE;
      CUR_T1 IS
        SELECT * FROM T1;
    BEGIN
      FOR i IN CUR_TI
      LOOP
        SELECT * INTO VAR_T2
        FROM T2
        WHERE T2.col1 = i.col1
          AND T2.col2 = i.col2
          AND T2.col3 = i.col3
          AND T2.colN = i.colN;
      END LOOP;
    END;There is no simple mechanism for just saying "compare all the columns", you will have to specify each one individually in the WHERE clause.

  • How to select all columns in a trigger?

    I add a "before delete" trigger on a table, in order to insert the records to a backup table before they are deleted.
    but I cannot write like this : insert into t_backup select * from :old;
    The table has more than 30 columns so I don't want to select them one by one, how can I select all columns?

    Yes, it is possible by writing something like this :
    where col1 = :old.col1; But it is not directly supported. First, we need a package to remember all the OLD records:.... and please see below link for complete code in action :
    http://www.dbforums.com/oracle/925729-trigger-back-up-data.html
    What I am doing here, just copying the code and replacing "emp" with "test" (The table name on which I am going to apply this using notepad find and replace):
    SQL> select * from test_backup;
    no rows selected
    SQL> select * from test;
             A
             1
             2
             4
             5
    SQL> select * from test_backup;
    no rows selected
    SQL>
    create or replace package test_trg_pkg as
      type test_type is table of test%ROWTYPE index by binary_integer;
      test_tab test_type;
    end;
    create or replace trigger test_bds before delete on test
    begin
      test_trg_pkg.test_tab.delete;
    end;
    create or replace trigger test_adr after delete on test
    for each row
    declare
      -- To allow us to select the old values
      pragma autonomous_transaction;
    begin
      select *
      into   test_trg_pkg.test_tab(test_trg_pkg.test_tab.COUNT+1)
      from   test
      where  a = :old.a;  <----- Here you have to give your column name.
    end;
    create or replace trigger test_ads after delete on test
    begin
      for i in 1..test_trg_pkg.test_tab.COUNT loop
        insert into test_backup values test_trg_pkg.test_tab(i);
      end loop;
    end;
    SQL> delete from test where a=1;
    1 row deleted.
    SQL> select * from test_backup;
             A
             1
    SQL> delete from test where a=2;
    1 row deleted.
    SQL> select * from test_backup;
             A
             1
             2
    SQL>Regards
    Girish Sharma

  • How to check all columns existing in a table?

    Hello.
    I'm writing a function that returns average value of every numeric column existing in a database.
    I have a general idea how to do it, but I need just one more thing, look at the expamle:
    select table_name from user_tables where rownum=1
    this allows me to select names of all tables, and then I can access them 1 by 1...
    But now i have a little problem - how to access all the atributes in selected table in this way?
    Oh, and I have a problem with this rownum... For example it works for 1 (shows 1st row - name of first table) but does not for 2, or greater number :(.
    And expresions like rownum < 5 work, but rownum > 3 not :/. What may be the reason?
    Thank you for help!
    Regards.

    user13483761 wrote:
    Thanks a lot! This 3 atributes is all I need, its a way lot easier than I thought before. I simply use cursor loop and your advices.
    Almost got working code - but there is 1 error telling that select is incorrect :/. Why is that?
    create or replace
    FUNCTION SHOW_ALL
    RETURN VARCHAR2 IS
    v_ret VARCHAR(100):='Null';
    BEGIN
    DECLARE
    CURSOR cur_stats IS SELECT table_name, column_name, data_type
    FROM user_tab_columns;
    v_zdanie VARCHAR(100);
    BEGIN
    FOR v_cur IN cur_stats LOOP
    IF v_cur.data_type = 'NUMBER'
    THEN
    strike
    --> select 'In table ' || v_cur.table_name || ' average value of ' ||--
    --> v_cur.column_name || ' is:' || avg(v_cur.column_name)--
    --> into v_zdanie--
    --> from v_cur.table_name;--
    strike
    >
    dbms_output.put_line(v_zdanie);
    END IF;
    END LOOP;
    RETURN v_ret;
    END;
    END SHOW_ALL;
    select 'In table ' || v_cur.table_name || ' average value of ' ||
    v_cur.column_name || ' is:' || avg(v_cur.column_name)
    into v_zdanie
    from v_cur.table_name;
    sql_developer tells that this 'table or perspective does not exist' or sth like that, I translated from my native language.You are missing lot of things in the function, you are hard coding the return value to null?
    What you should do is as below:
    remove the part what you have written, i have strike that above. declare a variable your_select_statement VARCHAR2(1000);
    your_select_statement := 'select nvl(avg('||v_cur.column_name||'),0) from '||v_cur.table_name;
    execute immediate your_select_statement into v_zdanie;
    dbms_output.put_line('In table ' || v_cur.table_name || ' average value of ' ||v_cur.column_name || ' is:' ||v_zdanie);

  • How to search all columns of all tables in a database

    i need to search all columns of all tables in a database , i already write the code below , but i've got the error message below when run this script
    DECLARE
    cnt number;
    v_data VARCHAR2(20);
    BEGIN
    v_data :='5C4CA98EAC4C';
    FOR t1 IN (SELECT table_name, column_name FROM all_tab_cols where owner='admin' and DATA_TYPE='VARCHAR2') LOOP
    EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM ' ||t1.table_name|| ' WHERE ' ||t1.column_name || ' = :1' INTO cnt USING v_data;
    IF cnt > 0 THEN
    dbms_output.put_line( t1.table_name ||' '||t1.column_name||' '||cnt );
    END IF;
    END LOOP;
    END;
    Error report:
    ORA-00933: SQL command not properly ended
    ORA-06512: at line 7
    00933. 00000 - "SQL command not properly ended"
    *Cause:   
    *Action:
    Any help please

    SQL solutions by Michaels
    michaels>  var val varchar2(5)
    michaels>  exec :val := 'as'
    PL/SQL procedure successfully completed.
    michaels>  select distinct substr (:val, 1, 11) "Searchword",
                    substr (table_name, 1, 14) "Table",
                    substr (t.column_value.getstringval (), 1, 50) "Column/Value"
               from cols,
                    table
                       (xmlsequence
                           (dbms_xmlgen.getxmltype ('select ' || column_name
                                                    || ' from ' || table_name
                                                    || ' where upper('
                                                    || column_name
                                                    || ') like upper(''%' || :val
                                                    || '%'')'
                                                   ).extract ('ROWSET/ROW/*')
                       ) t
    --        where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
           order by "Table"or
    11g upwards
    SQL> select table_name,
           column_name,
           :search_string search_string,
           result
      from (select column_name,
                   table_name,
                   'ora:view("' || table_name || '")/ROW/' || column_name || '[ora:contains(text(),"%' || :search_string || '%") > 0]' str
              from cols
             where table_name in ('EMP', 'DEPT')),
           xmltable (str columns result varchar2(10) path '.')
    TABLE_NAME                     COLUMN_NAME                    SEARCH_STRING                    RESULT   
    DEPT                           DNAME                          es                               RESEARCH 
    EMP                            ENAME                          es                               JAMES    
    EMP                            JOB                            es                               SALESMAN 
    EMP                            JOB                            es                               SALESMAN 
    4 rows selected.

  • How to import all column heading of excel to oracle 6i forms(no rows).

    hello,
    I am new to oracle forms.
    There are so many links for importing and exporting data from forms to excel and excel to forms.
    But i want to import all column heading of excel to form (no rows). I am using forms 6i.
    please help me for the same.
    Thank You.
    Edited by: sam8682 on Apr 9, 2013 5:48 AM
    Edited by: sam8682 on Apr 9, 2013 5:50 AM

    Reading from any file is always done in a loop through the records. So, just loop only once. That will give you the first record only.
    If you have some code already you can modify it to something like:
    for i in 1..1 loop
    end loop;

  • How to make all columns visible in an interactive report by default

    Hello All,
    I have an interactive report with the first column is visible and the rest are hidden by default. Is there any way that i can make them all visible by default so the users do not have to go into actions to display them in report?
    Thank you
    Sezer

    Login as developer > run the interactive report > actions > select all columns you want
    Now got to actions > save > default > primary > apply
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ir_using.htm#CHDFDFJA

  • How to view all the issues in the same page in OTM

    HI,
    I have created 20 issues in OTM but I am able to see only 10 issues at a time.So how can I view all the issues in the same page.

    Hi,
    Login to OTM then you can see "tools"in the top most right corner click on that and select options.In the options popup window select "Tree preference" change the number of nodes.
    Regards
    Rajesh

Maybe you are looking for

  • Problem with Equipment Master update

    Hi Gurus, We have a requirement where the equipment master is getting updated when we enter serial number in Delivery creation (VL01n). Here the equipment master description (EQKT-EQKTX) needs to be changed before equipment master gets created. This

  • MobileMe data correct - want to sync to iCal

    Hi All, I'm having real problems on what seems like a fundamental requirement. I have setup MobileME and this is great, all my contacts are there and this syncs seamlessly with my iPhone - both ways. However, I have a iMac 24 and a MacBook Pro - I ca

  • Online tutorial not working?

    Does anyone else get the "?" over the Quicktime icon when they try to watch the Final Cut Tutorial with Shake? I'm dying to see this tutorial! Here's the link... http://www.apple.com/finalcutstudio/quicktours/

  • Hi all i have recently bought a second hand imac but didnt recieve the administrator passwords any suggestions?

    hi all i have recently bought a second hand imac but didnt recieve the administrator passwords any suggestions?

  • PRT screen layout change in Work Order

    Hi  Experts , when we assogn PRT to an Operation in Maintenance order then PRT description by default comes in righ hand corner of the screen . I want to shift that column to near to PRT number . Can any one please help Thanks