Finding the columns width

Hi,
Currently I have a BO report. The report has a section, where in it has some columns.
Currently, I am able to retrieve the columns names and the column types of the report.
But, now I am trying to retrieve the width of the columns of the section, but am not able to do so.
However, while creating a new report I am able to set the column width.
Can, you please guide me how can I find the width of columns in a report.
Regards,
Shruti

Hi Shruti,
Are you referring to something like the following?
SimpleTable boSimpleTable = (SimpleTable) reportBlock.getRepresentation();
CellMatrix boCellMatrix = boSimpleTable.getHeader(null);
TableCell boTableCell = null;
for (int i=0; i<boCellMatrix.getColumnCount(); i++) {
     boTableCell = boCellMatrix.getCell(0, i);
     boTableCell.setHeight(15.0);
     boTableCell.setWidth(25.0);
Hope this helps.
Regards,
Dan

Similar Messages

  • How to change the column width in Smartforms..?

    Hi All..
    I need to change the column width in a smartform.
    The requirement has been mentioned as follows...
    Adjust the column width of the following columns:
    MATERIAL: 14 char
    DESCRIPTION: 20 char
    How to perform this..??
    Where can i find the column width of various columns of a smartform..???
    Please Help me...
    Regards
    Pavan

    In the SMART Forms, you would have created a Table object and specified the line width and divided that into no. of columns that you want, you have to mandatorily specify the width of each column so that total of column width will be equal to that of the line width.
    When you double click on the Table object, you can TABLE tab on the right side. If you can't see the line / columns details, click on the DETAILS button.
    Regards,
    Ravi
    Note - Please mark all the helpful answers

  • How to extract the column width in ALv report if its executed in background

    I am executing an ALV report in background , in front end i am getting data properly, in back end for some columns some of the digits are missing.For example if PO no is of 10 digits it will display only 8 becos column size is like that , how to extract coulmns in back ground.
    I have executed in background and checked the spool and  for some of the columns width is not sufficient to display comeplete data so please suggest how to extract the columns sizes if executed inj background for an ALV

    Hi Deepthi,
    you can try with the above mentioned suggestions ,if its worked its fine ,
    If not use Docking container instead of custom container, For ALV in back ground jobs, its suggest to use docking container instead of custom container , below you can find the declaration for docking container and code to use docking and custom container in your program for fore and back ground.
    or you can use docking container alone for both operations.
    Data : G_DOCK1 TYPE REF TO CL_GUI_DOCKING_CONTAINER,
    IF CCON IS INITIAL. (ccon is container name )
    *Check whether the program is run in batch or foreground
        IF CL_GUI_ALV_GRID=>OFFLINE( ) IS INITIAL.
    *Run in foreground
          CREATE OBJECT CCON
            EXPORTING
              CONTAINER_NAME = 'CON1'.
        CREATE OBJECT GRID1
            EXPORTING
              I_PARENT = parent_1.
    ELSE.
    *Run in background
          CREATE OBJECT GRID1
            EXPORTING
              I_PARENT = G_DOCK1.
        ENDIF.
      ENDIF.
    B&R,
    Saravana.S

  • Permanently Widen Finder View Column Width

    I am familiar with the method to get a full/wider view of a Finder column when I'm there, but the column width goes back to its original width when the Finder is closed. Any way that anyone knows to set and maintain a wide column view after closing Finder?

    It should remain at the size where you left it.
    Maybe some fuzz in Finder prefs.
    Go to your Finder "Go" menu hold the option key and choose Library. Then go to Preferences folder and trash com.apple.finder.plist
    Then, restart, or log out and in again.
    (You might have to reset a few finder prefs the way you like them.)

  • Maintaining the column widths in Columns View.

    Is there any way in OS X (Leopard) to have Finder windows remember the column widths when in Columns View. Can dimensions be associated with directories?
    I think I must have stretched the 2nd and 3rd columns out from their default to read long filenames 100x a day since I started using Tiger / Panther. There are commercial Finder enhancing apps I've never installed one but if there is one that can do this I am interested.
    Thanks In Advance

    This worked well for me:
    1) Add a Content Editor Web Part
    2) Click Source Editor
    3) Enter the following code:
    [css] <style> .ms-viewheadertr { display: none;} </style> [/css]
    4) Select Save
    5) Go to Layout and Select 'Hidden' 

  • Expanding the column width

    Hi -
    In SharePoint 2013 the content/columns of document libraries seem like they are crammed too close together.  In SP2010 they seemed to have more spacing between the columns and filled the whole screen left to right.    I believe to resolve
    this we would need to modify the AllItems.aspx and increase the column width.  That would probably have to be on a site-by-site basis and we'd want to have it done to the entire site collection.   Is this possible?
    thanks

    Hi,
    According to your post, my understanding is that you want to expand the column width.
    You can add the Javascript code to the master page. However, you need to find the common class.
    Here are some similar articles for your reference:
    http://sharepointduffbert.com/2013/07/27/need-to-modify-the-width-of-a-sharepoint-column-in-a-view-jquery/
    http://www.emmielewis.com/changesplistcolumnwidth/
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • In Sales Order changing the column width to see all item desciption?

    When in the sales order screen .
    Expand the column width of say the item description.
    How do I save the column width for all the sales documents  for the field item description in sales order ?

    Hi,
    The column width of the Document will be defaulted to the same size at which the user has saved the last document.
    So, if a user has saved the Sales Order with a big column width for the 'Item Description' then after saving and re-entering into the Sales Order, the user can see the same column width for all the Sales Order's.
    I hope the above helps.
    Cheers~
    Jitin Chawla

  • Can't figure out how to maximize the space on the page by increasing the column width

    Trouble with pages app:
    can't figure out how to maximize the space on the page by increasing the column width
    I have 3 columns and they have spaces btw them that I cannot close the gap on.

    Whatever the version, you can click on the gutter figure and edit it.
    Click once on the column and a second time on the Gutter measurement.
    Peter

  • How to optimize the column width in Table Control

    Hi all,
          When I am displaying fields in Table Control, the columns are displayed in full length, and I am unable to see all the fields at once.
    So as in grid , where we optimize the column width using layout, do we had any property for TC to do so.
    thanks for your help.
    Points would be awarded .
    Regards,
    Anil .

    Hi,
    In Se51, you can do this one, ust open your table control and resize the TC, there is no direct option to do this for entire TC, you need to do this field by field, and arrage the TC to adjust in a Single screen. In the field parameters, you have the field lenghts, there you can minimize the length of a field
    Regards
    Sudheer

  • Change the column width on the fly

    Dear all,
    I have a problem, i have a matrix report, the row is "the project name" and the column is "the items" using within each project, and the problem is the items are variable from time to time the report run for each project, so its exceeds the paper width.
    And the question is, is there any way to change the width of the column on the fly, i mean dynamiclly change the column width each time the report is called to make all items fit the paper width.
    Thank u

    i don't think that we can change the layout of the column in reports
    The simple solution for that problem is that u have to
    fix the horizontal and vertical layout of the text item
    better is to post this problem at reports forum
    Najeeb

  • How do you change the column widths in a master-detail input form?

    I have changed several columns to af:inputText so that the field contents can be modified, but this defaults the column width to a huge size, way past the size of the actual data field itself. Modifying the width attribute is ignored and dragging the column dividers is also ignored.
    How do I reduce the widths of these columns?
    Thanks

    Hi,
    maybe this blog entry "Referencing Maximum Length of an Attribute in an EL Expression" by Steve Muench helps
    http://radio.weblogs.com/0118231/2007/06/04.html#a839
    Frank

  • I want to adjust the column width of "From", "Subject" and "Date". in the AT&T email within Firefox browser

    My computer runs under Windows Vista Home Premium, and Firefox browser 3.6.13. Within the Firefox browser, it shows an AT&T email window (www.sbc.yahoo.com). There are several columns such as subject, date, etc. I was able to adjust such column width before. Now I cannot do it. (Also I can adjust column width if I run in the Internet Explorer. I have another computer running Window 7 professional, same set up with Fire Fox and AT&T email, I am able to adjust the column width so I can show the full subject line.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    You can also try to set the pref layout.frames.force_resizability to true on the about:config page.
    See also http://kb.mozillazine.org/about%3Aconfig

  • How can I reduce the column width in a spreadsheet according to the text?

    Hi,
    I added a spreadsheet to a pages document and now I want to reduce the column width so that it fits the content (text).
    I tried it the other way around: I added very small columns and then chose the adjust-automatically-option in informations. This worked, the columns became broader and matched the text.
    Now I got a lot of spreadsheets which columns are too broad. When choosing adjust-automatically just nothing happens. What can I do?
    Sorry if this sounds a little weird, I'm using English seldom at time and don't know which words to choose to describe my problem properly. Hope someone can help me nevertheless?
    Sarah

    Hi Sarah,
    In Pages, the table Autosize feature pertains to Row Height, not Column Width. Numbers has more Table sizing options than Pages does, so you might want to consider looking into doing your work in Numbers.
    In Pages, there are slight differences in how tables behave depending on whether they are Inline or Floating. You might want to experiment with that. Long tables, however, must be Inline.
    Jerry

  • How to set the column width in the PDF exports of interactive reports ?

    Hello,
    I have a huge problem with the PDF export for the Interactive reports. I'm using APEX 3.2.
    I have to produce a PDF report in landscape format that show 21 columns. My problem is that the columns have a ridiculous short width and that the text inside the columns do not wrap in the columns. So I get things like that :
    Date Name
    2011 Leina
    I should see 2011-08-01 and the name Leinad Jan
    I tried several things to format the columns, but none of the them has any effect on the PDF itself.
    1) I used HTML code in the report query. It works well with the interactive report, but display the HTML tags in the PDF.
    2) I used css to set the width of my columns. It works in the interactive report, but not in the PDF, the column width do not change.
    It's like the report do not notice that my page format is Legal 14 x 8.5 (Landscape) and still believe it's 8.5 x 11 (which is "portrait")
    Do you have any idea so set the columkn widths in the reports ?
    Thank you !
    Edited by: leinadjan on Aug 1, 2011 11:15 AM

    To "remember" the column widths, add a mouse listener to the table header. Upon mouseReleased(), get the column widths and save them to your file. When the application starts next time, get the stored widths and set them using:
    table.getColumn("XXX").setPreferredWidth(...);
    By default, your columns are adjustable, but you can use:
    table.getTableHeader().setResizingAllowed(true);

  • How to find the column name and table name with a value

    Hi All
    How to find the column name and table name with "Value".
    For Example i have value named "Srikkanth" This value will be stored in one table and in one column i we dont know the table how to find the table name and column name
    Any help is highly appricatable
    Thanks & Regards
    Srikkanth.M

    2 solutions by Michaels (the latter is 11g upwards only)...
    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
    SQL> select table_name,
           column_name,
           :search_string search_string,
           result
      from cols,
           xmltable(('ora:view("'||table_name||'")/ROW/'||column_name||'[ora:contains(text(),"%'|| :search_string || '%") > 0]')
           columns result varchar2(10) path '.'
    where table_name in ('EMP', 'DEPT')
    TABLE_NAME           COLUMN_NAME          SEARCH_STRING        RESULT   
    DEPT                 DNAME                ES                   RESEARCH 
    DEPT                 DNAME                ES                   SALES    
    EMP                  ENAME                ES                   JONES    
    EMP                  ENAME                ES                   JAMES    
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   PRESIDENT
    EMP                  JOB                  ES                   SALESMAN 
    9 rows selected.

Maybe you are looking for

  • Excessively high memory usage by Tomcat in NT

    We are facing the problem of excessive memory usage by our servlets (that call JNI functions). The memory usage seems to touch 50+ MB in 2000 Server but it drops down to 30 MB soon. But, this does not happen in NT. The memory keeps on increasing and

  • Can I delete a corrupt message diretly from the In Box in the Mail folder

    I received an e-mail that has an .eml attachment. Mail would not download the entire message with the attachment - although it continued trying to download once it started to load in my in box. I deleted this e-mail message from the server. Now Mail

  • Very urgent help needed in activating a function module

    Hello experts. I had a standard report and i copied into an z report. i need to change some field output , and that field is there in a standard function module.so i copied that fun module  into z fun module and stored in a new fun group. Now it is s

  • How do I save all my photos in my iPhone to iCloud

    I have a iPhone4 and also have an ipad I wanted to save all photos around some 700 pic's in my iPhone to iPad or to iCloud... Please help me guys....

  • How to create forms for iPad

    I have created a form in MS Word that contains drop down menus, text boxes, etc. What is the best way to get these on the iPad while maintaining the functionality of the form?