Position div's with a table

I've been struggling quite a while trying to properly
position div's using CSS. However being from the old FrontPage
school (shrugg....) I can solve it in 3 minutes by putting a 3
column, 3 row table in the wrapper div. I merge the cells in the
top row and put my header div's in it. Do the same with the bottom
row and put my footer div in it. If I now put the left sidebar,
main content and right sidebar div's in the 3 cells in the middle
row, I now have a page that formats perfectly in different screen
resolutions and browsers.
Since this seems too simple to do, what am I missing?
What is wrong with this approach?
//jonas

Hello,
If you're going to use tables, you don't need the divs. Just
put the content
into the table cells.
If you're going to use divs, the order of divs in the code
for your layout
could be:
1. Your header div.
2. Your left sidebar div given a width and floated left.
3. Your right sidebar div given a width and floated right.
4. Your main content given a width and assigned a margin
value on each side
equal to the width of the sidebar div on that side.
5. A clearing element, to clear the floats.
5. Your footer div.
DW CS3 has canned layouts including this one.
File>New>Pick from the Layout
list (This one is 3 Column fixed, header, footer)
You can see how it works and change the design to yours.
Take care,
Tim
"netwood" <[email protected]> wrote in
message
news:gdtngp$89p$[email protected]..
> I've been struggling quite a while trying to properly
position div's using
> CSS.
> However being from the old FrontPage school (shrugg....)
I can solve it in
> 3
> minutes by putting a 3 column, 3 row table in the
wrapper div. I merge the
> cells in the top row and put my header div's in it. Do
the same with the
> bottom
> row and put my footer div in it. If I now put the left
sidebar, main
> content
> and right sidebar div's in the 3 cells in the middle
row, I now have a
> page
> that formats perfectly in different screen resolutions
and browsers.
>
> Since this seems too simple to do, what am I missing?
> What is wrong with this approach?
>
> //jonas
>

