Shade every 10 rows in a table

Im using DW CS3.
Basically I have a large table of 300+ rows. Because the rows contain  data with a row number in each row (ranking, first column), the table  would be easier to read if every 10 rows were shaded. 1-10, 21-30,  41-50, and so on.
Id like to do it in some sort of head or css way, rather than manually  apply the shading to each section of rows, mainly because I use a  sortable javascript for the table header and Id like the shading to  remain static in spite of the sorts.  The data is also fluid so there  might be 325 rows one day and 333 rows the next.
Any way to accomplish this with html/css markup?  Thanks!

Hi
This will not work in IE8 or below without the selectivizr js file but you could use -
table tr:nth-of-type(10n+1) {
  color: red;
for IE8 and below you would require - http://selectivizr.com/, or one of the frameworks shown in the list of their home page.
PZ

Similar Messages

  • Making cuts every 2 rows in a table

    Hi again forum
            I have this requirement:
             1) In one table, for example:
                         |       h1      |        h2       |      h3    |
                         |       rA1    |        rA2      |      rA3   |
                         |       rB1    |        rB2      |      rB3   |
                         |       rC1    |        rC2      |      rC3   |
                         |       rD1    |        rD2      |      rD3   |
            2) I want to make cuts every 2 rows to summarize this colummns in a new row. Example:
                        |         h1     |        h2       |       h3    |
                        |         rA1    |        rA2     |       rA3   |
                        |         rB1    |        rB2     |       rB3   |
    New Row            |   rA1+rB1      |    rA2+rB2     |   rA3+rB3   |
                        |         rC1    |        rC2     |       rC3   |
                        |         rD1    |         rD2    |         rD3 |        
    New Row            |    rC1+rD1     |     rC2+rD2    |   rC3+rD3   |           
    Any idea, for insert the new row every n rows ?
    Thnks
    Josué Cruz
    Edited by: Josue Cruz on Aug 26, 2008 5:23 PM

    I don´t know how you have resolved this, but SAP recommends (and I recommen) to do this in backend/ ABAP (or Java) and display the result table with no scripting changes in the form.
    It spares time, effort and performance of the app.
    Otto

  • Need code for making shade for alternate row

    i want to show it my report's row as shade every other row.
    how to do it.
    thanks

    Duplicate Post!!!!
    You have already posted this query in the Reports forum and you have been given an answer.

  • Radio button for every row in a table

    Can anyone tell me how to get abutton for every row of a table.This button is used for selecting taht particular row.
    Thanks in advance

    Create a table region in Jdev. Then right click on it New--> Choose Single Selection.
    Thanks
    --Anil                                                                                                                                                                                                               

  • Grab every row in a table in Hibernate?

    I can grab every row in a table using simple HQL when using Hibernate. I'm wondering if there's another way to do it besides using HQL. maybe like a built-in method like session.load()? except load() takes in a primary key value as a parameter and thus can only retrieve one row at a time.
    thank you!

    Create a table region in Jdev. Then right click on it New--> Choose Single Selection.
    Thanks
    --Anil                                                                                                                                                                                                               

  • Repeat table header after every 20 rows?

    Aloha gang,
    I have a spry table that loads an .xml file - the resulting
    table extends well 'below the fold' of the page
    is there a way to repeat the table header <th> every 20
    rows or so?
    bill - hawaii

    Hi Sergio,
    Thanks for the follow-up. I was thinking (after I made the original post) that I might be able to use a (pl/sql?) region and generate the report manually.
    Thanks,
    Mark

  • How to make the shade for every other row?

    Hi,
    i want the rows in my report dispalyed as:
    row1: gray
    row2: white
    row3: gray
    row4: white
    row5: gray
    thanx

    Hello,
    Highlight every alternate row
    Highlight every alternate row
    Regards

  • Updating one row updates every row in the table

    I'm having a weird problem in which I insert a row into a table, select that row, and update its columns, and all the rows in the table end up with those columns all set to the new value. Like this:
    A B C
    1 4 7
    2 3 8
    9 6 7
    Statement s1 = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    s1.execute("INSERT INTO table (A) VALUES (5)");
    Statement s2 = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    RecordSet rs = s2.executeQuery("SELECT * FROM table WHERE A=5");
    if (rs.next()) {
      rs.updateInt("B", 4);
      rs.updateInt("C", 6);
      rs.updateRow();
    A B C
    1 4 6
    2 4 6
    9 4 6
    5 4 6I'm using Mac OS X 10.4.9, OpenBase Solo 10.0.5, and Java 1.5. I hope someone has experienced this before because it has me befuddled.
    Here is the actual code from my program:
    Statement st;
    ResultSet rs;
    st = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    rs = st.executeQuery("SELECT * FROM characters WHERE UniqueID=\""+uid+"\"");
    if (rs.next()) {
         JOptionPane.showMessageDialog(this, "The Unique ID \""+uid+"\" is already taken by "+com.kreative.mccm.Character.flName(rs)+".", "", JOptionPane.ERROR_MESSAGE);
         return false;
    rs = st.executeQuery("SELECT * FROM characters WHERE CodePoint="+cp);
    if (rs.next()) {
         JOptionPane.showMessageDialog(this, "The code point "+h(cp,4)+" is already taken by "+com.kreative.mccm.Character.flName(rs)+".", "", JOptionPane.ERROR_MESSAGE);
         return false;
    st.close();
    st = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    st.execute("INSERT INTO characters (UniqueID, CodePoint) VALUES (\""+uid+"\", "+cp+")");
    st.close();
    this.uid = uid;
    this.cp = cp;
    this.ch.setUniqueIDString(uid);
    this.ch.codePoint = cp;
    st = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    rs = st.executeQuery("SELECT * FROM characters WHERE UniqueID=\""+ch.getUniqueIDString()+"\"");
    if (rs.next()) {
         ch.writeResultSet(rs, false, false); /* (this does the updates) */
         rs.updateRow();
         charSaveChanges.setEnabled(false);
    } else {
         throw new SQLException();
    rs.close();
    st.close();

    OpenBase powers Apple's online store, so I wouldn't think that's the problem. I'm placing all the blame on the JDBC driver.
    Funnily, I started updating ResultSets that way because executing UPDATE statements directly gave me this problem before. Doing it this way made the problem go away, until now.
    I tried replacing the INSERT with two fields with one with all the fields, and now it throws a SQL error that is most definitely bogus:
    java.sql.SQLException: SQL ERROR - [position 569, near '' in ', 0, 0, 0, ''] insert error: comma expected but not found in data.
    SQL: INSERT INTO characters (UniqueID, CodePoint, NameFirst, NameMiddle, NameLast, NameMaiden, NameCommFirst,
    NameCommMiddle, NameCommLast, NameCommFull, Title, Classification, Subclassification, Considerable, SexString,
    TransitionString, GenderString, OrientationString, TitleString, PronounString, SGO, BirthDay, BirthMonth, BirthYear,
    Generation, FirstOfSet, ParentBio, Parent1, Parent2, Parent3, ParentBioType, Parent1Type, Parent2Type, Parent3Type)
    VALUES ('bomb', 123, 'Ziggy', 'Boogy', 'Doog', '', '', '', '', '', '', -1, -1, 1, '', '', '', '', '', '', 0, 0, 0, 0, 0, '', '', '', '', '', 0, 0, 0, 0)Bogus because there are the same number of data items as field names, and position 569 is a comma.
    At this point I have to ask myself why I ever chose OpenBase in the first place. (That's right, I had a RealBasic plugin for it. shudders) I'm sure OpenBase itself is fine, but its JDBC driver is trash. MySQL here I come.
    (Message was edited to prevent looooong horizontal scrolling)

  • How to add the rows formatted as table headings, Tables headings are repeated when a table spans more than one page.

    Hi all,
    i am facing problem while generating Test Result word document after successful execution of TestStand.
    The Problem is :
    i want to add rows Formatted as table headings, table headings are repeated when a table spans more than one page(marked as Red).
    Example:
    Page  No. 1
    |     Test case Number  |  Test Step number      |
    |      100                         |            100                   |
    Page  No. 2
    |     Test case Number  |  Test Step number      |
    |      200                         |            300                   |
    Test Result word document should generate with Table headings(marked as Red) in every pages of the document, but i am not getting as per above example.
    Please through light on this.
    Regards,
    Susa.

    Hi Santiago,
    Thank you very much for your valuable reply.
    i want to generate MS-word report for TestStand after successful testing using MS-word2000.
    Test report contains Actual values, Expected values and Pass/Fail status.
    In my program i have customized all  fields i can able to generate test report which contains Verification engineer name , test mode, test date, start time, end time Actual values, Expected values and Pass/Fail status.etc....
    To put all values of test case number, Test step number, Actual values, Expected values and Pass/Fail status in to table for each time, i will
    insert a row into table every time values arrives, once the table exceedes its page size it moves to the next page, next page should start with table row header  but it start with  values of above said parameters.
    so i'm not able to repeat table row header for each page.
    Please find the attached file for your reference.
    Attched file expected.doc  :   This file contains what i wanted to generate MS-word report. Here table row header "Test Case Number and Test Step Number " is repeated in second page.
    Attached file Actual output from source code.doc   :  This report generated from the source code. Here table row header "Test Case Number and Test Step Number" is not repeated in second page.
    Do you know any property to set "repeat as header row at the top of each page" using MS-word ActiveX in CVI/Labwindows.
    i think this information is sufficient for you,
    Still if you need some information please ask me.
    Thanks
    Susa.
    Attachments:
    Actual output from source code.doc ‏25 KB
    expected.doc ‏26 KB

  • Reinitialize a task flow on click of row in a table

    Hi All
    I am using JDev 11.1.1.6 and WLS 10.3.6
    I have a requirement where i would like to re initialize the task flow each time by clicking on row of another table.
    I have a table in a page and there is other region which I need to refresh every time any row is clicked on the table.
    I am using the activation flag and active property in the task flow binding
    Any suggestions ?

    Refer to: http://andrejusb.blogspot.in/2011/08/adf-dialog-framework-and-adf-task-flow.html
    http://www.adftips.com/2010/11/adf-ui-region-interaction-interaction.html

  • Copying many rows from one table to another

    Could anyone tell me the best way to copy many rows (~1,000,000) from one table to another?
    I have supplied a snipit of code that is currently being used in our application. I know that this is probably the slowest method to copy the data, but I am not sure what the best way is to proceed. I was thinking that using BULK COLLECT would be better, but I do not know what would happen to the ROLLBACK segment if I did this. Also, should I look at disabling the indexes while the copy is taking place, and then re-enable them after it is complete?
    Sample of code currently being used:
    PROCEDURE Save_Data
    IS
    CURSOR SCursor IS
    SELECT     ROWID Row_ID
    FROM     TMP_SALES_SUMR tmp
    WHERE NOT EXISTS
    (SELECT 1
         FROM SALES_SUMR
         WHERE sales_ord_no = tmp.sales_ord_no
         AND cat_no = tmp.cat_no
         AND cost_method_cd = tmp.cost_method_cd);
    BEGIN
    FOR SaveRec IN SCursor LOOP
    INSERT INTO SALES_ORD_COST_SUMR
    SELECT *
    FROM TMP_SALES_ORD_COST_SUMR
    WHERE ROWID = SaveRec.Row_ID;
    RowCountCommit(); -- Performs a Commit for every xxxx rows
    END LOOP;
    COMMIT;
    EXCEPTION
    END Save_Data;
    This type of logic is used to copy data for about 8 different tables, each containing approximately 1,000,000 rows of data.

    Your best bet is
    Insert into SALES_ORD_COST_SUMR
    select * from TMP_SALES_ORD_COST_SUMR;
    commit;
    Read this
    http://asktom.oracle.com/pls/ask/f?p=4950:8:15324326393226650969::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:5918938803188
    VG

  • Selection of a row in  a table

    Hi,
    I have a problem with JTable. ...i have just started working with JTables and still have not got a complete hang of how they function.
    I have a table whose model is "AbstractTableModel". I have different data in each row of the table therefore i have a celledtior and cell renderer per row. Each row is rendered as a combo box. There is only one column in that table. What i need to do is when the user clicks on any of these the rows in the table i need to evaluate what is the content in that row(in the combo box-It should be the values that have not been used up yet in the other rows...so basically as you add rows the combo box content will keep shrinking till all the possible vlaues are exhausted).
    I added a celleditor listener for every row. When the user clicks on the cell the event get's captured but the row value that shows up is not row the user selected. The value is always the previous selected row. Each cell is rendered as a combo box.
    For example if the user selected the first row in the table then the value of the row selected is -1. If the the user adds two more rows and selects the third row then the value selected is 0 (previos selected).
    What i cannot figure out is how in the world is this value obtained.
    Please help !! I tried everything i can think of to get the correct value of the row selected.
    Thanks a lot for your time and patience.
    Archana

    Hello Suman,
    Please, look at 'No First Select from Table' section of this blog: [/people/jarrod.williams/blog/2006/12/14/visual-composer-tips-and-tricks|/people/jarrod.williams/blog/2006/12/14/visual-composer-tips-and-tricks]
    Good luck,
    Ola

  • Need to send text string to new row in expandable table

    I have a table that is a summary of other choices made throughout the document.  For specific check boxes in the form, there is a defined phrase that needs to be sent to a new row in the summary table.
    The general idea is that for checkbox:
    form1.sfMain.sfContent.tableC2.Row1.cbC2b6
    if (this.rawValue == "1") {
    this.resolveNode('form1.sfApp6.tableApp6A._Row1').addInstance(1);
    this.resolveNode("form1.sfApp6.tableApp6A.Row1[*].ddApp6A1c").rawValue = "Blue bottle";
    This needs to be something I can specify for each applicable checkbox (each will have a different text string), but I don't know what the final count is going to be (depends on choices made by the user) so I can't delete rows in the table and start over every time.  It needs to be additive.
    Any suggestions?
    Message was edited by: cyndilynnrose

    For anyone needing the same thing, I found exactly what I needed:
    http://www.truetechtroubleshooting.com/2012/02/advanced-expanding-tables-and-script.html
    The hardest part of getting it working was figuring out how many parent levels I needed to add since I have a heavily layered form.

  • Updating a variable based on checking expiration date against now() in each row of a table

    I’m using Coldfusion 9,0,0,251028 on Windows 7 64-bit, with a Microsoft Access 97 database.
    I’m trying to create a query which loops through all the rows in a table and checks if the current date is later or earlier than the expiration date. 
    If the expiration date column is earlier than now(), it sets the column “is_current” to 0, which is a variable that controls whether or not a message displays on a different page(breakingnews.cfm). 
    The column that has the expiration date is “exp_dat” in the table “news”. The query I have so far is:
    <cfquery name="expire" datasource="#db#">
    update news
    set is_current = 0
    where exp_dat < now()
    </cfquery>
    What this ends up doing is filtering out the expired items correctly, but once a new row is inserted, the previous items(which haven’t expired yet)
    are still having the “is_current” column set to 0.
    The query is cfincluded on the page the messages are supposed to display on (breakingnews.cfm). 
    How can I get the query to loop over each row every time to check if the now() is earlier or later than “exp_dat” without setting all the other row’s “is_current” to 0?

    Two things:
    1 - A query will never affect rows you haven't told it to. Therefore if new rows have the is_current set to 0, then it's because you're either setting it so in your insert statement or you've set a default value on the column. Just make sure you set the column to 1 when you insert the new row.
    2 - Why are you doing this at all? Say you run your update query (which is relatively intensive) a millisecond before one expires, it'll still be shown on your page. Why are you not just doing "SELECT * FROM mytable WHERE expiration_date > now()"?
    Obviously use cfqueryparams, but that's just an example. It seems at the moment all you're doing is storing out-of-date data in a database and causing yourself a lot more work and overhead.

  • Is there a way to add rows to a table in a fillable PDF?

    I have created a fillable form, but the table I've created only has 9 rows. I'd like to be able to expand the rows on demand. If they're needed, then the user could add rows to the table as needed. It's an expense form, so the rows need to be there when there are multiple expenses, but not there when there are only a few expenses. Any/all help is appreciated. Thanks!

    here's more background infomation... I have some audits setup on my database for one of my users. Every quarter I have an automated job that runs that creates a usage/statics report for this person using data in aud$. at the end of the job I export the aud$ table and truncate it. However last quarter I found that there was a mistake in my report and my export did not run properly thus my audit data was gone. i also have full datapump exports that run daily but found that aud$ was not there. so that is why I thought I'd like to include sys.aud$ in the full datapump exports.
    i understand why other sys tables would be left out of a full export but aud$ data cannot be reproduced so to me it makes sense to include it in a full export.
    don't worry, we run our true backups using rman which is eventually how I got the aud$ data back by creating a copy of my database up until the time of the truncate. however this was quite time consuming.

Maybe you are looking for

  • Detect recent installed unauthorized remote control applications

    One day ago I allowed remote access control to my Mac Book Pro OS10.9.4 to a company pretending to be Apple Authorized Online Services. After discovering this was a scam I need to be sure that they didn't leave or installed any app (hidden or not) an

  • How do I get my photos from a previous version of Photoshop Elements (6) into Photoshop Elements 12?

    How do I get my photos from a previous version of Photoshop Elements (6) into Photoshop Elements 12? Do I restore from a backup?  I have over 12,000 pics ( a good portion with multiple versions) and don't want to lose captions and metadata. Thank you

  • C4599 installing fine -- disappeari​ng within a day or two!

    Hi all!  I just bought a C4599 (have been an avid HP printer lover for over 10 years) and excitedly set it up and love it but I am having a recurring problem that may force me to return it for a different printer.      I have contacted HP tech suppor

  • IMS 5.1 not starting correctly

    I am using iPlanet Messaging server 5.1. When starting the messaing server I am getting error "/usr/iplanet/ims: Starting STORE daemon ...stored: Could not get store session lock. Possibly stored already running". I tried again after a reboot but no

  • Accessing global address list

    Hi, We have Outlook 2003 installed with the Collaboration Suite and Outlook Connector. In Outlook VBA I am trying to access the Oracle global address list with MAPI. This takes about 20 minutes to return the selected recipients from the address list