Controlling Column Width in Report Region

I have a report region based on a simple select statement. I'd like the table to be the full width of the region and I'd like the columns to be spaced evenly so that they are also the full width of the region. I have figured out how to set the table width via Report Attributes Substitution, but I am unable to set the column width. Any help would be greatly appreciated.
Mark

Hi take a look into this post:
Translated in English:
http://translate.google.de/translate?sl=de&tl=en&js=n&prev=_t&hl=de&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fwww.apex-at-work.com%2F2010%2F08%2Fsilbentrennung-hyphenation-in-apex-ger.html
Code must be extracted from Original post:
http://www.apex-at-work.com/2010/08/silbentrennung-hyphenation-in-apex-ger.html
This could be also interesting for your:
http://www.apex-at-work.com/2010/03/automatic-linebreak-if-word-breaks-out.html
Tobias
http://apex-at-work.com

Similar Messages

  • How to controll column width in report ?

    Dear All,
    i have created Classic Report but here Column width is too large.
    i want to controll column width in report .
    How can i do this..
    Thanks

    Hi Vedant,
    There are two possibilities in your case.
    1.width of your column heading is too large.
    include break in your column heading
    for ex .. column heading is employee department number then write it as *[Employee(br)Department(br)Number]* // replace ( with < and ) with > in br
    2) Value is too large
    Go to Report Attributes->edit your column->column formatting->css style
    In CSS style put this display:block;width:100px;white-space:wrap
    Hope this will helps you,
    Thanks,
    Jitendra

  • Control Break in normal report regions

    Can I somehow insert kind of a control break for normal report regions?
    I use it within serveral interactive reports. Now I have a normal report region displaying projects of all department. The users want to have them grouped with a sum by department, which would be easy to do within an interactive report using a control break.
    But how can I do this in a normal report region?
    BR & thank you,
    Lena
    Edited by: Lena F on Mar 30, 2011 6:04 AM
    --> already found the solution - sorry :-(
    Edited by: Lena F on Mar 30, 2011 6:18 AM

    Please post solution

  • Controling Column Order for Report with Dynamic SQL

    Hi,
    I have a report region using Function block returning the SQL.
    The output of the function will look like the following
    SELECT NAME, CLASS1, CLASS2,CLASS3,CLASS4, AVERAGE_SCORE FROM XXXX;
    The number of CLASSn column will be determine by the function based on the data. If the person doesn't have any score on CLASS4, the the SQL would not have CLASS4 column.
    My problem with this is I can't control the order of column appearance.
    For e.g : If my previous SQL is without CLASS4, when I query a person with CLASS4. The CLASS4 column will appear after the AVERAGE_SCORE.
    NAME---CLASS1---CLASS2---CLASS3---AVERAGE_SCORE---CLASS4
    I want it to maintain AVERAGE_SCORE as the last column.
    Can you guys give a suggestion how to handle this?
    Additional info :
    - I am disabling the report header, setting it to None as the first row of the sql returned records is the header.
    Cheers,
    Joel

    Hi all,
    My report seems to be behaving correctly once i set it to "Use Generic Column Names (parse query at runtime only)" :)
    Cheers,
    Joel

  • How to resize column width in report?

    hi all,
    i read somewhere here that in order to resize column width in a report, you need to go to report attributes, then edit the column you wish to resize and then go to the CSS Style and place something like "width=600px". while this works very well in Internet Explorer, it somehow has no effect in Firefox 3.0. is there a way to make it work both browsers?
    thanks
    allen

    Hi,
    Sorry, I misunderstood. There are several methods you could use:
    1 - Use the span tags around the data itself - this would require adding the tags into the sql statement itself
    2 - Use javascript to set the column widths by adding a style to the TD tags for each cell
    3 - Create a new Report Template and use COL tags immediately after the TABLE tag in the Before Rows section to specify the widths of all columns
    Option 3 may be the easiest?
    Andy

  • Change column width in report

    After creating a report using table 'dept', I have updated that dept table and increased the width of the column dname from 14 to 20. I would like to know how to change the width of the dname column in the report that I created earlier so that it can now show 20 characters. Thanks.

    fsidrak wrote:
    I am working on report builder 6i reports. I want to increase the width of a column X in a report in runtime depends on the
    value of a certain column Y in the same report.Hi fady,
    Try to accomplish this by setting Horizontal Elasticity properties.
    Hope this helps
    Hamid
    If someone's response is helpful or correct, please mark it accordingly.*

  • How to control column width in table?

    I have a table with four columns, and they are all with same width.
    But I want to make one of them wider.
    How should I do?
    public void loadTable(){
    Vector infoList = myObj.getInfoList();
    Info info;
    DefaultTableModel dtm = (DefaultTableModel)myPanel.tblList.getModel();
    String[] columnNames = {
    "wider column",
    "Column B",
    "Column C",
    "Column D"};
    dtm.setColumnIdentifiers(columnNames);
    for(int i=0;i< infoList.size();i++){
    // add stuff to "data"
    dtm.addRow(data);
    myPanel.tblList.setModel(dtm);
    myPanel.tblList.getColumnModel().getColumn(1).setWidth(100);
    I also tried setPreferedWidth(), not working for me either.
    What should I do?
    Thank you

    Try setting all the column widths. Define values for normal and width columns:
            DefaultTableColumnModel tcModel = (DefaultTableColumnModel) myTable.getColumnModel();
            Enumeration columnEnum = tcModel.getColumns();
            while (columnEnum.hasMoreElements()) {
                TableColumn column = (TableColumn) columnEnum.nextElement();
                if (column.getModelIndex()  != 1) {
                    column.setPreferredWidth(narrowWidth);
                } else {
                    column.setPreferredWidth(wideWidth);
    Cheers
    DB

  • How to control column width in manual posting ?

    Hi gurus,
    I have some manual posting tasks with associated document types. In some of them when you get into the screen to record the manual data, the columns titles  are so wide that the rigthmost columns get out of the screen and one needs to scroll horizontally.
    Is there some way in wich I can fix columns width? I think if I narrow manually the columns and then fix this layout?
    Thank you.

    Hi,
    I beleive you work in the language other than English. I encounter this very annoying system's behaviour while working in Russian.
    I know that some notes are dedicated to solving of this or that problem in particular language.
    The easiest way to make some "stubborn" settings is to do it in English and the return to your locale.
    Edited by: Eugene Khusainov on Jun 26, 2008 10:36 PM

  • Controlling Column Widths in DWcs5

    Hi everyone, I might be being a bit thick, but I have a simple grid in a page 980 wide (all measurements are in pixels). It is just 5  columns of …
    40, 130, - -, 130 and 40, the column in the middle should be 640 but for some reason it is not letting me enter a width value for the middle column.
    It is reading like this along the bottom in DW 40 (58) 130 (188) - 130 (188) 40 (58) and 980 across the whole width. Why is this? Why can't I just enter the  column widths which equal 980 and have the grid, 40, 130, 640, 130, and 40?
    thanks for your help
    Gareth
    PS I can e-mail you the file if it helps

    Gareth_Williams wrote:
    Hi everyone, I might be being a bit thick, but I have a simple grid in a page 980 wide (all measurements are in pixels). It is just 5  columns of …
    40, 130, - -, 130 and 40, the column in the middle should be 640 but for some reason it is not letting me enter a width value for the middle column.
    It is reading like this along the bottom in DW 40 (58) 130 (188) - 130 (188) 40 (58) and 980 across the whole width. Why is this? Why can't I just enter the  column widths which equal 980 and have the grid, 40, 130, 640, 130, and 40?
    thanks for your help
    Gareth
    PS I can e-mail you the file if it helps
    What's not letting you enter a width value?
    Are these table cells or <divs> youre working with?
    Do you have padding added to the colums as the number in the (bracket) takes this into account.

  • Hide or show column from a report region based on user logged in

    Hi,
    I have this criteria, where I need to display a column on a report page but depends on the users logged in ( APP_User).
    On the field(column page) there is the Conditional Display option
    Conditional Display
    Condition Type: I choose the option where "item value in Expression 1 = expression 1
    *Expression 1*
    App_USER
    *Expression 2*
    I need to add 4 user names here that they allowed to view that column
    My question is how to list the names in expression 2 field, it worked when I added one name, but when I listed 4 names separated by comma, it didn't work.
    I appreciate any help or any solutions from you.
    Thank you.
    Sofia

    If you use "Text in Expression 1 is contained in the Value of Expression 2" then you can provide a comma-separated list. The only thing to watch out for is if you have a user "Bob" and a user "Bob Smith" then you will get a match on "Bob Smith" for the user "Bob"

  • Controlling # columns in interactive report's Group By format?

    Hi,
    I have an interactive report with columns category, attribute1 to attribute 6.
    I want to generate a report of sum of attributes 1-6, grouped by category column.
    I see the group by option of interactive report is limited to only 3 columns. Is there a setting I can override to get more than 3 columns in my group by?
    Thanks,
    Zakia.

    use pivot table plugin read related blog ORA-00001: Unique constraint violated: Pivot Table plugin for Apex
    and use it in report.

  • New to portal: Setting the column width in portal QBE report

    I'm trying to set different widths to different columns in the QBE report. One of the columns in the report contains long descriptive text. With the default column width the reports runs into many pages and user has to scroll a lot. I would like to set the column width for this column so that it does not wrap for every 2/3 words. In the customization tab, I'm setting the width type to "Char" and selecting the number of characters to be displayed in that coulmn. Percent/pixel width type also didn't help. Should I set the Header width also?. I'm not sure where to set this header column width.QBE report just ignores these customization parameters and displays the report in default format. Please let me know if you have any idea/solution to this problem.
    Thanks
    Surya

    Hi,
    This is a bug and has been fixed 30984.
    Thanks,
    Sharmila

  • DataGrid column width is not set properly

    Hi,
            In the below example I has called the OptimizeDataGrid method on Button Click event to resize the Column according to the data. First time of the button click event it called the function whereas the Datagrid Column width alone is not set properly.whereas on second time it is working properly.
    For Eg : In the below statement the text value is coming as 55 and widthPadding is comes as 25. but the sum of these two value is not in the dg.columns[col].width.
    dg.columns[col].width = text + widthPadding;
    But the same is working on the second time of the Button click event. is any help me out to resovle this issue. Thanks in Advance.
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        width="100%" height="100%" >
        <mx:Script>
            <![CDATA[
                import mx.utils.ObjectUtil;
                import mx.collections.ArrayCollection;
                import mx.core.UITextField;
                import mx.events.AdvancedDataGridEvent;
                import mx.binding.utils.BindingUtils;
                import mx.controls.Alert;           
                import mx.controls.AdvancedDataGrid;
                import mx.controls.advancedDataGridClasses.*;
                import mx.controls.DataGrid;
                import mx.controls.dataGridClasses.*;
                [Bindable]
                private var dpFlat:ArrayCollection = new ArrayCollection([            
                  {Region:"aabbCC", Territory:"Central Californiaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                      Territory_Rep:"Joe Smith", Actual:29134, Estimate:30000}, 
                  {Region:"AAbbcc", Territory:"Nevada",
                      Territory_Rep:"Bethany Pittman", Actual:52888, Estimate:45000}
                private function optimizeDataGrid(dg:Object,widthPadding:uint = 0,heightPadding:uint = 0):void
                    if ((!dg is DataGrid))
                        return;
                    var col:uint;
                    var colWidth:uint;
                    var tf:TextFormat;
                    var renderer:UITextField;
                    var widths:Array = new Array(dg.columnCount);
                    var height:uint = 0;
                    var dgCol:Object;
                    var text:uint = 0;
                    if (dg.columnCount > 0 && dg.dataProvider != null)
                        for (col = 0; col < dg.columnCount; ++col)
                            widths[col] = 0;
                        for each (var item:Object in dg.dataProvider)
                            for (col = 0; col < dg.columnCount; ++col)
                                renderer = new DataGridItemRenderer();
                                dg.addChild(renderer);
                                dgCol = dg.columns[col];
                                renderer.text = dgCol.itemToLabel(item);
                                widths[col] = Math.max(renderer.measuredWidth, widths[col]);
                                height = Math.max(renderer.measuredHeight, height);
                                dg.removeChild(renderer);
                        for (col = 0; col < dg.columnCount; ++col)
                            dg.addChild(renderer);
                            renderer.text = dg.columns[col].headerText;
                            widths[col] = Math.max(renderer.measuredWidth,widths[col]);
                            dg.removeChild(renderer);
                            text = widths[col];
                            dg.columns[col].width = text + widthPadding;
                        if (height != 0)
                            dg.rowHeight = height + heightPadding;
            ]]>
        </mx:Script>
        <mx:DataGrid id="myADG"
               dataProvider="{dpFlat}" rowCount="{dpFlat.length}" sortableColumns="false">       
                 <mx:columns>
                    <mx:DataGridColumn dataField="Region" />              
                    <mx:DataGridColumn dataField="Territory_Rep" headerText="Territory Rep" />
                     <mx:DataGridColumn dataField="Territory" />
                    <mx:DataGridColumn dataField="Actual" />
                    <mx:DataGridColumn dataField="Estimate" />
                </mx:columns>
       </mx:DataGrid>
       <mx:Button label="click" id="click" click="optimizeDataGrid(myADG,25,5);"/>
    </mx:Application>
    Regards
    Harikumar

    With horizontalScrollPolicy="off" (the default), it is hard to control
    column widths because the columns are sometimes overridden to make sure they
    fit on the screen.

  • How to set initial column widths for a table

    What I'd like to do is to control the initial column widths for a table.
    I'm building the table by using a class which extends AbstractTableModel. This class takes care of setting the headers and reading the data for the table.
    If I do the following:
    VarTableModel vtm = new VarTableModel(vi);
    JTable jt = new JTable(vtm);
    JScrollPane jsp = new JScrollPane(jt);
    frame.getContentPane().add(jsp);
    frame.setVisible(true);
    I will see a table in my window. The widths of the columns are equal and are a function of the horizontal dimension of the window.
    I have tried to set the width of a column by doing the following:
    TableColumn aColumn;
    aColumn = jt.getColumn(vtm.getColumnName(0));
    aColumn.setWidth(40);
    But this has no effect on what gets displayed. I can force the widths that I want by using 'setMaxWidth' but this has the unfortunate side effect of not allowing the user to make the column wider if they want.
    What I'd like is a way to specify the widths of the columns when initially displayed and then let the user adjust to their liking.
    I'm sure that there is a way to do this, but I don't seem to understand where to intervene in the process to produce the effect that I want.
    Any help or suggestions will be greatly appreciated!

    Table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    add this line and try ur codeThanks for the suggestion! Unfortunately, it doesn't seem to do the trick. Here is an abbreviated segment of my code:
    vtm = new VarTableModel(vi);
    JTable jt = new JTable(vtm);
    // we want a horizontal scrollbar, so turn resizing off
    // and we want to control column widths
    jt.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    aColumn = jt.getColumn(vtm.getColumnName(0));
    aColumn.setWidth(40);
    . // same kind of thing for each column
    aColumn = jt.getColumn(vtm.getColumnName(4));
    aColumn.setWidth(400);
    JScrollPane jsp = new JScrollPane(jt);
    frame.getContentPane().add(jsp);
    frame.setVisible(true);
    If I do the above, the table gets displayed with each of the five columns the exact same width. So, the sizing of the columns is happening somewhere else despite turning auto resizing off.
    Where is that occurring and how can I intervene so that I can control the widths of the columns on initial display and still allow the user to adjust the widths if they so choose?

  • Column widths keep changing

    I understand that Mail controls column widths globally - a nuisance but a major issue - but why do the column widths keep changing after I set them. I appears that they are trying to accommodate a wide entry in a field or some such. Is there a way I can set the column widths and have them stay there!

    oops - meant to say the columns are resizing after searches, and when I turn threading off, my column widths remain at what I set them.
    I assume when your columns resize, you've just performed a search and returned to your inbox/folder?

Maybe you are looking for

  • Premiere Elements 11 Shared Technologies error DW020 Adobe Flash Player 10 plug in missing.

         I am unable to complete the install of Adobe Premiere Elements 11 on my Windows7 Pro 64 bit system.  When the installation process gets to installing Shared Technologies I get an error message "The installation process has encountered an error w

  • Not printing Black ink at all!

    Hi  I'm in the UK and have recently in the past few months bought a new HP Deskjet 2540 All-In-One printer, I'm trying to print things out in black and white and it will not work! I have followed all troubleshooting tips including printing a Quality

  • How to use iMovie for a video presentation

    I have a short film in iMovie. After entering via Media select I was unable to get the film accepted by my beamer using a HDMI cable. The beamer expects for S-Video or just Video (for which I have no connection).

  • Difference between flash builder beta and flash builder beta 2 webservice.

    hey guys... got a quick weird question, im using a lot of webservices, and i immidiately noticed the new thing in the interospection wizard, there is a new field in the wizard called "Data type package", i was wondering what that field is exactly?? i

  • Database package for handling SQL queries using JDBC/ODBC bridge

    I perform a package using J2ME which can stores the contact.It consisting of the fascilities of the editing,Inserting, Deleting,Updating records i have write import statements as import javax.microedition.midlet*; import javax.microedition.lcdui.*; b