ADF af:column width attribute

Hello,
I'm trying to expand the width of columns inside an af:table component so they stretch automatically according to the parent's size. I have tried all ways but columns always get set the default 100px width. The only way to make it stretch is using the af:table attribute columnStretching="last", but it only stretches the last column, not the whole table.
Anyone ever had the same problem?
Thanks!

Short answer: Sorry, you can't.
If you look at the generated HTML code, you'll see that a table with 2 columns in your code does not end up creating a table and 2 columns in the html, it ends up far more complicated.
In fact if you set the width to something like 555 and then search on 555 in the code, you won't even find it. Because the width are calculated from the server side.
So while it may be possible to override this, and to set the width to a percent (And to do so I would recommend investigating using styleClass and inlineStyle to set the width)
To quote from the oracle docs
The data cells in the table rendered by<af:column> tags can be styled by using styleClass and inlineStyle attributes.
The column header cells can be styled using headerClass attribute.
Please note that changing padding and border settings through these attributes is very dangerous.
We calculate widths on the server side and expect padding and border attributes to be specified as skinning properties.
If they get overridden, the aligment[sic] of the table cells might be messed up.

Similar Messages

  • Fix the Column Width in WAD 7.0

    Hi Guys,
                 I have two Queries in a Web Template and when I execute the Web Template in Web, both the Query results are are populated one below the other. The column width for both the Query output from a Web Template when executed in Web needs to be the same.
    Any ideas and suggestions will be really appreciated. Thanks again Guys.
    Thanks,
    Harsha.

    The width attribute of af:column element specifies column width.
    The setWidth(java.lang.String width) method of oracle.adf.view.faces.component.core.data.CoreColumn
    also specifies column width.

  • Can fix the column width in af:table

    I am using af:table, i need to fix the static column width, it can be able to do it?
    plz help,.....

    The width attribute of af:column element specifies column width.
    The setWidth(java.lang.String width) method of oracle.adf.view.faces.component.core.data.CoreColumn
    also specifies column width.

  • Unable to capture the adf table column sort icons using open script tool

    Hi All,
    I am new to OATS and I am trying to create script for testing ADF application using open script tool. I face issues in recording two events.
    1. I am unable to record the event of clicking adf table column sort icons that exist on the column header. I tried to use the capture tool, but that couldn't help me.
    2. The second issue is I am unable to capture the panel header text. The component can be identified but I was not able to identify the supporting attribute for the header text.

    Hi keerthi,
    1. I have pasted the code for the first issue
    web
                             .button(
                                       122,
                                       "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1824fhkchs_6']/web:form[@id='pt1:_UISform1' or @name='pt1:_UISform1' or @index='0']/web:button[@id='pt1:MA:0:n1:1:pt1:qryId1::search' or @value='Search' or @index='3']")
                             .click();
                        adf
                        .table(
                                  "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1c9nk1ryzv_6']/web:ADFTable[@absoluteLocator='pt1:MA:n1:pt1:pnlcltn:resId1']")
                        .columnSort("Ascending", "Name" );
         }

  • 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

  • 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

  • Reports 6i default column widths

    Reports 6i does not appear to pull the correct column width for varchar2 columns when building reports through the wizard. It sets them to 10 regardless of the length.
    Is there a way to either always define a specific database column to a specific width in reports or to get reports to size the column correctly through the wizard?
    Thanks

    Thanks for the quick answer Jay! I tried the latter approach and it didn't work.
    Given my limited understanding of CSS I first researched what the # signifies and found that it precedes a value from an ID attribute of an element. Which makes sense because this override would need to know specifically what to adjust.
    Next I scanned the source and couldn't find an ID of portletColumnFormatter_0 the closest thing I found was a summary field (summary="Portlet column formatter table.").
    Edit: Hmmm...
    A quick scan of portal.bea.com shows that ID does in fact exist there but it appears that site is on version 6.5.0
    Was this ID value missing in an earlier install version perhaps?
    Edit: Aha!
    Yet a few moments later I realized my err...our dev environment is still on 6.1.0 which, if memory serves, was missing this key attribute!
    It appears my first priority should be to syncrhonize our two environments and THEN worry about customizations.
    Thanks again for the help, I'll refer back to this as soon as I'm upgraded:)
    Edited by geoffgarcia at 04/30/2008 10:04 AM

  • Crosstab column width in HTML output

    Hi,
    I have problem with column width in a crosstab report with html ouput.
    I can not find a way to control the column width, and the more I try to control this either with word table properties or with xsl attribute, the more messy it gets!
    Now the columns gets superwide and I dont have clue how to control this...
    Ant ideas of how to set the column width in the rtf template fot html output?
    It looks fine with pdf output...
    Br
    Magnus

    Thanks for your tip, but I did not do the trick exactly.
    Can you get help for this in the User guide? I have read it thru without anything...
    Anyway, I couldnt get it right with the Autofit to Window either, I need to set this for specific columns only, but when I do it on the first columns MS Word rearrange the whole table...
    Do you use it on certain columns or the whole table?
    I have to say, I have a quite complex template with several tables within other tables, and this maight mess things up...
    BR
    Magnus

  • 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

  • How to import many large graphic images to fit into column width?

    I have a 2-column layout and about 150 large graphic images which must be imported so that they fit exactly into the column width. These are bitmaps which have all the same dimensions. All of them will need a border (stroke). And they should be inline graphics because they belong to exact positions in the text flow.
    What would be the sensible approach to that (apart from scripting which I have not done yet)? I tried to define an object style which has the attribute "Fit content to frame", but this does not scale the image to the column size. How can I avoid to format 150 those images manually?

    It may be easier to change the ppi in photoshop so the image can be placed at the exact size.
    so if the image is 10 inches and the file is 300 ppi
    with resample image unchecked change the width to whatever you want it say 2 inches no the ppi will automatically change to 1500 ppi. Save. If you are creating a PDF make sure these images are not downsampled if you need the resolution.
    another way if all images are the same size would be to size one and place it where all the images go and relink to the other pics, when you relink it should retain the properties of the previous pic.

  • Apache FOP Problem with column width

    We are using Apache FOP to generate simple pdf documents out of reports.
    My problem is that the table in the pdf is as standard filled in with columns of same length.
    Further on the content of some table fields is to large or sometimes there is to much room.
    is there any possiblity to let fop react like html?
    The smallest table field size should be like the content. I don't want to adjust all my reports, cause there are really many reports with pdf printing.
    anyone an idea how to solve this with FOP?
    i have no BI pubisher or other reporting engines for this problem
    thx so far

    Oliver,
    I think what you're looking for is having your column width automatically adjusted based on the content of your column values. That is not possible with the built-in, generic XSL-FO template. What you can do is manually adjusting the column width to appropriate values on the print attributes page.
    Regards,
    Marc

  • How to set and fix column widths in Mavericks?

    Until recently I was using a Mid 2011 MBA with OS X 10.8.X.
    I don't know what I did but the column widths in the Finder started to self-adjust to the longest filename.
    Now I have migrated my user account from this MBA to a new MBP running OS X 10.9.1.
    But the Finder in this account still has the same affliction, I can adjust column widths to where I want them but as soon as I click on a file or folder, the column widths readjust to the length of the longest file/folder name.
    How can I stop the Finder from doing that automatically?
    Thanks for your help and Happy Holidays!

    Dear William Lloyd:
    I actually learnt how to do this from another post in this community just a few hours ago.
    You adjust column wisth in Finder by placing your curser at the column edge and while holding Option key down, move column edge to the width you desire.
    This will make a "sticky" change i.e., column widths will stay where you set until you chanage them.
    I would like to to attribute this to the poster I learnt from but I am not able to find that post again.
    Cheers.
    rdfNaresh

  • Trouble with column width

    Hi,
    I'm having trouble changing the width of a column in my SQL Report. I went into Report Attributes and clicked on Edit for the column I wanted, and entered a value for width in column attributes section, but it didn't work. I also tried an html tag, but that didn't work either.
    Is there a different way to change the column width that I haven't tried yet?
    Thanks,
    Nora

    I'll jump on the trail of this thread. I'd like to use a substitution string in the CSS Style setting of the Column Formatting section of a report column. I'm attempting to use the <ampersand><period> syntax, but it doesn't appear to be working. I have succesfully used a substitution string in the "Number/Date Format" which is in the same section. Can someone confirm that this is possible or not? I have not seen any threads stating this to be true or not.

  • Changing File-Open Default Column Widths

    In Word and other applications I find I want the column widths to be wider (and stay wider) than the default.
    Someone on Mactopia said he was able to do the following:
    1) Open Word
    2) Use File>Open
    3) Adjust the window to your taste
    4) Select and Open a document
    5) Quite Word immediately on command Q
    Word is displaying a Finder window for that dialog. You need to hit an
    action button to make Word store the settings (in other words, you need to
    actually open a file).
    You then need to Quit Word to force it to SAVE the new settings.
    However, I found this did not work. He replied:
    Hmmm... Munged preferences is the problem: but which ones, I wonder? The
    change you make is not being saved. It is on my system. I just opened and
    quit Word three times to make sure the change held.
    OK, quite word and try re-naming your Normal template, and any file with
    "word" in its name in your ~/Library/Preferences/Microsoft folder.
    When you re-launch Word, the files will be rebuilt. If this fixes the
    problem, great, If it doesn't, the size is being held in a Finder
    preference (the Word File>Open dialog is actually an Apple Finder window)
    but I have no idea which one.
    Any ideas about this?
    Thanks.
    iMac 20 Mac OS X (10.4.1)

    Thanks for the quick answer Jay! I tried the latter approach and it didn't work.
    Given my limited understanding of CSS I first researched what the # signifies and found that it precedes a value from an ID attribute of an element. Which makes sense because this override would need to know specifically what to adjust.
    Next I scanned the source and couldn't find an ID of portletColumnFormatter_0 the closest thing I found was a summary field (summary="Portlet column formatter table.").
    Edit: Hmmm...
    A quick scan of portal.bea.com shows that ID does in fact exist there but it appears that site is on version 6.5.0
    Was this ID value missing in an earlier install version perhaps?
    Edit: Aha!
    Yet a few moments later I realized my err...our dev environment is still on 6.1.0 which, if memory serves, was missing this key attribute!
    It appears my first priority should be to syncrhonize our two environments and THEN worry about customizations.
    Thanks again for the help, I'll refer back to this as soon as I'm upgraded:)
    Edited by geoffgarcia at 04/30/2008 10:04 AM

  • 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

Maybe you are looking for