Width between rows in a table

Hi,
I have created two tables, one in the main window and one in the secondary window. However the width between the lines is too much for the secondary. What determines the width of the lines between rows?also When i select a pattern for the table, the outer box does not appear even if i select the option Outer frame. Is it not possible to put a box around a table?

you can set the width of table columns by right click on the table to get the properties of the table in rtf

Similar Messages

  • Trouble with space between rows

    My problem is basically this: space keeps appearing between rows in my table when I preview my page in a browser. The design view of Dreamweaver displays it without the space (like I want it), but when I take a look in either Firefox or Internet Explorer, this undesirable space shows up.
    I have spent hours scouring the internet looking for the solution to my problem, and none of them seem to do the trick. I have cellpadding="0" cellspacing="0" inside the table tag, which prooved to be the answer for others when they had this same problem, but it still hasn't fixed my problem. My CSS also specifies no margin on the top or bottom of the ul and the li.
    Anyway, if you could take a peek and give me some pointers, I would really appreciate it.
    Thanks.
    Here's the html:
    Home
    About
    Work
    Blog
    Shop
    Contact
    Welcome to the all new amoterocreative.com    News Title    Insert pithy comments, images, and other novelties here.
    Twitter feed here
    Let's Talk.     
    Phone: 417.622.7432
    Email: address (at) website.com
    Contact Form: Click Here
    Let's network.</ h5>
    Facebook
    Twitter
    LinkedIn
    And the CSS:
    <style type="text/css">
    /*NAVIGATION*/
    ul
    list-style-type:none;
    line-height: 1;
    margin-top:0;
    margin-bottom:0;
    /* li */.navli
    display:inline;
    margin-top:0;
    margin-bottom:0;
    /* h1 */.nav
    font-family:Helvetica, sans-serif;
    background-color:#006738;
    text-align:center;
    .nav:link {color:#ffffff;text-decoration:none;} /* unvisited link */   
    .nav:visited {color:#ffffff;text-decoration:none;} /* visited link */
    a:hover {background-color:#4D9574;} /* mouse over link */
    .nav:active {color:#4D9574;} /* selected link */
    /* Body Text*/
    h2
    font-family:Helvetica, sans-serif;
    font-size:1.875em;
    text-indent;0px;
    color:#000000;
    }/* 30px/16=1.875em */
    h3
    font-family:Helvetica, sans-serif;
    font-size:24px;
    text-indent;0px;
    color:#000000;
    }/* 30px/16=1.875em */
    /* p */.bodytxt
    font-family:"Trebuchet MS", sans-serif;
    font-size:14px;
    text-indent:20px;
    color:#7E7E7E;
    /* Sidebar */.side
    background-color:#006738;
    font-family:"Trebuchet MS", sans-serif;
    font-size:14px;
    text-indent:20px;
    color:#ffffff;
    .ftnav:link {color:ffffff;text-decoration:none;} /*unvisited link*/
    .ftnav:visited {color:ffffff;text-decoration:none;} /*visited link*/
    /* Body Background */
    .bdy
    background-color:#d1d1d1;
    /* footer */.foot
    background-color:#4C4C4C;
    font-family:"Trebuchet MS", sans-serif;
    font-size:14px;
    text-indent:20px;
    color:#ffffff;
    </style>

    let me post that html again
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <!-- Meta Tags -->   
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="description" content="A. M. Otero Creative, Anthony Otero's very own freelance business. Specializing in graphic design, photography, and illustration."/>
        <meta name="keywords" content="Anthony Otero, Anthony Michael Otero, A. M. Otero, AMOtero, amotero, Tony Otero, Creative, Design, Designer, Photography, Photographer, Illustration, Illustrator, Joplin Missouri, Joplin, Carthage, Springfield, Missouri" />
        <meta name="author" content="Anthony Otero of amoterocreative.com" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- Title -->
    <title>A. M. Otero Creative | Home</title>
    <!-- CSS -->
    <link rel="stylesheet" type="text/css" href="../CSS/amoterocreative.css">
    </head>
    <body class="bdy">
    <table width="800" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tr><td colspan="4"><img src="../images/head.jpg"/></td></tr>
    <!-- Navigation -->
    <tr><td colspan="4"><div><ul class="nav"><h1 class="nav">
          <li class="navli"><a class="nav" href="home.html">Home</a></li>   
          <li class="navli"><a class="nav" href="about.html">About</a></li>   
          <li class="navli"><a class="nav" href="work.html">Work</a></li>   
          <li class="navli"><a class="nav" href="blog.html">Blog</a></li>   
          <li class="navli"><a class="nav" href="shop.html">Shop</a></li>   
          <li class="navli"><a class="nav" href="contact.html">Contact</a></li></h1></ul></div></td></tr>
    <tr><td colspan="4"><img src="../images/page_photos/lightning.jpg"/></td></tr>
      <!-- Main Content -->
      <tr><td ></td><td colspan="2" valign="top"><p class="bodytxt">Welcome to the all new amoterocreative.com</p>
        <h2>News Title</h2>
        <p class="bodytxt">Insert pithy comments, images, and other novelties here.</p>
    </td>
      <!-- Sidebar -->
      <td valign="top" class="side"><p>Twitter feed here</p></td>
      </tr>
      <!-- Footer -->
      <tr>
        <td class="foot" width="23"></td>
        <td width="277" valign="top" class="foot"><h5>Let's Talk.</h5>
          <ul>
            <li>Phone:</li>
            <li>Email: address (at) website.com</li>
            <li>Contact Form: <a class="ftnav" href="contact.html">Click Here</a></li>
          </ul>
        <p></p></td>
        <h5><td class="foot" width="234"><h5>Let's network.</h5>
          <ul>
            <li>Facebook</li>
            <li>Twitter</li>
            <li>LinkedIn</li>
          </ul></td>
    <td width="266" class="foot"></td></tr></table>
    </body>
    </html>

  • How do you adjust space between rows?

    Hi guys. How do you adjust the space between rows. My table have no boarder between rows and no matter how I adjust the row height and cell margin. The generated report will still have the same amount of space between rows. Please help, thanks!

    I had the same problem - I was trying to insert a row solely for spacing purposes, and tried adjusting the size using table properties->row->and setting the row hieght is to "exactly". This didn't work for me. The row still rendered larger than I set the row size. So I tried I changing the font size of the row just using the toolbar, and when I did that and ran the report, the row actually rendered the size I wanted.

  • Fixed width row for lines table

    Hi,
    I have a header and details tables in my template. The problem is that if there is more data for any of the column in lines, the row expands and hence the gap between footer and lines table is disturbed. Because of this reason I am unable to fix number of rows per page for lines. Any guidelines on this will help.
    Thanks in advance,
    Suresh
    P.S. I am a newbie in XML

    Hi,
    Just to confirm this, you are having problems with the height of your table, ie it is expanding vertically down the page, as opposed to the width, expanding horizontally across the page.
    You can fix the height of the table, by selecting the repeating row of the table and going to Table Properties, on the Row tab check the Specify Height box. You can then enter a height for this row. The drop down menu to the right means you specify whether the row should be At Least the specified height, or exactly the specified height.
    You may need to look at nested tables here, but specifying the height of the rows should give you a reasonable starting point.
    Regards,
    Cj

  • Difference between current row and previous row in a table

    Hi All,
    I am having a problem with the query. Can some of please help me?
    I need to get difference between current row and previous row in a table. I have a table, which have data like bellow.
    TABLEX
    ================
    Name Date Items
    AAA 01-SEP-09 100
    BBB 02-SEP-09 101
    CCC 03-SEP-09 200
    DDD 04-SEP-09 200
    EEE 05-SEP-09 400
    Now I need to get output like bellow...
    Name Date Items Diff-Items
    AAA 01-SEP-09 100 0
    BBB 02-SEP-09 101 1
    CCC 03-SEP-09 200 99
    DDD 04-SEP-09 200 0
    EEE 05-SEP-09 400 200
    Can some one help me to write a query to get above results?
    Please let me know if you need more information.
    Thanks a lot in advance.
    We are using Oracle10G(10.2.0.1.0).
    Thanks
    Asif

         , nvl (items - lag (items) over (order by dt), 0)like in
    SQL> with test as
      2  (
      3  select 'AAA' name, to_date('01-SEP-09', 'dd-MON-rr') dt,  100 items from dual union all
      4  select 'BBB' name, to_date('02-SEP-09', 'dd-MON-rr') dt,  101 items from dual union all
      5  select 'CCC' name, to_date('03-SEP-09', 'dd-MON-rr') dt,  200 items from dual union all
      6  select 'DDD' name, to_date('04-SEP-09', 'dd-MON-rr') dt,  200 items from dual union all
      7  select 'EEE' name, to_date('05-SEP-09', 'dd-MON-rr') dt,  400 items from dual
      8  )
      9  select name
    10       , dt
    11       , items
    12       , nvl (items - lag (items) over (order by dt), 0)
    13    from test
    14  ;
    NAM DT             ITEMS NVL(ITEMS-LAG(ITEMS)OVER(ORDERBYDT),0)
    AAA 01-SEP-09        100                                      0
    BBB 02-SEP-09        101                                      1
    CCC 03-SEP-09        200                                     99
    DDD 04-SEP-09        200                                      0
    EEE 05-SEP-09        400                                    200
    SQL>

  • Insert table in between two rows of the table in Web dynpro abap.

    Hi All,
    I have a requirment like this,
    while click on a hide/show button from the first row and last column of the table, want to display  a table(or add some rows to insert data) in between the  rows of the table and insert data in the new table .
    please help me wheather it is possible or not?
    Thanks,
    Raju.

    hi raju....
           if you want to insert rows.... then read the index of the row clicked and then read the node that is bound to the table and insert an empty row at that index and bind it back again....
           if you want another table then make use of table popin.
    --regards,
      alex b justin

  • Table row pagination question: not paginating between rows

    I have a table with 13 rows + 1 header row. Most of the rows contain a single line of text that doesn't wrap, though 4 of the 13 have a single cell with text that wraps (to 3 lines) within the cell. This appears to be just shy of 1/2 page tall. The table is full (single) column width.
    I have the table set as an inline object in the Object Placement inspector tab. (I want it to move with the associated text.)
    In my document, the table is shifting to the top of a new page, leaving about 1/2 page of blank space on the page prior to the table beginning. I don't want this.
    My desired layout is:
    - Start the table immediately after its preceding text
    - Display all the rows it can on that page
    - Re-display the header on the next page
    - Display any remaining rows
    I've tried the following:
    - Checked the Text > More inspector tab to make sure the "Keep lines together" checkbox isn't checked either for the table as a whole (can't be; it's greyed out), or for individual rows (isn't checked.)
    - Tried different Placement > Wrap settings to see if changing it to left/right/above-below affects it (it doesn't);
    - Added additional rows to the table to see if maybe there was just 1 orphan row and Pages didn't want to put 1 orphan on a second page. No go; I grew the table length with a dozen rows to reach 3/4 page in length, and it just kept growing the table (and pushing content) down, but not moving the start of the table "up" to the prior page
    - Added additional rows to the table so that the table itself was > 1 page of rows. This did cause the table to split as I desire, repeating the table header. BUT, it did not move the table up to the prior page as desired.
    - Removed some rows in the table to see if/when Pages would put the table on the prior page (where I want it to be). This worked to move it up earlier, but I do in fact need the removed rows, so this isn't a solution.
    Note that I don't want to split the table manually (if I don't have to), because as I change the content over time, pagination is likely to change, too, and I don't want to have to re-merge the tables when the row-break should change.
    What else should I be looking for? What setting am I missing? Or is Pages (which I mostly love) just not going to let me control where it thinks it wants to start the table?
    Got any other ideas to check?
    -jb

    Jerrold -
    First, thanks for hanging with me on this.
    Second, in re: breaks, no - I already checked that. See:
    Third, in re: removed rows, yes- if I remove the bottom 4 rows, the table snaps back up. See:
    BUT, if I then tab from the bottom-right cell, and add a new row, the table pops back to the next page. See:
    You'll note in the next screen capture that I can add a BUNCH of rows to get it to break across pages for a really-long table; it just won't move my start back up. See:
    This is maddening.... Sigh. Par for the course with iWork; so much promise, yet so immature.

  • Inserting static text in between rows returned from a pivot table

    Is there a way to type static text (eg. “Note that the data for Land has an accuracy of 98%”) in between rows returned from the dataset in the rtf template. The alternative would be to break the BI analysis report (which is the source of the template data) into 2 parts and then insert each part into the template one below the other with the text typed in between.

    Oracle support has confirmed that this requirement is not possible to implement

  • Please!!!!!!   How can i add rows in html table dynamically [use jsp,bean]

    hello, i am a fresher in jsp. i want to add new rows in html table dynamically.In my coding, just only shows in one row . please help my problem with correct coding and i don't want to use database. Thanks ...............!
    Here is my coding-------------------
    ---------------- form.jsp --------------------->
    <%@ page import="java.util.*,newtest1.Validation" %>
    <jsp:useBean id="mybean" scope="page" class="newtest1.Validation" />
    <jsp:setProperty name="mybean" property="name" param="name" />
    <jsp:setProperty name="mybean" property="age" param="age" />
    <% s[i][j] %>
    <html>
    <head><title>Form</title></head>
    <body>
    <form method="get">
    <table border="0" width="700">
    <tr>
    <td width="150" align="right">Name</td>
    <td width="550" align="left"><input type="text" name="name" size="35"></td>
    </tr>
    <tr>
    <td width="150" align="right">Age</td>
    <td width="550" align="left"><input type="text" name="age" size="35"></td>
    </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="5">
    <tr><td> </td></tr>
    <tr><td><input type="submit" name="submit" value="ADD"></td></tr>
    <tr><td> </td></tr>
    <tr><td width="100%" align="center" border=1>
    <% int count=mybean.getStart();
    for(int i=count; i<count+1; i++) { %>
    <tr>
    <td><jsp:getProperty name="mybean" property="name" /></td>
    <td><jsp:getProperty name="mybean" property="age" /></td>
    <td><%= count %></td>
    <% count+=1; %>
    </tr>
    <% } %></td></tr>
    </table>
    </form>
    </body>
    </html>
    ----------------- Validation.java ----------------->
    package newtest1;
    import java.util.*;
    public class Validation {
    private String name;
    private String age;
    static int start=0;
    public Validation() {    name=null;
    age=null;
    ++start;}
    public void setName(String username) { if(username!="")
    name=username;
    public String getName() { return name;  }
    public void setAge(String userage) {  if (age!="")
    {age=userage;}
    public String getAge() {  return age;   }
    public int getStart() {
    return start; }

    Hi, Do you mean to say,
    You have an HTML page in which you have a text field and an add button. If you enter anything in that text field and click on Add button the text field contents should be displayed in the same HTML page and you should be able to go on entering new values into the text field and you should be able to retain and display all the previously entered values..
    and finally the list of added items are not stored in the database..
    If this is the case
    i. Your html form should be submitted to the same page.
    ii. You need to have a Vector which holds the entered values.
    iii. Bind the vector object to the request object and collect the same vector object from the request and display its contents...
    I think this would help...

  • How to delete a row in ADF Table by pressing "Delete" Key

    I want to delete a row in my ADF table by pressing the "Delete" key..How can i achieve it?

    hai ,
    I write clientListener and ServerListener..But in the script i printed the event.getKeyCode() ...*When i press Delete Key or EnterKey ,it is not printing the value*..
    The code i write is pasted below..
    In the code backing_Comm is my backingbean..Is there any problem in the code that i had written?I want to delete a selected row from my table using keypress Event...pls advice..
    <script type="text/javascript">
    onPressDeleteKey=function(event){
    alert(event.getKeyCode()); // *Here i am not getting the alert, when i press Delete Key or Enter Key..But getting alert when i press A- Z or 1 - 0*
    if(event.getKeyCode()==AdfKeyStroke.ENTER_KEY) {
    var source = event.getSource();
    AdfCustomEvent.queue(source,performDeleteOnPress,{},false);
    </script>
    <*af:table* value="#{bindings.ComMastVO.collectionModel}"
    var="row"
    rows="#{bindings.ComMastVO.rangeSize}"
    emptyText="#{bindings.ComMastVO.viewable ? 'No rows yet.' : 'Access Denied.'}"
    fetchSize="#{bindings.CompMastVO.rangeSize}"
    rowSelection="single"
    id="tblCom"
    columnStretching="last" inlineStyle="width:100%;"
    width="273"
    selectionListener="#{backing_Comm.rowSelectCom}"
    binding="#{backing_Comm.tblCom}"
    clientComponent="true" >
    <*af:column* sortProperty="Com" sortable="true">
    <*af:inputText* value="#{row.bindings.Com.inputValue}"
    label="#{bindings.ComMastVO.hints.Com.label}"
    required="#{bindings.ComMastVO.hints.Com.mandatory}"
    columns="150"
    maximumLength="#{bindings.ComMastVO.hints.Com.precision}"
    shortDesc="#{bindings.ComMastVO.hints.Com.tooltip}">
    valueChangeListener="#{backing_Comm.onValueChange}"
    autoSubmit="true" >
    <f:validator binding="#{row.bindings.Com.validator}"/>
    *</af:inputText>*
    *<af:serverListener type="performDeleteOnPress"*
    *method="#{backing_Comm.goDeleteCurrentRow}"/>*
    </af:column>
    *<af:clientListener type="keyPress"*
    *method="onPressDeleteKey"/>*
    </af:table>
    =================================================
    anybody pls help??
    Edited by: Briston Thomas on Jun 3, 2009 2:25 AM

  • Is there an easy way to see how many rows in a table? (selected or unselected)

    Hi all,
    Forgive me if this is a REALLY dumb question but I would love to know if there there is an easy way to to see how many rows there are in a table in InDesign?
    (And I bet I am really going to kick myself when I hear the answer and how simple it probably is..lol !)
    I am working on a huge catalog and am dealing with LOTS of tables...very long tables too at times. I am also doing a lot of copying and pasting back and forth between InDesign and Excel and it would REALLY help if I knew how many rows there are in a table without having to manually count them (TIRESOME!!).
    Also, is there a way to see how many rows I have selected at any one time? It would be SO WONDERFUL if the info box could also provide this information.
    Thank you SO MUCH in advance for your help:))
    Christine
    **UPDATE**
    Oh boy I AM going to kick myself! Why only NOW that I wrote this question did I suddenly notice that the Table palette shows the number of rows and columns? lol.
    Okay, then is there a way to see how many rows I have selected at any given time?

    @Christine – try the following ExtendScript (JavaScript):
    if(app.selection.length === 0
        || !app.selection[0].constructor.name === "Cell"
        || !app.selection[0].constructor.name === "Table"){
        exit(0);
    var sel = app.selection[0];
    if(sel.constructor.name === "Cell"){
        var tableRowLength = sel.parent.rows.everyItem().getElements().length;
    if(sel.constructor.name === "Table"){
        alert("All "+sel.rows.everyItem().getElements().length+" rows selected in current table." );
        exit(0);
    var numberOfRowsSelected = sel.rows.length;
    var indexOfSelectedRows = sel.rows.everyItem().index;
    var startRowSel = indexOfSelectedRows[0]+1;
    var endRowSel = indexOfSelectedRows.length+indexOfSelectedRows[0];
    alert(numberOfRowsSelected +" row(s) selected.\r"+startRowSel+" to "+endRowSel+" out of "+tableRowLength+" of current table.");
    You need not select whole rows, just one or a couple of cells.
    Then run the script.
    An alert message is telling you how many rows belong to the cell range you have selected and:
    which rows of the table are selected…
    A typical message would be:
    6 row(s) selected.
    3 to 8 out of 20 of current table.
    The script does some basic checks of the selection.
    If no cell or table is selected, it will just do nothing…
    Uwe
    Message was edited by: Laubender | Some language cosmetics in the alert message

  • Two radio buttons in a single row of a table

    Hi All,
    Can we have two radio buttons in a single row of ADF TABLE.
    My requirement is that i have a list of submitted records. The user can approve or reject the records.
    All the records are displayed in the table. there will be two columns in the table(Approve , Reject) The user can approve the first record and reject the second record and so on....
    using table selectOne we can select only one row. Using radio buttons how to select the multiple records, at the same time grouping is done between the two columns(radio buttons) in the table

    Hi,
    I don't think that you can do this with radio buttons. The usecase is more for chackboxes. It would have been a usecase for radio buttons if there was a single column with 3 possible options
    - pending
    - approved
    - rejected
    Frank

  • How to find middle row in a table ?

    Hi Friends,
    Is it possible to find middle row in a table by SQL Query.
    KarTiK.

    Solution: sort the rows in order to create an ordered
    sequence and then there will be a "middle row".Well, not quite.
    If there are an odd number of rows then, yes, there will be a middle row in an ordered sequence, however if there is an even number of rows then the middle is between two rows... or... you could take it as the two rows either side of the middle....
    SQL> select * from emp order by empno;
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17/12/1980 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 20/02/1981 00:00:00       1600        300         30
          7521 WARD       SALESMAN        7698 22/02/1981 00:00:00       1250        500         30
          7566 JONES      MANAGER         7839 02/04/1981 00:00:00       2975                    20
          7654 MARTIN     SALESMAN        7698 28/09/1981 00:00:00       1250       1400         30
          7698 BLAKE      MANAGER         7839 01/05/1981 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 09/06/1981 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 19/04/1987 00:00:00       3000                    20
          7839 KING       PRESIDENT            17/11/1981 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 08/09/1981 00:00:00       1500          0         30
          7876 ADAMS      CLERK           7788 23/05/1987 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 03/12/1981 00:00:00        950                    30
          7902 FORD       ANALYST         7566 03/12/1981 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 23/01/1982 00:00:00       1300                    10
    14 rows selected.
    SQL> select e.empno, e.ename, e.job, e.mgr, e.hiredate, e.sal, e.comm, e.deptno
      2  from (select emp.*, row_number() over (order by empno) as rn from emp) e
      3      ,(select round(count(*)/2) as middle, round(((count(*)+1)/2)) as middle2 from emp) m
      4  where e.rn in (m.middle, m.middle2)
      5  /
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
          7782 CLARK      MANAGER         7839 09/06/1981 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 19/04/1987 00:00:00       3000                    20
    SQL> insert into emp values (1111, 'WILLIS', 'CLERK', 7902, sysdate, 900, null, 20);
    1 row created.
    SQL> select * from emp order by empno;
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
          1111 WILLIS     CLERK           7902 18/01/2008 12:18:14        900                    20
          7369 SMITH      CLERK           7902 17/12/1980 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 20/02/1981 00:00:00       1600        300         30
          7521 WARD       SALESMAN        7698 22/02/1981 00:00:00       1250        500         30
          7566 JONES      MANAGER         7839 02/04/1981 00:00:00       2975                    20
          7654 MARTIN     SALESMAN        7698 28/09/1981 00:00:00       1250       1400         30
          7698 BLAKE      MANAGER         7839 01/05/1981 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 09/06/1981 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 19/04/1987 00:00:00       3000                    20
          7839 KING       PRESIDENT            17/11/1981 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 08/09/1981 00:00:00       1500          0         30
          7876 ADAMS      CLERK           7788 23/05/1987 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 03/12/1981 00:00:00        950                    30
          7902 FORD       ANALYST         7566 03/12/1981 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 23/01/1982 00:00:00       1300                    10
    15 rows selected.
    SQL> select e.empno, e.ename, e.job, e.mgr, e.hiredate, e.sal, e.comm, e.deptno
      2  from (select emp.*, row_number() over (order by empno) as rn from emp) e
      3      ,(select round(count(*)/2) as middle, round(((count(*)+1)/2)) as middle2 from emp) m
      4  where e.rn in (m.middle, m.middle2)
      5  /
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
          7782 CLARK      MANAGER         7839 09/06/1981 00:00:00       2450                    10
    SQL>

  • How to change background color of row of a table in a panel table

    hi! im trouble right now, somebody help me. i have a matrix of row and column, panel row and panel table in jsp. my problem is how can i change the background color of a row once it clicked. i have row in table which have panel table with panel column and panel row.
    i have already work for it but i only change the background color once i clicked is the first row and first column then the rest row and column is not working..pls.. give me sample code for it..thnx a lot!!!
    Thnank's,
    froilet

    Ok! I have 2 jsp, the input jsp and display.jsp! Once i input value on input.jsp, it will display on display.jsp. I have also my javascript named updateBin.js. Now, how can i update each row once i clicked it... the succeeding rows and columns..hope u help me with this..here is my code:
    Display.jsp
    <html:html locale="true">
    <head>
         <html:base/><meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Strip Map Loader</title><script type="text/javascript" src="js/updateBin.js"></script>
    </head>
         <%      
              int intRow = Integer.parseInt(request.getParameter("intRows"));
              int intColumn = Integer.parseInt(request.getParameter("intColumns"));
              int intPanelRow = Integer.parseInt(request.getParameter("intPanelRows"));
              int intPanelColumn = Integer.parseInt(request.getParameter("intPanelColumns"));
         %>
    <BODY bgcolor="#33b9ec" leftmargin="50%">
         <b>Strip ID:  </b><font color="red" face="arial"><b><bean:write name="strStripID" scope="request" /></b></font>
         <br><br>
         <font size="3" face="tahoma"><b>Bins Updater Tool:</b></font>
         <table border="1" width="365px" bgcolor="#1ea6f7" height="15">
              <tr>
                   <td valign="top" align="center">
                        <table><tr><td><font size="2">Select Bin Type:</font></td>
                        <td><select id="binType" onchange="updateBin()" size="1">
                             <OPTION></OPTION>
                             <OPTION value="green">Good Bin</OPTION>
                             <OPTION value="red">Reject Bin</OPTION>
                        </select></td></tr></table>
                   </td>
    </tr>
    </table>
    <table id="tbl" align="center" border="1" cellspacing="3" cellpadding="5" bgcolor="#CC9900">
    <tr>
    <td>                                                  
         <%for (int pnlrows=1; pnlrows<=intPanelRow; pnlrows++){%>     
              <table id="table" width="100%" border="1" bgcolor="#CC9900" cellspacing="7" cellpadding="0" align="center">
              <tr>
              <%for(int pnlcols=0; pnlcols<intPanelColumn;pnlcols++){%>               
              <td>
                        <%for (int rows=1;rows<=intRow; rows++){%>                    
                        <table cellspacing="5" width="100px" align="center" bgcolor="#CC9900">
                        <tr>
                             <td>                    
                             <%for(int cols=1; cols<intColumn; cols++){%>
                             </td>     
                             <td id="col" bgcolor="#008000" align="center" ondblclick="changeCol()"> X </td>          
                             <%}%>
                             <td id="row" bgcolor="#008000" align="center" ondblclick="changeRow()"> X </td>
                             <td></td>     
                             <%}%>                                                  
                        </tr>
                        </table>
              <%}%>
              </td>
              </tr>
              </table>     
         <%}%>
    </td>
    </tr>
    </table>
    and this is my javascript code:
         function updateBin()
              var binType=document.getElementById("binType")
              if(binType.value == "green")
              [binType.selectedIndex].value
              //binType = changeR();
              //alert('Good Bin Selected');
              if(binType.value == "red")
              [binType.selectedIndex].value
              //binType = changeC();
              //alert('Reject Bin Selected');
              if(binType.value == "")
                   alert('Please select only on the category!')
         function changeRow()
              if(binType.value=="green")
              x=document.getElementById('row').style.background="green";     
              alert('Updated!')     
              if(binType.value=="red")
              x=document.getElementById('row').style.background="red";
              //alert('Reject Bin Updated!')
         function changeCol()
              if(binType.value=="green")
                   x=document.getElementById('col').style.background="green";     
                   alert('Updated!')     
              if(binType.value=="red")
              x=document.getElementById('col').style.background="red";
              //alert('Reject Bin Updated!')
    this code only updates the first row and column..but the succeeding panel row and panel column can't update...what will i do? theres something wrong in my javascript or in my jsp...pls help me......thanx.....in advance!!

  • Error inserting a row into a table with identity column using cfgrid on change

    I got an error on trying to insert a row into a table with identity column using cfgrid on change see below
    also i would like to use cfstoreproc instead of cfquery but which argument i need to pass and how to use it usually i use stored procedure
    update table (xxx,xxx,xxx)
    values (uu,uuu,uu)
         My component
    <!--- Edit a Media Type  --->
        <cffunction name="cfn_MediaType_Update" access="remote">
            <cfargument name="gridaction" type="string" required="yes">
            <cfargument name="gridrow" type="struct" required="yes">
            <cfargument name="gridchanged" type="struct" required="yes">
            <!--- Local variables --->
            <cfset var colname="">
            <cfset var value="">
            <!--- Process gridaction --->
            <cfswitch expression="#ARGUMENTS.gridaction#">
                <!--- Process updates --->
                <cfcase value="U">
                    <!--- Get column name and value --->
                    <cfset colname=StructKeyList(ARGUMENTS.gridchanged)>
                    <cfset value=ARGUMENTS.gridchanged[colname]>
                    <!--- Perform actual update --->
                    <cfquery datasource="#application.dsn#">
                    UPDATE SP.MediaType
                    SET #colname# = '#value#'
                    WHERE MediaTypeID = #ARGUMENTS.gridrow.MediaTypeID#
                    </cfquery>
                </cfcase>
                <!--- Process deletes --->
                <cfcase value="D">
                    <!--- Perform actual delete --->
                    <cfquery datasource="#application.dsn#">
                    update SP.MediaType
                    set Deleted=1
                    WHERE MediaTypeID = #ARGUMENTS.gridrow.MediaTypeID#
                    </cfquery>
                </cfcase>
                <cfcase value="I">
                    <!--- Get column name and value --->
                    <cfset colname=StructKeyList(ARGUMENTS.gridchanged)>
                    <cfset value=ARGUMENTS.gridchanged[colname]>
                    <!--- Perform actual update --->
                   <cfquery datasource="#application.dsn#">
                    insert into  SP.MediaType (#colname#)
                    Values ('#value#')              
                    </cfquery>
                </cfcase>
            </cfswitch>
        </cffunction>
    my table
    mediatype:
    mediatypeid primary key,identity
    mediatypename
    my code is
    <cfform method="post" name="GridExampleForm">
            <cfgrid format="html" name="grid_Tables2" pagesize="3"  selectmode="edit" width="800px" 
            delete="yes"
            insert="yes"
                  bind="cfc:sp3.testing.MediaType.cfn_MediaType_All
                                                                ({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})"
                  onchange="cfc:sp3.testing.MediaType.cfn_MediaType_Update({cfgridaction},
                                                {cfgridrow},
                                                {cfgridchanged})">
                <cfgridcolumn name="MediaTypeID" header="ID"  display="no"/>
                <cfgridcolumn name="MediaTypeName" header="Media Type" />
            </cfgrid>
    </cfform>
    on insert I get the following error message ajax logging error message
    http: Error invoking xxxxxxx/MediaType.cfc : Element '' is undefined in a CFML structure referenced as part of an expression.
    {"gridaction":"I","gridrow":{"MEDIATYPEID":"","MEDIATYPENAME":"uuuuuu","CFGRIDROWINDEX":4} ,"gridchanged":{}}
    Thanks

    Is this with the Travel database or another database?
    If it's another database then make sure your columns
    allow nulls. To check this in the Server Navigator, expand
    your DataSource down to the column.
    Select the column and view the Is Nullable property
    in the Property Sheet
    If still no luck, check out a tutorial, like Performing Inserts, ...
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/index.jsp
    John

Maybe you are looking for

  • HT204053 How do I remove my id from an ipod

    I purchased an iPod for my daughter and just linked it to my iTunes and apple id.  I've created her own email and her own apple id.  How can I remove the device from my account and set it up on her own? Thanks, DeMea Darden

  • Can't copy files to Xserve Raid

    Hello, I'm having serious issues copying files to my work's Xserve Raid. When I try to copy files to it, it stalls for several minutes trying to copy, but making no progress, before giving an error saying: "The Finder cannot complete the operation be

  • I can no longer download a .zip file using Firefox 15.01 on the 2010 Mac (Snow leapard 10.6.8) using the method to have it SAVE in a folder of my choice.

    Also..even though I tell file to SAVE to a folder of my choice..it will put a gibberish file in the Default DOWNLOAD folder with the suffix name ".part" at the end of it. I have uninstalled Firefox, loaded it fresh, zapped the prams, cleared the cook

  • Image in JFrame

    Hi! How can I add an image (jpg, gif etc) to a JFrame or a JPanel? ImageIcon is not a Component object and cannot be added simply with the add method.. Thanks ;)

  • Performance of Balance API in Payroll.....

    We have one years worth of payroll data (145,000,000 in pay_run_result_values). Many of the recently deliver year-end pl/sql scripts use the pay_us_tax_balance_pkg (Balance API) and run for several days!!!!!! One call to this API takes 1-2 hours. Wha