Similar Messages

  • Setting App Div relative to a Table

    Hi. I'd like to set an AppDiv relative to a specific Table cell. So its x-y coordinates are 'locked' witin that cell, but the cell - and its table - may float within  the page (for example, always in the center). How to?
    Thanks in advance...

    First you would insert a relatively positioned <div> container in the table <td> cell (see below)
    <td>
    <div id="holder" style="position: relative;">
    </div>
    </td>
    Then in the relatively positioned <div> container you would insert your absolutely positioned <div> (see below)
    <td>
    <div id="holder" style="position: relative;">
    <div id="positioned">This is an absolutely positioned container</div>
    </div>
    </td>
    Use some css to style and position the absolutely positioned <div>
    #positioned {
    position: absolute;
    left: 0;
    top: 100px;
    width: 250px;
    height: 200px;
    background-color: #FC3;

  • Question on positioning div elements

    I have a wrapper div and a footer div below that. I want to
    center the wrapper div in the middle of the page and then position
    sub elements within this wrapper div. For example, I would like to
    create a "nav" div and an "actual content" div within the wrapper
    div. I learned that I can relatively position the wrapper div to be
    in the middle of a page regardless of screen width and then
    absolutely position the "nav" div and "actual content" within the
    wrapper div. The problem with this is that as soon as I absolutely
    position the "actual content" div within the wrapper div then the
    footer div jumps up the page to be right in the middle of the
    wrapper div when it should be located completely below the wrapper
    div. The other way of doing it would be to relatively position (or
    don't specify) both the nav and actual content divs and just float
    the nav to the left. This seems to work but I am wondering why the
    footer jumped up when I tried to absolutely postion divs in the
    wrapper div. Is there a way to not make the footer jump up and also
    what is the standard way of doing this?

    This may help you understand positioning a bit -
    There are 4 different types of positioning:
    Absolute
    Relative
    Fixed
    Static
    Here is a brief explanation of each kind of positioning (with
    regard to
    placement of elements on the page only)....
    Position:absolute (or A/P elements)
    This does several things -
    1. It 'removes' the element from the flow of the code on
    the page so that
    it can no longer influence the size or position of any other
    page element
    (except for those contained within it, of course).
    2. The absolutely positioned element takes its position from
    the position of
    its closest PARENT *positioned* element - in the
    absence of any explicitly
    positioned parent, this will default to the <body> tag,
    which is always
    positioned
    at 0,0 in the browser viewport.
    This means that it doesn't matter where in the HTML code the
    layer's code
    appears (between <body> and </body>), its
    location on the screen will not
    change (this assumes that you have not positioned the A/P
    element within
    a table or another A/P element, of course).
    Furthermore, the space in
    which
    this element would have appeared were it not positioned
    is not preserved
    on the screen. In other words, absolutely positioned elements
    don't take
    up any space on the page. In fact, they FLOAT over the page.
    Position:relative (or R/P elements)
    In contrast to absolute positioning, a relatively positioned
    page element is
    *not* removed from the flow of the code on the page, so
    it will use the
    spot
    where it would have appeared based on its position in
    the code as its
    zero point reference. If you then supply top, right,
    bottom, or left
    positions
    to the style for this element, those values will be
    used as offsets from
    its
    zero point.
    This means that it DOES matter where in the code the
    relatively positioned
    element appears (, as it will be positioned in that location
    (factoring in
    the offsets) on the screen (this is true for any placement in
    the code).
    Furthermore, the space where this element would have
    appeared is
    preserved in the display, and can therefore affect the
    placement of
    succeeding elements. This means that the taller a relatively
    positioned element is, the more space it forces on the page.
    Position:static
    As with relative position, static positions also "go with
    the flow". An
    element with a static position cannot have values for
    offsets (top, right,
    left, bottom) or if it has them, they will be ignored. Unless
    explicitly
    positioned, all div elements default to static positioning.
    Position:fixed
    A page element with this style will not scroll as the page
    content scrolls.
    Support for this in elements other than page backgrounds is
    quirky
    There are several other things you need to know:
    1. ANY page element can be positioned - paragraphs, tables,
    images, lists,
    etc.
    2. The <div> tag is a BLOCK level tag. This means that
    if it is not
    positioned or explicitly styled otherwise, a) it will always
    begin on a new
    line on the screen, and b) it will always force content to a
    new line below
    it, and c) it will always take up the entire width of its
    container (i.e.,
    width:100%).
    3. The placement of A/P elements *can* affect the BEHAVIOR of
    other
    elements
    on the page. For example, a 'layer' placed over a hyperlink
    will mask that
    hyperlink.
    You can see a good example of the essential difference
    between absolute and
    relative positioning here -
    http://www.great-web-sights.com/g_layersdemo.asp
    You can see a good demonstration of why using layers for a
    page layout tool
    is dangerous here -
    http://www.great-web-sights.com/g_layer-overlap.asp
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Johnny the boy" <[email protected]> wrote
    in message
    news:[email protected]...
    >I have a wrapper div and a footer div below that. I want
    to center the
    >wrapper
    > div in the middle of the page and then position sub
    elements within this
    > wrapper div. For example, I would like to create a "nav"
    div and an
    > "actual
    > content" div within the wrapper div. I learned that I
    can relatively
    > position
    > the wrapper div to be in the middle of a page regardless
    of screen width
    > and
    > then absolutely position the "nav" div and "actual
    content" within the
    > wrapper
    > div. The problem with this is that as soon as I
    absolutely position the
    > "actual content" div within the wrapper div then the
    footer div jumps up
    > the
    > page to be right in the middle of the wrapper div when
    it should be
    > located
    > completely below the wrapper div. The other way of doing
    it would be to
    > relatively position (or don't specify) both the nav and
    actual content
    > divs and
    > just float the nav to the left. This seems to work but I
    am wondering why
    > the
    > footer jumped up when I tried to absolutely postion divs
    in the wrapper
    > div.
    > Is there a way to not make the footer jump up and also
    what is the
    > standard way
    > of doing this?
    >

  • Adding a Layer (absolute position div) to a locked page

    Maybe I am just not understanding templates but I have a
    really simple one that has one editable region called "content". I
    want to add a absolute positioned div to the content area but DW
    tells me this would require changing code that is locked by the
    template. I thought that the editable area automatically put in by
    DW would accommodate the added code (css) that DW puts in when
    adding a template to the page.
    So what is the Editable area called "Head" used for anyways
    if not for situations like this?
    Thanks

    Here's the problem with layers in template child pages, and a
    simple
    solution.
    When you DRAG a layer onto the page in DW (this means you
    click on the layer
    icon in the Insert Toolbar and drag the layer on the page),
    DW wants to put
    the code for that layer immediately under the body tag, e.g.,
    BEFORE DRAG -
    <body...>
    <table>
    AFTER DRAG -
    <body ...>
    <div id="foo" style="position:absolute; ...>LAYER
    STUFF</div>
    <table>
    In a template child page, this region is usually not part of
    your editable
    region, and so the layer's code is rejected by the template
    engine. This is
    a bad thing.
    If instead of dragging the layer onto the page, you use
    INSERT | Layer, that
    should work provided your cursor is in an editable region,
    but since
    editable regions are usually within tables or other layers,
    you have just
    broken one of the rules listed above. This is also a bad
    thing.
    THE SOLUTION -
    Open your template page in DW, and create a special place
    where it is SAFE
    to put your layers. In code view, find this -
    </body>
    and click so that your cursor insertion point is just to the
    left of
    </body>.
    Now, use INSERT | Template Objects > Editable Region, and
    name this region
    "Layer Pad" or something like that.
    When you save your template page, all your child pages will
    now have the
    LayerPad editable region on them.
    THE BIG FINISH -
    On any child page where you need a layer, just click in this
    editable
    region, and use INSERT | Layer. Bada bing, bada boom.
    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
    ==================
    "htown" <[email protected]> wrote in message
    news:[email protected]...
    > Maybe I am just not understanding templates but I have a
    really simple one
    > that
    > has one editable region called "content". I want to add
    a absolute
    > positioned
    > div to the content area but DW tells me this would
    require changing code
    > that
    > is locked by the template. I thought that the editable
    area automatically
    > put
    > in by DW would accommodate the added code (css) that DW
    puts in when
    > adding a
    > template to the page.
    >
    > So what is the Editable area called "Head" used for
    anyways if not for
    > situations like this?
    >
    > Thanks
    >
    >

  • Create a Navigational Hierarchy for filtering with the Table API

    Hello,
    I've built a WAD report acourding to the how to document: "Create a Navigational Hierarchy for filtering with the Table API".
    It works great but i dont know How to make the hirarchey to show the key and the text.
    Please Advice.
    David

    Hi Kenneth,
    please have a look in the source of the executed Web Application. What is inside of the <div> with the id filter?
    You should also find a td tag with id hier_xyz with xyz the filter inside of the <div>-Tag with id filter.
    Also check whether you have a javascript error.
    Have a look on the Javascript function set_style. Perhaps you can paste it here, than I can have a look.
    Heike

  • Help with UPDATE table and database RELATIONSHIPS

    HI there, I have been trying to create an update table for
    weeks now and keep getting error messages.
    The database has a table named:
    "books" in the table cells are "idbook" and "book".
    "suppliers" in the table cells are "idsupplier" and
    "supplierName".
    "category" in the table cells are "idcategory" and
    categoryName"
    They all have a relationships with this table:
    "results" in the cells are "idbook", "idsupplier" and
    "idcategory".
    This "results" table brings all of the above tables together.
    When I try to do an update, i am doing one to the results
    table. Is this correct?
    The updates have problems because when drawing the text to
    the update table to view it comes in text form.
    When trying to update, it wont becuase all of the cells in
    the results table are numeric. This is because of the
    relationships.
    Can anyone suggest where i may be going wrong.
    Ask anything you need to.
    TA

    MM_editCmd.CommandText = MM_editQuery
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    If (MM_editRedirectUrl <> "") Then
    Response.Redirect(MM_editRedirectUrl)
    End If
    End If
    End If
    %>
    <%
    Dim Recordset1__MMColParam
    Recordset1__MMColParam = "1"
    If (Session("MM_UserName") <> "") Then
    Recordset1__MMColParam = Session("MM_UserName")
    End If
    %>
    <%
    Dim Recordset1
    Dim Recordset1_numRows
    Set Recordset1 = Server.CreateObject("ADODB.Recordset")
    Recordset1.ActiveConnection = MM_connSeek_STRING
    Recordset1.Source = "SELECT * FROM Query1 WHERE UserName = '"
    + Replace(Recordset1__MMColParam, "'", "''") + "'"
    Recordset1.CursorType = 0
    Recordset1.CursorLocation = 2
    Recordset1.LockType = 1
    Recordset1.Open()
    Recordset1_numRows = 0
    %>
    <%
    Dim rsUpdate
    Dim rsUpdate_numRows
    Set rsUpdate = Server.CreateObject("ADODB.Recordset")
    rsUpdate.ActiveConnection = MM_connSeek_STRING
    rsUpdate.Source = "SELECT * FROM tblSpecies"
    rsUpdate.CursorType = 0
    rsUpdate.CursorLocation = 2
    rsUpdate.LockType = 1
    rsUpdate.Open()
    rsUpdate_numRows = 0
    %>
    <%
    Dim Repeat1__numRows
    Dim Repeat1__index
    Repeat1__numRows = -1
    Repeat1__index = 0
    Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
    %>
    <html>
    <head>
    <link href="css%20files/paragraph.css" rel="stylesheet"
    type="text/css">
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
    Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
    i<a.length; i++)
    if (a
    .indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
    //-->
    </script>
    </head>
    <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0"
    marginwidth="0" marginheight="0"
    onLoad="MM_preloadImages('images/Publicationb.gif','images/Factsheetsb.gif')">
    <table width="100%" height="100%" border="1"
    cellpadding="0" cellspacing="0" bordercolor="#5D5D5D">
    <tr>
    <td colspan="2">
    <div align="right"></div>
    <div align="left"></div>
    </td>
    </tr>
    <tr>
    <td colspan="2"><table width="100%" height="100%"
    border="0" cellpadding="0" cellspacing="0"
    bordercolor="#5D5D5D">
    <tr>
    <td valign="top"><form
    ACTION="<%=MM_editAction%>" METHOD="POST" name="form1">
    <table width="90%" border="0" align="center"
    cellpadding="0" cellspacing="0">
    <tr>
    <td valign="top"><div
    align="center"></div> <table border="1" align="center"
    cellpadding="2" cellspacing="0" bordercolor="#FFFFFF">
    <tr bgcolor="ECECD7">
    <td colspan="2"><div align="center">
    <p><strong><font size="3">Update Key Word
    &amp; Category</font></strong></p>
    </div>
    </td>
    </tr>
    <tr>
    <td><div align="center">
    <p><font size="1">Enter Up to 10 Species /
    Product
    Name</font></p>
    </div>
    </td>
    <td><div align="center">
    <p><font size="1">Select a
    Category</font></p>
    </div>
    </td>
    </tr>
    <tr>
    <td colspan="2" bordercolor="#D0D09D">
    <%
    While ((Repeat1__numRows <> 0) AND (NOT
    Recordset1.EOF))
    %>
    <table width="100%" border="0" cellspacing="0"
    cellpadding="0">
    <tr><td width="50%"><div align="center">
    <input name="f1" type="text" id="f13"
    value="<%=(Recordset1.Fields.Item("TimberSpecies").Value)%>"
    size="33">
    </div></td>
    <td width="45%"><div
    align="center"></div></td></tr></table>
    <%
    Repeat1__index=Repeat1__index+1
    Repeat1__numRows=Repeat1__numRows-1
    Recordset1.MoveNext()
    Wend %>
    <div align="center"> </div> <div
    align="center">
    </div></td></tr><tr>td
    colspan="2"> </td></tr><tr><td
    colspan="2"><div align="right"><p><font
    size="1">To Finalise Your Changes Please Press the Update
    Button      
    <input name="update2" type="submit" id="update"
    value="Update">
    <input type="hidden" name="MM_update" value="form1">
    <input type="hidden" name="MM_recordId" value="<%=
    rsUpdate.Fields.Item("TimberSpecies").Value %>">

  • What is the best approach to handle multiple FK with single table.

    If two tables are joined with each other with more than one ways, for example
    MAIN table is (col1, col2,....coln, person_creator_id, person_modifier_id)
    PERSON table is (person_id, name, address,........ phone) etc
    At database level PERSON_CREATOR_FK and PERSON_MODIFIER_FK are defined.
    Objective is to create a report that shows
    col1, col2...coln, person creator name, person modifier name
    If above two objects are imported with FKs in a EUL and discoverer plus is used to create above report. On first inclusion of person name discoverer plus will ask you to pick the join (provided the checkbox to disable this feature is not checked). Once you pick 'person creator' join it will never allow you to pick person modifier name.
    One solution is two create a custom folder with query like
    select col1, col2,...coln,
    pc.name, pc.address,.... pc.phone
    pm.name, pm.address,.... pm.phone
    from main m,
    person pc,
    person pm
    where m.person_id_creator = pc.person_id
    and m.person_id_modifier = pm.person_id
    Second solution is to import the PERSON folder twice in EUL (optionally named one as perosn_creator and other as person_modifier) and manually define one join per table. i.e. join MAIN with PERSON_CREATOR on person_creator_fk and join MAIN with PERSON_MODIFIER table using person_modifier_fk.
    Now discoverer plus will let you drag Name from each person folder without needing to resolve multiple joins.
    Question is, what approach is better OR is there a better way?
    With solution 1 you will not be able to use functions on folder items.
    With solution 2 there is a EUL design overhead of including same object multiple times and then manually defining all join (or deleting unwanted joins), and this could be a problem when you have person_modifier and person_creator in nearly all tables. It could be more complicated if person table is further linked other tables and users want to see that information too. (for instance, if person address is stored in LOCATION table joined with location_id and user want to see both creator address and modifier address....now you will have to create multiple LOCATION folders).
    A third solution could be to register a function in discoverer that return person name when person_id is passed. This will work perfectly for above requirement but a down side is the report will run slower if they need filters on person names (then function will be used in where clause). Also, this solution is very specific to above scenario, it will not work if you want the report developer the freedom to pick any attribute from person table (lets say, person table contain 50 attributes then its not a good idea to register 50 functions).
    Any comments/suggestion will be appreciated.
    thanks

    Hi
    In a roundabout way you have really answered your own question :-)
    In my opinion, the best approach, although by all means not the only approach - see below) would be to have the object loaded as two folders with one join going to the first folder and the second join to the other folder. You would of course name the folders appropriately.
    Here's a workflow that I use all of the time and one that I teach when I'm giving Discoverer Administrator training. It might help you:
    1. Bring in the PERSON folder to begin with
    2. Make all necessary adjustments to bring it up to deployment standard. These adjustments would be: folder name (E.g PERSON_CREATOR), item names, item placement, default positions, default aggregation and so on.
    3. Create or assign the required lists of values
    4. Create any required calculations
    5. Create any required conditions
    6. Create the first join from this folder to MAIN.
    7. Click on the heading for the folder and press CTRL-C.
    8. Click on the heading for the business area and press CTRL-V. A second copy of the folder, complete with all of the adjustments you made earlier will be inserted into the business area.
    Note: joins are not copied, everything else is.
    9. Rename this folder to say PERSON_MODIFIED
    10. Rename the items as appropriate
    11. Add a join from this folder to MAIN - you're done
    Other ideas that I have used and work well would be to use a database view or create a complex folder. Either will work, In both cases you would need to join on some other column other than the ones you referred earlier.
    I hope this helps
    Best wishes
    Michael

  • Problem with a Table Control Scroll Down.

    Hi,
    I´m working with a table control in which I select one of the many lines the table contains and I move it into a structure, I delete the data of the table control internal table and I move the selected line back into the internal table to show only that record. My problem is the following:
    Whenever I have to scroll down to select a line, the selected line doesn´t appear afterwards. I believe that it´s because the scroll bar disappears and keeps on showing the line where the record I selected used to be and because the selected record is added in the fist line of the TC.
    Is there any way of avoiding the disappearrance of the vertical scroll bar? Or how can I show the record added in the first line if the TC only displays the position where the selected record used to be?
    This is the logic I use to show the single record.
      READ TABLE TI_ASIGLOT WITH KEY PUSH = 'X'.
      IF SY-SUBRC = 0.
        MOVE-CORRESPONDING TI_ASIGLOT TO ST_ASIG.
        CLEAR TI_ASIGLOT.
        REFRESH TI_ASIGLOT.
        MOVE-CORRESPONDING ST_ASIG TO TI_ASIGLOT.
        ST_ASIG-CPEND = ST_ASIG-GAMNG.
        MOVE ST_ASIG-CPEND TO TI_ASIGLOT-CPEND.
        APPEND TI_ASIGLOT.
    Thank´s and regards.
    Lucila

    Well, I´m going to anwser my own question. The problem was that in my TC the top field value was the line number of the record I've selected. So the only thing I had to do to fix it was to asign 1 to the field TC-top_line inside the form where I select the record.
      READ TABLE TI_ASIGLOT WITH KEY PUSH = 'X'.
      IF SY-SUBRC = 0.
        MOVE-CORRESPONDING TI_ASIGLOT TO ST_ASIG.
        CLEAR TI_ASIGLOT.
        REFRESH TI_ASIGLOT.
        MOVE-CORRESPONDING ST_ASIG TO TI_ASIGLOT.
        ST_ASIG-CPEND = ST_ASIG-GAMNG.
        MOVE ST_ASIG-CPEND TO TI_ASIGLOT-CPEND.
        APPEND TI_ASIGLOT.
        W_INI = 1.
      ELSE.
        MESSAGE I889(100) WITH TEXT-T07.
        EXIT.
      ENDIF.
    z_result-top_line = 1.
    (z_result is my TC )
    Best regards,
    Lucila

  • Position of columns in a table

    Hello,
    please help me on how to set the position of columns for a table not for a alv-table at a runtime via coding.
    How can we change the positions in ABAP?
    Regards
    Beserithan

    Hi,
    I don't see any partcular method in cl_wd_table_column class for setting column position ( in ALV for class cl_salv_wd_column we have one method for this set_postion ).
    What you can do probably as a workaround is to remove all columns (remove_all_columns of cl_wd_table ) nad then add columns again in code ( new_table_column method of class cl_wd_table_column and then using add_column of cl_wd_table) in whatever order you want.
    Let's see if others can come up with some straightforward solution.
    Regards
    Manas Dua
    Edited by: Manas Dua on Apr 9, 2010 7:24 PM
    Edited by: Manas Dua on Apr 9, 2010 7:53 PM

  • Working in a doc with inline tables uses 80% of my CPU

    Hi everyone,
    I'm using Pages 4.0.4, and typing (in table, around table, any where) slows to a crawl when I my document contains inline tables. Using Activity Monitor, I can see my CPU usage jump to 80% when I type in a Pages document with inline tables. It stays at 8% as I type with the very same tables positioned as floating.
    I'm working on a six-page document with four or five tables (one of which is a yearly calender with lots of small columns and rows). There are no other fonts besides Helvetica 12pt, and nothing but alphanumeric characters. I've experienced this slowdown before, but I've always put up with it. Now, it's just driving me crazy!
    I've tried...
    * Validating all my fonts - I found 40-ish minor errors (mostly duplicate font errors), but I didn't know how to fix them.
    * Thinning the tables - I read that thinning inline tables so they don't run margin-to-margin can help. It didn't.
    If I had to guess, I'd say Pages runs layout calculations with each keystroke so objects can flow with the text. Is there a setting or preference I'm missing to do this less often?
    I could float the tables, but every time I change the text above them I have to reposition all of them. I love Pages, and I hate to return to MS Office. However, this slowdown is a deal breaker for me. Any ideas?
    Thanks!
    Jack
    PS - If it helps, I experience the same type of slowdown with Numbers. If the table exceeds several rows by several columns, typing, copying & pasting, etc take forever! I've read that that's because Numbers recalculates the entire sheet with every event, but that seems pretty drastic.

    jstewmc wrote:
    Hi everyone,
    I'm using Pages 4.0.4, and typing (in table, around table, any where) slows to a crawl when I my document contains inline tables. Using Activity Monitor, I can see my CPU usage jump to 80% when I type in a Pages document with inline tables. It stays at 8% as I type with the very same tables positioned as floating.
    I'm working on a six-page document with four or five tables (one of which is a yearly calender with lots of small columns and rows). There are no other fonts besides Helvetica 12pt, and nothing but alphanumeric characters. I've experienced this slowdown before, but I've always put up with it. Now, it's just driving me crazy!
    I've tried...
    * Validating all my fonts - I found 40-ish minor errors (mostly duplicate font errors), but I didn't know how to fix them.
    * Thinning the tables - I read that thinning inline tables so they don't run margin-to-margin can help. It didn't.
    If I had to guess, I'd say Pages runs layout calculations with each keystroke so objects can flow with the text. Is there a setting or preference I'm missing to do this less often?
    I could float the tables, but every time I change the text above them I have to reposition all of them. I love Pages, and I hate to return to MS Office. However, this slowdown is a deal breaker for me. Any ideas?
    Thanks!
    Jack
    PS - If it helps, I experience the same type of slowdown with Numbers. If the table exceeds several rows by several columns, typing, copying & pasting, etc take forever! I've read that that's because Numbers recalculates the entire sheet with every event, but that seems pretty drastic.
    What you describe is perfectly consistent with what you read (I recognized what I wrote).
    If tables are floating, they don't move when the text layer is edited. So they have no impact upon recalculations.
    When they are inline, the app is so dumb that it behave as if it was recalculating from the very beginning which of course, with these embedded items, requires a lot of time.
    AppleWorks designers made a better work on this point but they were old-fashioned ones.
    They offered two interesting features :
    (a) recalculate only what was really needed
    (b) in the Spreadsheet, they gave a menu item allowing us to stop/activate recalculations
    Alas, I'm not sure that iWork designers ever open AppleWorks.
    Yvan KOENIG (VALLAURIS, France) mercredi 23 février 2011 11:04:38

  • Drag a column from one position to another within the table.

    Hello All,
    In Web Dynpro Java, Is it possible to provide user a functionality with which he/she can move the columns of a table from one position to another ?
    Scenario : Users want flexibility to decide the location the columns as per their convinience while they are working with the application.
    So can we develop some code or can we use some UI element so that user is able to drag a column from one position to another within the table.
    Regards
    Mrinalini.

    Hi Mrinalini,
    Yes this is possible you can try to move the table columns (Change the order). for this you don't need to do additional coding or property change its a default property for web Dynpro java tables.
    Regards
    Jeetendra

  • Flex 4, is it possible to populate a tree component with sqlite table data?

    is it possible to populate a tree component with sqlite table data?
    If it is, how would I go about doing this?
    Thanks
    Kristin

    Hi Mustafa,
    it is true, the function can return component as type. This is more for the scenario, when you want to recognize some component based on some checks, eg.
    if(something)
    return CHECKBOX_1;
    else
    return CHECKBOX_2;
    so, the use case exists for sure. But of course the application itself is static.
    where do you see a scenario for dynamic creation of components?
    The only one component which can instantiate new components is the SplitCellContainer, and this is restricted to the drag&drop action from Fragment Bookmark Gallery. And this is again restricted to containers, as Fragment can hold containers as parent component. Of course the container content will be created/instantiated as well (I have coded example with ComponentManager in the Community SDK: Second Functional Application with SDK Components (Online Composition v.2) blog).
    As far I know there is no function in SplitCellContainer which would "simulate" the drop of a Fragment today (perhaps worth an Idea on this?). Having that - the scenario would be possible. Today, this can be made partly - but the user would need to drag&drop a prepared fragment with the component.
    Anyway, the problems will start after the creation - then it would be require to have also functions to re-position the new created component in some other container - this would be complex probably.
    Karol

  • Security based on the position and responsibility of Siebel tables.

    Hi Forum,
    We have a requirement to show some reports based on OLTP (Siebel Base tables with S_) tables. so we have created a repository and created few reports in OBIEE.
    Now we want to implement security based on these tables. Like siebel users will be accessing these reports, So how do we implement security based on the position and responsibility of Siebel tables.
    I request to share any links or docs pertaining to above mentioned implementation.
    Thanks

    Could be interference
    AirPort and Bluetooth: Potential sources of wireless interference
    Try:
    - Reseting the BT headset
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset network settings: Settings>General>Reset>Reset Network Settings. You will have to rejoin all wifi networs and re-pair all BT devices

  • Div tab with no carige return, is it possible?

    HI! Is it possible to have a div tag with no carriage return,
    I notice that
    if we have an text or an image and insert an div tag with
    content in it that
    in code view it will automatically add a carriage return (
    meaning that in
    design view that text or image is not in line with the
    content of the div
    tag).
    Is there a way around this. ( perhaps css? but how?).
    Paul

    Murray *ACE* wrote:
    > You're welcome, Paul.
    >
    >
    > "Paul" <[email protected]> wrote in message
    > news:[email protected]...
    >> Murray *ACE* wrote:
    >>> A block element (table, div, h#, hr, p, etc.)
    forces a new line on the
    >>> page within its container. An inline element
    does not. That's why you
    >>> can have adjacent images but not adjacent tables
    (using default
    >>> placements) or adjacent paragraphs. Thus, in the
    flow of the code on
    >>> the page, block elements begin on a new line,
    and push subsequent
    >>> content to a new line. But there is no carriage
    return involved - it's
    >>> just the way the page works.
    >>> By floating the block element, you 'remove it
    from the flow' in a way
    >>> that
    >>> does NOT necessarily force subsequent content to
    a new line. Multiple
    >>> adjacent divs, each floated left, will align
    across the page like
    >>> soldiers.... 8)
    >>>
    >>> Of course, you would have to clear the float
    afterwards to avoid layout
    >>> problems further down the page.
    >>>
    >>>
    >>> "Paul" <[email protected]> wrote in
    message
    >>> news:[email protected]...
    >>>> Murray *ACE* wrote:
    >>>>> That would be one way. A better way
    would be to float the div,
    >>>>> leaving it
    >>>>> as a block element.
    >>>>>
    >>>>> div { float:left; }
    >>>>>
    >>>>> And there is no carriage return at all.
    All block elements sit on
    >>>>> their
    >>>>> own line - that's how HTML works.
    >>>>>
    >>>>>
    >>>>> "Paul" <[email protected]>
    wrote in message
    >>>>>
    news:[email protected]...
    >>>>>> Paul wrote:
    >>>>>>> HI! Is it possible to have a div
    tag with no carriage return, I
    >>>>>>> notice
    >>>>>>> that if we have an text or an
    image and insert an div tag with
    >>>>>>> content
    >>>>>>> in it that in code view it will
    automatically add a carriage return
    >>>>>>> ( meaning that in design view
    that text or image is not in line with
    >>>>>>> the
    >>>>>>> content of the div tag).
    >>>>>>>
    >>>>>>> Is there a way around this. (
    perhaps css? but how?).
    >>>>>>>
    >>>>>>> Paul
    >>>>>>
    >>>>>> HI! all, the solution to this and
    other block elements is to use CSS,
    >>>>>> you
    >>>>>> can specify a DIV to be an inline
    element.
    >>>>>>
    >>>>>> example:
    >>>>>>
    >>>>>> div {
    >>>>>> display: inline;
    >>>>>> vertical-align: bottom;
    >>>>>> }
    >>>>>>
    >>>>>> This will align text and a div next
    to it without a carriage return
    >>>>>> or line break.
    >>>>>>
    >>>>>> Here is another example of a block
    element behaving like an inline
    >>>>>> element.
    >>>>>>
    >>>>>> h1 { display: inline; }
    >>>>>>
    >>>>>> Well that's it. Hope this helps
    someone :)
    >>>>>>
    >>>>>> Paul
    >>>>
    >>>> HI! Thanks murray. btw what do you mean by
    "All block elements sit on
    >>>> their own line" as oppose to others that
    don't?
    >>>> can you explain a bit more. :)
    >>>>
    >>>> Paul
    >>
    >> HI! Thanks alot for the explanation. :)
    >>
    >> Paul
    HI! for some reason it did work with the code that I am
    using. I am using
    swfobject to insert a flash button. the swf code is using a
    div and when I
    tried using the float option the button was not displayed at
    all. I have
    inserted the swf code at the bottom.
    What I tried instead was to create a name for the tag
    selector and use it on
    the div that holds the flash button to be inlined.
    div.inlineflashcontent {
    display: inline;
    vertical-align: bottom;
    float: none;
    This way only the that div will be inlined. below is the swf
    code that I am
    using for the flash insertion. Do you know why the float
    option does not
    work with the code below?
    Paul
    ***********SWF code and script for flash insertion
    <div class="inlineflashcontent" id="flashcontent">
    Error! You either have jscript turned off or you do not have
    a flash
    plugin.<BR>
    <a href="Errors_warnings/flash_
    not_detected.asp">Click here to get
    plugin.</a></div>
    <script type="text/javascript">
    // <![CDATA[
    var so = new SWFObject("chat_goto_button.swf", "fotester",
    "83", "12",
    "8.0.22", "#FFFFFF", true);
    so.addVariable("flashVarText", "this is passed in via
    FlashVars");
    so.addParam("wmode", "transparent");
    so.write("flashcontent");
    // ]]>
    </script>
    ***************End of SWF code***************

  • Performance issues with pipelined table functions

    I am testing pipelined table functions to be able to re-use the <font face="courier">base_query</font> function. Contrary to my understanding, the <font face="courier">with_pipeline</font> procedure runs 6 time slower than the legacy <font face="courier">no_pipeline</font> procedure. Am I missing something? The <font face="courier">processor</font> function is from [url http://www.oracle-developer.net/display.php?id=429]improving performance with pipelined table functions .
    Edit: The underlying query returns 500,000 rows in about 3 minutes. So there are are no performance issues with the query itself.
    Many thanks in advance.
    CREATE OR REPLACE PACKAGE pipeline_example
    IS
       TYPE resultset_typ IS REF CURSOR;
       TYPE row_typ IS RECORD (colC VARCHAR2(200), colD VARCHAR2(200), colE VARCHAR2(200));
       TYPE table_typ IS TABLE OF row_typ;
       FUNCTION base_query (argA IN VARCHAR2, argB IN VARCHAR2)
          RETURN resultset_typ;
       c_default_limit   CONSTANT PLS_INTEGER := 100;  
       FUNCTION processor (
          p_source_data   IN resultset_typ,
          p_limit_size    IN PLS_INTEGER DEFAULT c_default_limit)
          RETURN table_typ
          PIPELINED
          PARALLEL_ENABLE(PARTITION p_source_data BY ANY);
       PROCEDURE with_pipeline (argA          IN     VARCHAR2,
                                argB          IN     VARCHAR2,
                                o_resultset      OUT resultset_typ);
       PROCEDURE no_pipeline (argA          IN     VARCHAR2,
                              argB          IN     VARCHAR2,
                              o_resultset      OUT resultset_typ);
    END pipeline_example;
    CREATE OR REPLACE PACKAGE BODY pipeline_example
    IS
       FUNCTION base_query (argA IN VARCHAR2, argB IN VARCHAR2)
          RETURN resultset_typ
       IS
          o_resultset   resultset_typ;
       BEGIN
          OPEN o_resultset FOR
             SELECT colC, colD, colE
               FROM some_table
              WHERE colA = ArgA AND colB = argB;
          RETURN o_resultset;
       END base_query;
       FUNCTION processor (
          p_source_data   IN resultset_typ,
          p_limit_size    IN PLS_INTEGER DEFAULT c_default_limit)
          RETURN table_typ
          PIPELINED
          PARALLEL_ENABLE(PARTITION p_source_data BY ANY)
       IS
          aa_source_data   table_typ;-- := table_typ ();
       BEGIN
          LOOP
             FETCH p_source_data
             BULK COLLECT INTO aa_source_data
             LIMIT p_limit_size;
             EXIT WHEN aa_source_data.COUNT = 0;
             /* Process the batch of (p_limit_size) records... */
             FOR i IN 1 .. aa_source_data.COUNT
             LOOP
                PIPE ROW (aa_source_data (i));
             END LOOP;
          END LOOP;
          CLOSE p_source_data;
          RETURN;
       END processor;
       PROCEDURE with_pipeline (argA          IN     VARCHAR2,
                                argB          IN     VARCHAR2,
                                o_resultset      OUT resultset_typ)
       IS
       BEGIN
          OPEN o_resultset FOR
               SELECT /*+ PARALLEL(t, 5) */ colC,
                      SUM (CASE WHEN colD > colE AND colE != '0' THEN colD / ColE END)de,
                      SUM (CASE WHEN colE > colD AND colD != '0' THEN colE / ColD END)ed,
                      SUM (CASE WHEN colD = colE AND colD != '0' THEN '1' END) de_one,
                      SUM (CASE WHEN colD = '0' OR colE = '0' THEN '0' END) de_zero
                 FROM TABLE (processor (base_query (argA, argB),100)) t
             GROUP BY colC
             ORDER BY colC
       END with_pipeline;
       PROCEDURE no_pipeline (argA          IN     VARCHAR2,
                              argB          IN     VARCHAR2,
                              o_resultset      OUT resultset_typ)
       IS
       BEGIN
          OPEN o_resultset FOR
               SELECT colC,
                      SUM (CASE WHEN colD > colE AND colE  != '0' THEN colD / ColE END)de,
                      SUM (CASE WHEN colE > colD AND colD  != '0' THEN colE / ColD END)ed,
                      SUM (CASE WHEN colD = colE AND colD  != '0' THEN 1 END) de_one,
                      SUM (CASE WHEN colD = '0' OR colE = '0' THEN '0' END) de_zero
                 FROM (SELECT colC, colD, colE
                         FROM some_table
                        WHERE colA = ArgA AND colB = argB)
             GROUP BY colC
             ORDER BY colC;
       END no_pipeline;
    END pipeline_example;
    ALTER PACKAGE pipeline_example COMPILE;Edited by: Earthlink on Nov 14, 2010 9:47 AM
    Edited by: Earthlink on Nov 14, 2010 11:31 AM
    Edited by: Earthlink on Nov 14, 2010 11:32 AM
    Edited by: Earthlink on Nov 20, 2010 12:04 PM
    Edited by: Earthlink on Nov 20, 2010 12:54 PM

    Earthlink wrote:
    Contrary to my understanding, the <font face="courier">with_pipeline</font> procedure runs 6 time slower than the legacy <font face="courier">no_pipeline</font> procedure. Am I missing something? Well, we're missing a lot here.
    Like:
    - a database version
    - how did you test
    - what data do you have, how is it distributed, indexed
    and so on.
    If you want to find out what's going on then use a TRACE with wait events.
    All nessecary steps are explained in these threads:
    HOW TO: Post a SQL statement tuning request - template posting
    http://oracle-randolf.blogspot.com/2009/02/basic-sql-statement-performance.html
    Another nice one is RUNSTATS:
    http://asktom.oracle.com/pls/asktom/ASKTOM.download_file?p_file=6551378329289980701

Maybe you are looking for

  • Oracle 10g Express Edition

    Hi All, A newbie quesion. I have Oracle 8i in my laptop, I want to install Oracle 10g Express edition, can i have both together ? Regards Ravi Kumar

  • How do we create custom flags to show/hide navigation menus?

    Hi, I need to set a custom flag which allows me to hide/show navigation menus to users. These flags are declared in dynamicdata MenuItemFlagDefinitions and are used in dynamicdata CoreMenuItemsFlags, but I do not know were they are defined.. For inst

  • JcomboBox + FOR - problem

    Hi, I try changing this code: ArrayList<String> tmp = new ArrayList<String>(); tmp.add(numbertext.getText()); for(String temp1 : tmp) System.out.println("a="+temp1.toString()); <b> Legend: </b> numbertext is a JtextField.for JComboBox using FOR but i

  • Packing logic in outbound delivery VL01N

    Hi All,       We are creating outbound delivery using BDC. I am facing problem, while packing.       Tcode : VL01n       Screen  PACK (SHIFT + F6 )      Tab        PACK MATERIAL              I am building the whole packing logic in BDC.       Steps  

  • Show photos in subfolders

    Hi, What I would like to see in the LR4 is to have an option to show photos in subfolders on each collection set / folders / smart collections. Now you either show all or none. -Terje