HTMLEditorKit renders tables width attribute wrong inside paragraph

I noticed that the following html
<html>
<body>
<p>
<table width="100%" border="1">
<tr>
<td>
something
</td>
</tr>
</table>
</p>
</body>
</html>
.. doesn't 'stretch' the tables width to 100% when using JTextPane and HTMLEditorKit - it's only a few chars wide. Mozilla, Explorer and other browsers display the table right. If I remove the <p> then it works as expected.
Is there a workaround for this behavior.. it sure would be nice to have it display the table like the 'standard' browsers do.

I noticed that the following html
<html>
<body>
<p>
<table width="100%" border="1">
<tr>
<td>
something
</td>
</tr>
</table>
</p>
</body>
</html>
.. doesn't 'stretch' the tables width to 100% when using JTextPane and HTMLEditorKit - it's only a few chars wide. Mozilla, Explorer and other browsers display the table right. If I remove the <p> then it works as expected.
Is there a workaround for this behavior.. it sure would be nice to have it display the table like the 'standard' browsers do.

Similar Messages

  • Dynamic Table Width for XML Renderer

    Hi Guys,
    I'm looking for a way to get a XML documents with a dynamic table width.
    Using a dynamic result table doesn't work.
    The test program looks like this.
    REPORT  xml_test.
    TYPE-POOLS: ixml.
    DATA: go_ixml TYPE REF TO if_ixml.
    go_ixml = cl_ixml=>create( ).
    DATA:  go_xml_document TYPE REF TO if_ixml_document.
    go_xml_document = go_ixml->create_document( ).
    DATA: go_xml_root_elm TYPE REF TO if_ixml_element.
    go_xml_root_elm  = go_xml_document->create_simple_element(
               name = 'flights'
             parent = go_xml_document
             value  = 'Texas Flight' ).
    DATA: go_xml_main_elm TYPE REF TO if_ixml_element.
    go_xml_main_elm  = go_xml_document->create_simple_element(
                  name = 'airline'
                parent = go_xml_root_elm  ).
    DATA: lv_rc TYPE i.
    lv_rc = go_xml_main_elm->set_attribute( name = 'code' value = 'LH401' ).
    DATA: go_xml_streamfactory TYPE REF TO if_ixml_stream_factory.
    go_xml_streamfactory = go_ixml->create_stream_factory( ).
    * Static Creation of X tab ---------------------------------------------
    DATA: BEGIN OF gs_xml_line,
             data(255) TYPE x,
           END OF gs_xml_line.
    DATA:  gt_xml_table       LIKE TABLE OF gs_xml_line,
           gv_xml_size        TYPE i,
           go_ostream         TYPE REF TO if_ixml_ostream.
    * END Static Creation of X tab ------------------------------------------
    * Dynamic Creation of X tab ---------------------------------------------
    FIELD-SYMBOLS: <lf_x_tab>  TYPE STANDARD TABLE,
                   <lf_x_stru> TYPE ANY.
    DATA: lt_fldcat TYPE lvc_t_fcat.
    DATA: lr_tab TYPE REF TO data,
          lr_stru  TYPE REF TO data,
          ls_fldcat TYPE lvc_s_fcat,
          lv_dyn_width TYPE i.
    lv_dyn_width = 255.
    * Append Dynamic Field.
    CLEAR ls_fldcat.
    ls_fldcat-fieldname = 'DATA' .
    ls_fldcat-datatype  = 'X'.
    ls_fldcat-inttype   = 'X'.
    ls_fldcat-intlen    = lv_dyn_width.
    APPEND ls_fldcat TO lt_fldcat .
    * Create dynamic internal table and assign to FS
    CALL METHOD cl_alv_table_create=>create_dynamic_table
      EXPORTING
        it_fieldcatalog = lt_fldcat
      IMPORTING
        ep_table        = lr_tab.
    ASSIGN lr_tab->* TO <lf_x_tab>.
    * Create dynamic work area and assign to FS
    CREATE DATA lr_stru LIKE LINE OF <lf_x_tab>.
    ASSIGN lr_stru->* TO <lf_x_stru>.
    CHECK sy-subrc  = 0.
    * END Dynamic Creation of X tab ------------------------------------------
    * Static Table works
    go_ostream = go_xml_streamfactory->create_ostream_itable( table = gt_xml_table ).
    * Dynamic Table doesn't work
    go_ostream = go_xml_streamfactory->create_ostream_itable( table = <lf_x_tab> ).
    * Show result
    DATA: go_renderer        TYPE REF TO if_ixml_renderer.
    go_renderer = go_ixml->create_renderer( ostream  = go_ostream
                                            document = go_xml_document ).
    lv_rc = go_renderer->render( ).
    gv_xml_size = go_ostream->get_num_written_raw( ).
    DATA: lv_str  TYPE string,
          lv_xstr TYPE xstring.
    LOOP AT gt_xml_table INTO gs_xml_line.
      lv_xstr = gs_xml_line-data.
      CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
        EXPORTING
    *                          FROM_CODEPAGE       = '8500'
          in_xstring          = lv_xstr
    *                          OUT_LEN             =
       IMPORTING
         out_string          = lv_str.
      WRITE: / lv_str.
    ENDLOOP.
    If the static table is used, the program gets a result, but it doesn't work with the dynamic table.
    * Static Table works
    go_ostream = go_xml_streamfactory->create_ostream_itable( table = gt_xml_table ).
    * Dynamic Table doesn't work
    go_ostream = go_xml_streamfactory->create_ostream_itable( table = <lf_x_tab> ).
    Any Ideas?
    Thanks in advance
    Dominik

    I've never used dynamically changing popup items variable before, and I'm not sure it will work(?)
    But, if it's displaying a long string, it does not sound like 'items' is being assigned a proper table yet.
    I don't know what you mean by a  "chunk" of values. I assume you mean table.
    In any case, if SYPNEventResults[1].title is a string, then SYPNEventResults[1].value can be any legal lua type.
    Likewise for SYPNEventResults[2], SYPNEventResults[3], ...
    If you can index/display the title with this syntax, e.g. LrDialogs.message( SYPNEventResults[1].title ), then the popup should be initialized thusly:
    viewFactory:popup_menu {
           items = SYPNEventResults,
           value = LrView.bind('eventname2'),
           width_in_chars = 40,
    if a function is returning multiple values, then to get it into a table "array", do this:
    local tableArray = { myTableArrayFunc( myTableArrayParameters ) }
    Does this help?
    Rob

  • 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.

  • Table width not displaying correctly in IE - Works in Mozilla / Chrome

    I am working tirelessly trying to optimize my site for SEO purposes and I have been able to strip out over a hundred lines of extra code while maintaining my sites look. The problem is in doing so I messed something up - well at least Internet Explorer seems to think so. My site renders just fine in Mozilla and Chrome but for whatever reason, the width of the main table for my product pages is showing up a lot wider than it should. I currently have it set to 859 pixels but Explorer is rendering a much larger table. For the life of me, I can not figure out why this is happening. Our sites homepage The BlueDot is located at http://www.thebluedot.net is showing up as it should in Explorer, but if you click on any of the products it goes wider for some reason? I have limited code access in my store front whereas I have complete control over my home page. Again - it shows as it should in Mozilla and Chrome but not Explorer...
    If you happen to decide to help and see anything else I can strip down in the code or make more Google friendly - please let me know - I would so much appreciate any help you could provide. I have tried stripping out any extra tables I could with my current experience with CSS, HTML and Div tags but I know I could probably strip out much more unneeded code if my skills were a bit better.
    What am I doing wrong in my code that explorer is deciding to make the table width much wider?
    Thanks so much in advance.

    body {
         background-color:fff;
         font-family: Arial, Helvetica, sans-serif;
         color: #006;     
    Add a # to your background color above.
    Also align="center" is deprecated code just so you know. It looks like the table is being populated dynamically from a database. Tables will expand to hold the content it's given - just make sure your dynamically created tables use CSS that constrains the width as you desire it. Potentially this is an ASP .NET control issue (it looks like you're using .asp) and you may need to change that (the control) through whatever CSS it uses.
    Hope this helps.

  • Custom report - Can't customize font / table width etc

    So i'm authoring my first report - that works fine; however I can't seem to figure out how to customize the font / table width etc. I'm creating an RDL file from Report Server Project Wizard in Visual Studio and in there i'm changing font sizes and table
    widths and I can see its changing in the RDL file's XML. I then plug the RDL file into my managment pack and import it. I run the report and the results always have this huge font and the table widths don't change. Anyone have any idea what i'm missing or
    why that would be happening? heres the RDL file for reference:
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Textbox Name="textbox1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Report1</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>12pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>SteelBlue</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox1</rd:DefaultName>
    <Height>0.36in</Height>
    <Width>5in</Width>
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    <Tablix Name="table1">
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>2.75in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>3.58333in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.22in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox2">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Raised Date Time</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>6pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox2</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox3">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Alert Name</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>6pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox3</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox4">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Alert Description</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>6pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox4</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    <TablixRow>
    <Height>0.21in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="RaisedDateTime">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!RaisedDateTime.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>5pt</FontSize>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>RaisedDateTime</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="AlertName">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!AlertName.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>5pt</FontSize>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>AlertName</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="AlertDescription">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!AlertDescription.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>5pt</FontSize>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>AlertDescription</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember />
    <TablixMember />
    <TablixMember />
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <KeepWithGroup>After</KeepWithGroup>
    <RepeatOnNewPage>true</RepeatOnNewPage>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    <TablixMember>
    <Group Name="table1_Details_Group">
    <DataElementName>Detail</DataElementName>
    </Group>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    <DataElementName>Detail_Collection</DataElementName>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <DataSetName>DataSet1</DataSetName>
    <Top>0.36in</Top>
    <Height>0.43in</Height>
    <Width>7.33333in</Width>
    <ZIndex>1</ZIndex>
    <Style />
    </Tablix>
    </ReportItems>
    <Height>0.79in</Height>
    <Style />
    </Body>
    <Width>8.1875in</Width>
    <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSources>
    <DataSource Name="DataWarehouseMain">
    <DataSourceReference>Data Warehouse Main</DataSourceReference>
    <rd:DataSourceID>e4235c51-407f-4065-8519-a1e57374bc45</rd:DataSourceID>
    </DataSource>
    </DataSources>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataWarehouseMain</DataSourceName>
    <QueryParameters>
    <QueryParameter Name="@AlertName">
    <Value>=Parameters!AlertName.Value</Value>
    </QueryParameter>
    <QueryParameter Name="@StartDate">
    <Value>=Parameters!StartDate.Value</Value>
    </QueryParameter>
    <QueryParameter Name="@EndDate">
    <Value>=Parameters!EndDate.Value</Value>
    </QueryParameter>
    <QueryParameter Name="@ObjectName">
    <Value>=Parameters!ObjectName.Value</Value>
    <rd:UserDefined>true</rd:UserDefined>
    </QueryParameter>
    </QueryParameters>
    <CommandText>SELECT dbo.vManagedEntity.FullName,
    dbo.vManagedEntity.TopLevelHostManagedEntityRowId,
    dbo.vManagedEntity.ManagedEntityRowId,
    Alert.vAlert.ManagedEntityRowId,
    Alert.vAlert.AlertName,
    Alert.vAlert.AlertDescription,
    Alert.vAlert.RaisedDateTime
    FROM dbo.vManagedEntity
    INNER JOIN Alert.vAlert
    ON dbo.vManagedEntity.ManagedEntityRowId = Alert.vAlert.ManagedEntityRowId
    WHERE dbo.vManagedEntity.FullName LIKE '%' + @ObjectName + '%'
    AND Alert.vAlert.AlertName LIKE '%' + @AlertName + '%'
    AND Alert.vAlert.RaisedDateTime &gt;= @StartDate
    AND Alert.vAlert.RaisedDateTime &lt;= @EndDate
    ORDER BY Alert.vAlert.RaisedDateTime DESC</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="AlertName">
    <DataField>AlertName</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="AlertDescription">
    <DataField>AlertDescription</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="RaisedDateTime">
    <DataField>RaisedDateTime</DataField>
    <rd:TypeName>System.DateTime</rd:TypeName>
    </Field>
    <Field Name="ObjectName">
    <DataField>ObjectName</DataField>
    <rd:UserDefined>true</rd:UserDefined>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <ReportParameters>
    <ReportParameter Name="AlertName">
    <DataType>String</DataType>
    <Prompt>Alert Name</Prompt>
    </ReportParameter>
    <ReportParameter Name="StartDate">
    <DataType>DateTime</DataType>
    <Prompt>Start Date</Prompt>
    </ReportParameter>
    <ReportParameter Name="EndDate">
    <DataType>DateTime</DataType>
    <Prompt>End Date</Prompt>
    </ReportParameter>
    <ReportParameter Name="ObjectName">
    <DataType>String</DataType>
    <Prompt>Object Name</Prompt>
    </ReportParameter>
    </ReportParameters>
    <Language>en-US</Language>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>4250ddf1-3c87-47b1-b8c2-314aad86ad86</rd:ReportID>
    </Report>
    Any suggestions would be greatly appreciated. Thanks!

    I did some digging and found a link that might help you/have an answer.
    http://stackoverflow.com/questions/14850503/change-default-font-ssrs-visual-studio
    https://connect.microsoft.com/SQLServer/feedback/details/574003/modify-the-default-font-family-for-sql-server-business-intelligence-development-studio-while-creating-a-report#
    If you click on work around someone posted that they were able to modify the default font in visual studio.
    "If I am not mistaken, you can update your Report.rdl template file in visual studio
    to use the default font you wish to use.
    navigate to this location (where x is your visual studio version):
    C:-\Program Files\Microsoft Visual Studio x\Common7\ide\PrivateAssemblies\ProjectItems\ReportProject
    copy report.rdl to an already created report project. 
    Add the report to your report project
    Update the default font where applicable.
    Copy the updated report.rdl back to the location above and that is it.
    The next time you open your project, you will be using the update rdl file as your
    template. 
    You can do this as many times as you want.
    Use this link as a reference
    http://weblogs.sqlteam.com/jhermiz/archive/2007/08/14/60283.aspx
    Cheers,
    Martin
    Blog:
    http://sustaslog.wordpress.com 
    LinkedIn:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Read Only and HTML Table Cell Attributes

    Hi Guys,
    I believe i have come accross a bug - i'm been working on a form that can be filled out and printed - when going into print for sake of the output looking nice i set the form element to read-only.
    As soon as an element such as a drop down box, text feild, text area, etc which display as "[selected value]" in plain text in read only mode, are changed to the read only mode apex seem to ignore the html table cell attributes.
    For example i have a id number in the top left and then a version number in the top right. Both use a text feild; the top left uses 'width="100%"' for it's HTML Table Cell Attribute to push the right cell to the right. and the right cell has 'align="right"'. Now this works fine when read only is off... but as soon as read only is on, both the width and the alignment are totally ignored, and i can't find any sign of them in the code.
    Because this is for printing; using the "disable" on the form element instead of "read only" function, isn't appropriate as disabled will make the elements faded and hard to read when printed, and keeping the elements as is will allow the user to edit information on the print screen - which is not appropriate.
    Is this a bug? Will it be fixed soon? Is there any work around?
    Cheers,
    Alex

    Use the "Read Only Element Table Cell(s) Attributes" in the Read Only region of the Item edit form.
    Scott

  • How to know the the list of tables with no rows inside a schema?

    with reference to
    http://www.ss64.com/orad/USER_TABLES.html
    How to know the the list of tables with no rows inside a schema?
    I try this select table_name from user_tables where num_rows=0;
    I can found one table that is empty.
    So what's the query to return list of tables in a schema which has no rows?
    thanks

    You can do that only if your have collected the stats properly. Otherwise its going to show you wrong information.
    Check this out...
    SQL> drop table t
      2  /
    Table dropped.
    SQL> create table t
      2  as
      3  select level no from dual connect by level <=100
      4  /
    Table created.
    SQL> select table_name,num_rows from user_tables where table_name = 'T'
      2  /
    TABLE_NAME                       NUM_ROWS
    T
    SQL> begin
      2      dbms_stats.gather_table_stats(user,'T');
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> select table_name,num_rows from user_tables where table_name = 'T'
      2  /
    TABLE_NAME                       NUM_ROWS
    T                                     100
    SQL>Thanks,
    Karthick.

  • Controlling table width for printing

    Is there a way I can use Dreamweaver, perhaps with CSS, to
    add a table to my site that is set to a fixed width of, say 850
    pixels but have the text inside the table wrap properly when
    printing? I know that fixed width tables beyond about 760 pixels
    cause the text to flow off the page when printed from some
    browsers, and we usually control this using a percentage to
    determine the table width. In this case, though, we'd like to use a
    fixed width when the content is viewed on screen, but have the text
    wrap when printing before it reaches the right margin of the fixed
    width table. Make sense?

    Have two stylesheets which control the width of the table.
    Make the screen
    media stylesheet set its width in pixels and the print media
    stylesheet set
    it in percents.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Klytus" <[email protected]> wrote in
    message
    news:e7hh5a$59n$[email protected]..
    > Is there a way I can use Dreamweaver, perhaps with CSS,
    to add a table to
    > my
    > site that is set to a fixed width of, say 850 pixels but
    have the text
    > inside
    > the table wrap properly when printing? I know that fixed
    width tables
    > beyond
    > about 760 pixels cause the text to flow off the page
    when printed from
    > some
    > browsers, and we usually control this using a percentage
    to determine the
    > table
    > width. In this case, though, we'd like to use a fixed
    width when the
    > content is
    > viewed on screen, but have the text wrap when printing
    before it reaches
    > the
    > right margin of the fixed width table. Make sense?
    >

  • Dreamweaver Table Width Extending Past Page Border Question

    I am updating a template for a client and my layout keeps extending beyond the width designated. I have went through the layout and tried to find and take out any extra table rows and columns or images. I have tried find/replace and replaced all widths with the correct widths. I have tried to physically click on the edge of the table and move it to the correct width. Nothing is working. Please help me get these tables to be the size I tell them to be!

    That helps quite a bit.
    The first rule of troubleshooting layout problems is to make sure that the code on your page validates.  Let's start with the template page.  It doesn't.
    Go here and validate your template page - http://validator.w3.org - and you will find 49 errors, some of which are caused by not knowing the rules, others of which are caused by careless rummaging in the code.  Any one or combination of ones of these could be causing your table to behave poorly.  So now the trick is to go through the page and fix the validation errors.  Note that both the name attribute and the id attribute can only contain letters and numbers, and cannot begin with a number.  Yours contain spaces and punctuation - a real no-no.  All of these should be fixed.
    Also note that one of your nested tables (they are nested at least 6 deep!) has this code -
    <table width="1349"
    Maybe that's why it's wider than you wanted - 965px?

  • Can you make table width editable in a template

    I am new to html and am trying to use a template to create a
    site that will eventually have 10-12 pages. All of the pages will
    have the same basic design, but some need 1 main body section and
    some need 2 (1 main and 1 smaller off to the side). After doing 4
    pages, I realized I could use a template so I wouldn't have to
    re-enter all the links in the nav bar, etc., but if I do a page
    with just one main section, I would like that section to be wider.
    The template will not allow me to adjust the table. Is there a way
    to make the table width editable/adjustable? Thanks for any help
    you can give me... I'm sure to have many more questions once this
    gets solved!

    Well, it's OK, but I'm not sure where you want to go with
    this. I'm not
    crazy about how you have used the CSS - there are things
    there that I think
    are unnecessary....
    Consider this -
    <style type="text/css">
    <!--
    body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 80%;
    color: #000;
    background-color: #FFF;
    margin: 0 0 0 15px;
    padding: 0;
    color: #000;
    #wrapper {
    width:720px;
    div {
    border:thin solid #FFF;
    #banner {
    background-image:
    url(
    http://homepage.mac.com/nminicozzi37/PFC_Web_Test_Site/ahsban_02.gif);
    background-repeat: no-repeat;
    height: 20px;
    #main {
    font-size: 90%;
    #spacer {
    background-color: #FFF;
    height: 32px;
    #welcome {
    font-size: 125%;
    font-weight: bold;
    background-color: #FFCC00;
    height: 40px;
    padding-left: 5px;
    padding-top: 18px;
    #BlueSpacer {
    background-color: #00C;
    height: 20px;
    #welcome2 {
    font-weight: bold;
    color: #00C;
    background-color: #FC0;
    height: 45px;
    padding-left: 5px;
    padding-top: 18px;
    -->
    </style>
    </head>
    <body>
    <div id="wrapper">
    <div id="banner"></div>
    <div id="spacer">Content for id "spacer" Goes
    Here</div>
    <div id="welcome">Welcome to the Agoura High School
    Parent Faculty Club
    (AHS
    PFC) </div>
    <div id="welcome2"> Your source for all the latest PFC
    news and
    information </div>
    <div id="BlueSpacer"></div>
    <div id="main">Content for id "main" Goes
    Here</div>
    </div>
    </body>
    </html>
    Don't get into additive trouble with percent sized fonts.
    Remember, when
    you have an element with font-size:100%, that's 100% of 80%,
    and when you
    have one with font-size:60%, that's 60% of 80%.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "AH_Nancy" <[email protected]> wrote in
    message
    news:[email protected]...
    > Thank you thank you thank you for your helpful
    suggestions, Murray.
    >
    > I am definitely prepared for time in the trenches.
    Anything worth doing is
    > worth doing right. You can see what I have done so far
    >
    http://homepage.mac.com/nminicozzi37/PFC_Web_Test_Site/.
    (The top graphic
    > will
    > be replace by the correct one when I get it.) Any
    comments/suggestions
    > welcome.
    >
    > Of the ways you suggested to organize the CSS, is there
    one you would
    > recommend over the others, or is it simply a matter of
    personal
    > preference?
    >
    > Nancy
    >
    >

  • FBL5N t code and BSEG table is showing wrong contract number

    Hi,
    The proces flow is contract number>sales order>DMR-->Invoice
    Now when I am checking the VBFA table it's showing correct contract number against invoices but FBL5N t code and BSEG table are showing wrong contract numbers.
    Why FBL5N and BSEG table is showing wrong contract number?
    Currently we are using one enhancement and user exit is used to incorporate one customized field as identifier for bill type.
    1. During the billing document release to accounting VFX3, The user exit triggering and it is update the customized fields and Net settlement indicator.
    2. Using the Invoice number, get the fields VGBEL(Document number of the reference document) and VGPOS (Item number of the reference item) from VBRP and read table VBAP with VBELN and POSNR, to get DMR number (Sales Document) that created for the Invoice.
    3. Use fields VGBEL and VGPOS on table VBAP to get the sale order number.
    4. By using the Sales order number, get the Distribution channel to update Net indicator field
    In accounting table BSEG-UZAWE = JF must be updated on the customer line.
    5. Retrieve the sale order number and item level to get customized field from table VBAP
    Any pointers.
    Thanks
    Ashu

    Hi Reazuddin,
    Thanks for your reply,
    I am concercerned about BSEG table and using user exit EXIT_SAPLV60B_008 to post the document in FI.
    Now in we have enhanced this user exit  for contracts and included in this way.
      SELECT SINGLE ZZ_CONTRACT FROM VBAK INTO (LC_CONTRACT) WHERE VBELN EQ cvbrp-vgbel.
    Endloop.
    *Moving the values to final accounting table
    loop at xaccit.
    xaccit-vertn = lc_contract.
    xaccit-VBEL2 = xaccit-AUBEL.
    xaccit-xref3 = lc_vbel2.
    MODIFY xaccit .
    ENDLOOP.
    Clear: lc_contract,lc_vgbel,lc_vgpos,lc_vbel2.
    But I am getting correct data when checked other clients( development and quality), this problem I am getting in production.
    Do I need to ask the ABAP'er to debug this enhancement in production?
    Thanks
    Ashutosh

  • IBooks Author table of contents does recognize paragraph styles

    The video
    https://www.youtube.com/watch?v=n2p08-NmqfQ
    shows that using iBooks Author  I should be able to have text that is formatted with specific Paragraph Styles show automatically in the Table of Contents. But for me that does not work.  My version of ibooksAuthor is version 2.1.1 ( the latest) , under OS 10.9.1 (the latest) on an iMac.
    The video shows the Inspector for TOC as a separate window and shows explicitly, under Sections, the items Copyright, Dedication, Foreword, Section and Section Text. It also has two Paragraph styles listed, Heading 1 and Heading 2. 
    This set of TOC entries is  available for me with templates from Landscape with Portrait but NOT with templates of Portrait. The templates available for Portrait do not  list, in the TOC Inspector, Heading 1 or Heading 2.
    Furthermore, the Portrait templates do NOT allow me to add any Paragraph style to the list (the control for adding Paragraph Styles to the list is grayed out), although the Landscape templates DO allow me to add any Paragraph style.
    However, when, with a Landscape template (e.g. Basic) I format text as one of the paragraph styles Header 1, Header 2, Chapter, Section, it does NOT automatically show up in the TOC, though if I add a new section it does automatically show up. The TOC only lists Chapter and Section if these have been added from the menu bar.
    When I use a Portrait template  (e.g. Basic or any other) and format text as one of the Paragraph Styles Chapter or Section that  text does not show up in the TOC. And the control for adding Paragraph Styles to the list is grayed out: I cannot add Header 1 or Header 2. The TOC only lists Chapter and Section if these have been added from the menu bar.
    No matter what template I use, if I assign a paragraph style to some text, it does not show up in the TOC. And with Portrait templates, which is what I want to use,  I cannot adde any paragraph styles to the TOC Inspector in Portrait templates.

    The iBA Help has info on: table of contents
    Which includes:
    Each book comes with a table of contents that is updated automatically. You can view the table of contents at any time by selecting Table of Contents in the sidebar. The table of contents includes a default set of items, but you can change which items appear. A table of contents can include:
    Chapter and section titles: All chapter and section titles are included in the table of contents by default. If you remove a section from the table of contents, all other sections that use the same layout are removed as well.
    Text that uses specified paragraph styles: By default, the table of contents includes all paragraphs in the book that use the Heading 1 and Heading 2 style, but you can include whichever styles you like. Paragraph styles appear in the table of contents only in portrait orientation. See Format text using styles.
    The way the table of contents looks depends on the current page orientation. In landscape orientation (shown below), each chapter has its own contents page, with navigation buttons at the bottom. In portrait orientation, the entire book’s table of contents is visible as an expandable list.
    Add or remove items in the table of contents
    If the Document inspector isn’t open, click Inspector in the toolbar and click the Document Inspector button.
    Click the TOC button.
    Do either or both of the following:
    To add an item: Click the Add pop-up menu , choose Add Paragraph Style, and choose an option from the submenu.
    To remove an item: Select the item you want to remove and click the Delete button .

  • Accessing internal table of main program inside function module...

    I have function module say ZFUNC and main program say ZMAIN and internal table defined as IT_TAB inside ZMAIN but not passed as parameter to Function module ZFUNC.
    If I want to access the field value of IT_TAB of  main program ZMAIN inside ZFUNC during debugging then, I simply put <b>(ZMAIN)IT_TAB-amount</b> in ABAP debugger and then change it when the debugger is inside ZFUNC.
    How can I write code to change the value of internal table of main program in function module ZFUNC instead of doing in debugger ? I guess I have to use some field symbols, but not sure. Please suggest.
    Regards,
    Rajesh.

    Yes, you do need to use a field symbol.  Say for example, you had a internal table called IMARC in your program and you want to access it later in a funciton module, you would do something like this.
      data: xmarc type marc.
      field-symbols: <imarc> type marc_upl_tt.
    * Assign an internal table
      field = '(ZPROGRAM_NAME)IMARC[]'.
      assign (field) to <imarc>.
      loop at <imarc> into xmarc.
        write: / xmarc-matnr, xmarc-werks.
      endloop.
    Regards,
    Rich Heilman

  • Table width issue in ie

    hi all
    I am using the JDeveloper11g.i am facing problem with adf table width in ie.i need to align two tables side by side .
    when i am specifying width in percentages each table is allocating 100% blank space .
    if i say width:30% for the table it showing 30% table with scroll ,but remaining 70% as blank and then my second table starting after that blank space.
    how to remove this extra blank space (I want the width to specify in % not in Px)?
    Thanks in advance
    NIRANJAN REDDY. S

    Hi,
    does this only show on IE ? If it is the same on FF, try surrounding both tables with af:panelgroup and set its orientation to horizontal
    Frank

  • List of SQL tables and attributes used in SSRS reports

    Hi,
    I have around 450-500 reports deployed in SSRS reporting server.
    All these reports are built on SQL from multiple databases, and these databases are having unnecessary tables and attributes.
    My requirement is to clean the unused tables and attributes from the databases. For this, I need the list of SQL tables and attributes used in these 450-500 SSRS reports.
    Is there any way to get this data?
    Regards,
    RK

    Hi RK,
    According to your description, you want to get a list of the tables and attributes used in all reports.
    In your scenario, you can query the ReportServer.dbo.Catalog table to get Report name, data source name, dataset name, and query used in the dataset with query below:
    WITH XMLNAMESPACES ( DEFAULT 'http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition', 'http://schemas.microsoft.com/SQLServer/reporting/reportdesigner' AS rd )
    SELECT ReportName = name
    ,DataSetName = x.value('(@Name)[1]', 'VARCHAR(250)')
    ,DataSourceName = x.value('(Query/DataSourceName)[1]','VARCHAR(250)')
    ,CommandText = x.value('(Query/CommandText)[1]','VARCHAR(250)')
    ,Fields = df.value('(@Name)[1]','VARCHAR(250)')
    ,DataField = df.value('(DataField)[1]','VARCHAR(250)')
    ,DataType = df.value('(rd:TypeName)[1]','VARCHAR(250)')
    --,ConnectionString = x.value('(ConnectionProperties/ConnectString)[1]','VARCHAR(250)')
    FROM ( SELECT C.Name,CONVERT(XML,CONVERT(VARBINARY(MAX),C.Content)) AS reportXML
    FROM ReportServer.dbo.Catalog C
    WHERE C.Content is not null
    AND C.Type = 2
    ) a
    CROSS APPLY reportXML.nodes('/Report/DataSets/DataSet') r ( x )
    CROSS APPLY x.nodes('Fields/Field') f(df)
    ORDER BY name
    For more information, please refer to this similar thread:
    Extract metadata from report server database
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

Maybe you are looking for

  • In Design CS 5.0 (7.0.4) slow file performance

    I work on a large catalog in a workgroup setting of 5 people. We work with files on our desktop then store them on the server when we are done. All images are linked to a locatoin on the server. We are having issues with our files being slow and unre

  • How can I change the path location for an entire album?

    Hi everyone: If I move a folder containing an album to another location for organizational purposes, every song in the album is now lost in the library. As I know it there are two options: 1. Manually open each individual song info and find the locat

  • IPhoto upload error for printing. First two books successful. This one fails.

    I have successfully developed two iPhoto books in the past, however, the third book goes through the entire process of uploading and then indicates 'error'. This book is 46 pages long which should not be a problem. Any suggestions? Thank you. Phil G,

  • Server returned HTTP response code: 401 for URL

    i am trying to execute the following piece of code from a remote client: URL url = new URL("www.abc.com/servlet/someservlet"); URLConnection conn = url.openConnection(); but i am getting a server returned 401 error, i did some research and i think my

  • Page displays only part of ivew.

    Hi Gurus We had created an iview which is displaying an Abap form, from R/3 . we can  see the same in preview of ivew. But , as we add iview to page ,in preview(of page) we see only part of ivew i.e form.But we need to display in full page. We had ch