Results Tab odd/even row color

I am trying to modifying the preferences for the results tab/Table Data tab to show every other row a different color.

There's a request for this at the SQL Developer Exchange, where you can vote on.
K.

Similar Messages

  • How can I change the background color of odd/even rows in a panelCollection

    Hi everyone.
    I'm using a panelCollection and I need to change the backgroung color for odd/even rows in the table,
    how can I do this, using a stylesheet, is there a special selector or property for this?
    globalResultCollection (UIPanelCollection object) , is a collection of UITable elements, and it's working fine.
    I just want to change the defaul background color for rows.
    Thanks
    <af:panelCollection id="GLOBAL_RESULT_COLLECTION"
    binding="#{admin.view.globalResultCollection}"
    styleClass="globalResultCollectionRegion"
    clientComponent="true">
    <f:facet name="menus">
    <af:menu id="GLOBAL_OPERATION_MENU"
    binding="#{admin.view.globalOperationMenu}" />
    </f:facet>
    <f:facet name="toolbar">
    <af:toolbar inlineStyle="width:100%"
    binding="#{admin.view.globalOperationToolbar}"
    id="OPERATION_TOOLBAR"/>
    </f:facet>
    </af:panelCollection>

    Hi,
    use this:
    af|table::data-row af|column::data-cell { background-color: #CCCCFF; }
    af|table::data-row af|column::banded-data-cell { background-color: #FFCCCC; }
    Regards,
    s o v i e t

  • How to select odd/even rows from table....

    How to select odd/even rows from a table?
    Please help.
    Edited by: vaibhav on May 7, 2012 5:30 AM

    just don't expect the results to come out in the sequence odd, even, odd, even .....
    The answer you have marked correct needs two order by clauses to guarantee that.
    The inner select will return rows in a random order, potentially different each time you run it. The outer select may not return rows in the same order as the inner one.

  • Odd/Even Fields - Removing Pixel Rows In PS

    This is hard to explain, but I have a challenging task here in PS. There has to be a way to do this!
    I have to make our video engineering dept. two separate files, one containing the EVEN rows of pixels, and one file with the ODD rows of pixels.
    BUT, I have to collapse the space between each pixel row, truncating the file height in half.
    I have produced two master PSD files now, 854x480 WVGA format. I created a grid of selections (saved as an alpha channel) for ODD rows and EVEN rows, and deleted the unnecessary rows. If you were to layer these two files together, the image would appear seamlessly.
    OK, fine. I almost have what I want, but I'm not done yet.
    What I have to do now is to remove the space between each pixel row (the transparent rows), truncating the file height to 240 pixels high.
    Yes, I know the final image will appear "odd", but this is for technology development purposes.
    Can anyone offer a procedure to remove the rows of transparent pixels, resulting in a shorter file height?
    I could post a PSD, I suppose, if someone wanted to see what I'm starting with.
    If each pixel row were on an individual layer, I could distribute the layers, one on top of the other. But moving each pixel row would mean 240 layers.
    There has to be another way.
    I'm thinking there might be a method of doing this in AE if I can't do this in PS.
    Thanks so much.

    Tom:
    I would process one file at a time, creating even and odd files, as opposed to breaking out two files using masks (as you seem to describe) and then processing those. I'm 95% sure you can action this to a batchable action (serial numbered even/odd files, not filename-prefix, if that makes sense). When creating the 239 dupes: dupe one set, then select both sets, dupe both, then select four, dupe those and so on. Do this in a blank action to make it easy to determine what you're duping. I created an action with 1024 sets of steps this way, which is more than enough to process both even/odd files, link everything, copy merged, save out, etc. If you're using CS3 the linking is much more simple: link layers 1 through 240 selecting all, vs: select layer 1, layer 2, layer 3, ...
    If you merge linked and copy to a new file called "odd," then when you batch the action you can create 001_odd.psd, 001_even.psd, 002_odd.psd, 002_even.psd, ... Get the receiver to sign off on receiving renamed files and then no handwork for you. Or bug the scripting folks in that forum and they might be able to help you with naming the resultant files based on original.
    J

  • How to increase displayed rows when clicking RESULT tab

    Hi Experts,
    How do I increase the number of rows displayed in an Analysis report when you hit the RESULT tab?
    Right now, the default rows displayed in my current development is 'Rows 1 - 25'
    I want a bigger number. :)
    Thanks,

    Hi,
    try to use <MaxVisibleRows>500</MaxVisibleRows> this will apply entire application, if you just want to set particular report edit analysis--> table/pivot view properties and increase the no of rows display.
    Refer section
    18.3.1.2 Manually Configuring Settings for Data in Views
    http://docs.oracle.com/cd/E23943_01/bi.1111/e10541/answersconfigset.htm#r9c1-t2
    Thanks
    Deva

  • Getting every odd-numbered row from result set

    select *
    from mytable
    where MOD(rownum,2) = 1;
    Why does this not give me every odd-numbered row from result set? It returns just 1 row....
    Thank u

    When you say MOD(ROWNUM,2)=1 it will list only the first row with rowid which is devisible by 2 and gives a reminder 1.
    Just tweak your query with a GROUP BY:
    SQL> select rownum from your_table group by rownum having mod(rownum,2) =1;
        ROWNUM
             1
             3
             5
             7
             9
            11
            13
            15
            17
            19
            21
        ROWNUM
            23
            25
            27
            29
            31
            33
            35
            37
            39
            41
            43
    etc...
    [pre]
    Jithendra                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Datagrid styling. All even rows blue - odd rows white

    Hi.
    I have seen a lot of tables where the second row is white and the first is blue. This makes it easier to read the data for a particular students results.
    How could that be done - would you have to code it in ie: colour the even rows by targeting the even numbers or is there a built in way.
    Cheers

    Information:
    http://blogs.adobe.com/pdehaan/2007/06/setting_a_flash_data_grids_bac_1.html
    http://blogs.adobe.com/pdehaan/2007/06/alternating_background_colors.html
    Source Files:
    http://blogs.adobe.com/pdehaan/code/section13.example1.zip
    http://blogs.adobe.com/pdehaan/code/section12.example1.zip

  • Query not returning rows in 'result' tab due to invalid date field (bug?)

    It seems that in the results display, if there is a date field with out of bounds data then the query is stopped and only the results up to that record are displayed. When running the same query as a script, all of records are returned. The offending date in the table was '-10100-00-00 0-1:0-1:0-1.0'. Don't ask how it got there... I really have no idea.
    Has anyone else noticed this? Could it relate to the NLS format? Would it be possible to just display this value as null in the 'results' tab instead? Or wrap any invalid data as such and return nothing in the field but still show the record?

    Hello,
    It seems that you had resolved the issue which caused by premission.
    You can post the solution in a new reply and mark it as answer.
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here. 
    Fanny Liu
    TechNet Community Support

  • Want robust solution for alternating row color, resetting every group

    I would like a solution for displaying an alternating row color for my detail rows that resets every group, so that row 1 is always gray.
    Our Crystal designer provided this code to me:
    @rowcnt formula, suppressed, placed in Detail row:
    Shared numbervar rowcnt;
    rowcnt := rowcnt + 1;
    @resetrowcnt, suppressed, placed in Group row:
    Shared numbervar rowcnt;
    rowcnt := 0;
    Formatting formula, placed in Color in Detail > Section Expert:
    Shared numbervar rowcnt;
    if Remainder(rowcnt, 2) <> 0 then
    color(241,241,241)
    else
    crWhite
    This was working fine for me.
    However, it is suddenly not working in one of my reports.
    The report does happen to have two groups (rowcount.png).
    When the report is run, all rows are colored (rowcount02.png).
    This report was previously working fine!  I'm not sure what changed.
    In any case... surely there must be standard code to do this very standard formatting.
    I would be very grateful if someone could post some robust code to accomplish the following:
    REPORT DATA IN DETAIL ROW, ALTERNATE ROW BANDING:
    - Data in Detail row displays alternating row colors
    - Odd rows are always shaded, even rows not
    - Banding resets every group / does not continue pattern from previous group
    REPORT DATA IN GROUP ROW, ALTERNATE ROW BANDING:
    Some of our reports place row data in a group row (just the way it happened).
    If you could also modify your code in this case.
    Thank you!

    Hi Abhilash/Sastry, since I'm going to switch to Sastry's formulas, could you please confirm correctness of the following. I can't actually run this report, I can only provide it to our London office, bit of a lag for testing.
    @resetrowcnt:
    Whileprintingrecords;
    Numbervar cnt:=0;
    @rowcnt:
    Whileprintingrecords;
    if {HedgeDetails.StrategyID} <> previous({HedgeDetails.StrategyID}) and
    {HedgeDetails.DealID} <> previous({HedgeDetails.DealID}) then
         Numbervar cnt:=cnt+1;
    Details section (Suppress):
    not(OnFirstRecord) and
    {HedgeDetails.StrategyID}=previous({HedgeDetails.StrategyID}) and
    {HedgeDetails.DealID}=previous({HedgeDetails.DealID})
    Please note: Suppress checkbox is selected AND the above formula is entered.
    Details section (Color):
    Whileprintingrecords;
    Numbervar cnt;
    if cnt mod 2 <> 0 Then color(241,241,241) else crwhite

  • Crosstab Row Colors

    All...
    I'm trying to change the default colour coding of the BI Crosstab. By default the crosstab displays rows with alternating colors, white (or no background) then brown(ish). I've edited the style sheets blaf.xss and bistyles.xss, but this does not change the white rows.
    I want alternating row colors, but of my choosing!!!
    How can I change this behaviour? Which style needs changing in the style sheet, else how can I programmatically achieve this in my JSP page?

    I have a question related to your last post.
    I have a crosstab layout. I have setup custom CSS for my learning purposes. I am currently using 1.4 in a local install on my PC.
    Here is the CSS I am using for the layout.
    .sapzencrosstab-DataCellAlternating {
    background-color: #CCFFCC !important;
    .sapzencrosstab-DataCellDefault {
    background-color: #EAF2D3;
    /* This defines how tall the rows will be in the cross tab layout*/
    .sapzencrosstab-DataCellContentDiv {
    height: 40px;
    /* This formats the Task Count with a gradient yellow*/
    .sapzencrosstab-DataCellTotal {
    font-weight: bold;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#E6E600',GradientType=0); background-color: rgb(229, 234, 243); !important;
    With the above CSS, I can get the Overall Result count to show up in yellow.
    My goal is to get the cell that contains the Overall Result text to show up formatted the same way the count is formatted. (Gradient Yellow)
    I looked at, and tried your solution, but it did not work for me. Is there a better way to do this?
    Thanks,
    Lloyd

  • HTML Table with alternative row color, Using SQL XML

    Hi,
    I want to send out an email and the email body contains a table with data. I am using SQL to create the HTML table and to populate values inside the table. Below is the code I have so far
    DECLARE
    @HTML NVARCHAR(MAX)
    IF (SELECT
    COUNT(*)
    from Employee])
    != 0
    Begin
    SET
    @HTML =
    '<html><style>
          tr:nth-of-type(even) {
          background-color:#ccc;
    </style><body><h1 style="font-family:Tahoma; font-size:12px;">Hi,</h1>'
    +
    'Below is the report'+
    '<br></br>'+
    '<table border="1" width="100%" style="border:1px solid #77bfe4;font-family:Tahoma; font-weight:normal; font-size:12px;" cellpadding="4" cellspacing="0">'
    +
    '<tr bgcolor="yellow" style="font-family:Tahoma; font-weight:bold; font-size:12px;"><td colspan="2"><center>Report</center></td></tr>'+
    '<tr bgcolor="Blue" style="font-family:Tahoma; font-weight:bold; font-size:12px;"><td><center>Col1</center></td><td><center>col2</center></td></tr>'
    +
    CAST((
    Select
    td =
    col1, '',
    td
    = col2
    , '' from
    (Select ID as col1, Emp as Col2
    from
    Employee) E
    FOR XML
    PATH('tr'),
    TYPE
    AS NVARCHAR(MAX))
    + '</table><br>Thank you</br></body></html>'
    END
    select
    ISNULL(@HTML,'NoEmail')
    But I am having trouble generating alternative colors for each row (tr:nth-of-type(odd) is not working for me)
    Below is what the table should look like 
    Please help.
    Thank you for your help in advance. 

    Thank you for the response, I got the code to work.
    DECLARE @HTML NVARCHAR(MAX) ;
    IF (SELECT COUNT(*) from Employee]) != 0
    Begin
    SET @HTML = '<h1 style="font-family:Tahoma; font-size:12px;">Hi,</h1>' +
    'Below is the report'+
    '<br></br>'+
    '<table border="1" width="100%" style="border:1px solid #77bfe4;font-family:Tahoma; font-weight:normal; font-size:12px;" cellpadding="4" cellspacing="0">' +
    '<tr bgcolor="yellow" style="font-family:Tahoma; font-weight:bold; font-size:12px;"><td colspan="2"><center>Report</center></td></tr>'+
    '<tr bgcolor="Blue" style="font-family:Tahoma; font-weight:bold; font-size:12px;"><td><center>Col1</center></td><td><center>col2</center></td></tr>' +
    CAST(( SELECT CASE when (ROW_NUMBER() over (Order by Col1 DESC))%2 = 0 then '#E0E0E0' else 'white' END as "@bgcolor", '',
    td = col1, '',
    td = col2 , '' from
    (Select ID as col1, Emp as Col2
    from Employee) E
           FOR XML PATH('tr'), TYPE
    ) AS NVARCHAR(MAX)) + '</table><br>Thank you</br></body></html>'
    END
    select ISNULL(@HTML,'NoEmail')

  • Alternting row color on HEADERS

    I cannot figure out how to alternate the row color on the header columns. Personally I find it annoying if the header column is all the same color, but the table rows alternate. I find it hard to follow across the columns since I have several columns set at headers. I tried manually setting the row color, but on a sort, the colored rows are all jumbled and don't match the alternating rows on the data.

    Hi k,
    The short answer is that it can't be done.
    The longer one is that it can, but the process is tedious.
    The three images below are of the same table. The table was sorted and renamed to indicate that sort, and screen shots of the first two sorts pasted into the document before grabbing the image of all three states.
    Row 1 is a header row, and does not enter into the sort.
    Column A is a header column. When the table is formatted for alternate row colours the colours apply only to the Standard cells (columns B and C of the initial table (plus the added columns D and E).
    The cells in column A require a Conditional Formatting rule to change their fill colour to match the alternate row colour under a specific condition. One of the conditions available is that the text in the cell matches the text in another specific cell.
    The cells in columns D and E are used to set up that condition. The In the final table, D and E may be hidden.
    The formula in D is:   =MOD(ROW(),2)
    As can be seen, this places a 0 in 'even' rows and a 1 in 'odd rows.
    The formula in E is:   =IF(D>0,A,"")
    For 'odd' rows, where D contains a 1, this copies the contents of the cell on the same row in column A into column E. For 'even' rows it places the empty string into column E.
    Both formulas are filled down through all standard rows of columns D and E.
    Note that the two formulas can be combined into one:   =IF(MOD(ROW(),2>0,A,"")
    Idf the single formula is used, the steps below assume it is entered in E2 and filled down the rest of column E.
    You will need one column 'E' for each header column you want to format, with the formula in each adjusted to pick up the contents of column A, B, C, etc.
    Now comes the tedious part. The Conditional Formatting rules compare the contents of the cell to a fixed value or to the contents of a specific other cell. Unlike formulas, they to not self-adjust if we use Fill Down.
    But we can save a few steps by choosing the conditional fill colour for all cells at once, then editing the reference cell for each individually.
    • Select all of the cells in column A (and the other header columns to which you want to apply conditional formatting).
    • Open the Cell Format Inspector and click Show Rules...
    • In the dialogue that opens, use the popup to choose "Text is"
    • Click the icon at the right end of the box that appears, then click cell E2 (the first non-header cell in column E) on the table.
    • Click Edit.
    • Click the Fill color well that appears, then choose the conditional fill colour to match the alternate row colour. (Hint: Use a colour from the color palette—easier to match)
    • Click Done to confirm the choices.
    •Click away from the selected cells to release the selection, then click on A3 to select just that cell.
    Repeat the following until you're through the column.
    • Click on the E2 reference in the box beside "Text is" to select it.
    • On the table, click on the cell to be referenced (it will be the one below the cell indicated by a blue outline). The E2 reference in the rule will change to the new cell.
    • Press return to confirm the new selection.
    • Press return again to move down to the next cell.
    Repeat.
    It works, but it certainly ain't elegant!
    You might also consider going to the Application menu (in Numbers, the "Numbers" menu), choosing Provide Numbers Feedback, and making a request that the alternating row colour feature be enhanced to apply to alternate row in a header column as well as to standard cells. Be prepared to wait, though, at least until the next full version of Numbers is released.
    Regards,
    Barry

  • Row color changes

    Hi,
    I read somewhere a while ago and I don't remember if it was in JSF using datatables but is a property that will allow me to display a table change the background color for each row for example row 1 will be of gray row 2 on white in another words the even row will be white the odd row will be gray
    Thanks

    JSF<h:dataTable rowClasses="row1, row2" />CSS.row1 {
        background-color: #bbb;
    .row2 {
        background-color: #ddd;
    }

  • Displaying row color issue...

    I have a html table output having 20 rows (fixed).
    <% for loop {............%>
    <tr>
    <td>
    Value 1
    </td>
    <td>
    <%= value1 %>
    </td>
    </tr>
    <tr>
    <td>
    Value 2
    </td>
    <td>
    <%= value2 %>
    </td>
    </tr>
    <tr>
    <td>
    Value 3
    </td>
    <td>
    <%= value3 %>
    </td>
    </tr>
    <% } %>
    ..............goes until value 20. Instead to hard code each row color in each TR, I want to build some logic to display row color in blue/white alternatively.
    Any idea?

    Please find the example for the alternate color, this will work not only for fixed table size but also for dynamic table size...
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <script language="Javascript">
         function alternate(id) {
              if(document.getElementsByTagName) { 
                   var table = document.getElementById(id);  
                   var rows = table.getElementsByTagName("tr");  
                   for(i = 1; i < rows.length; i++) {          
                        //manipulate rows
                        if(i % 2 == 0)
                             rows.className = "even";
                        else
                        rows[i].className = "odd";
    </script>
    <style type="text/css">
    .odd{background-color: '#EEEDF0';}
    .even{background-color: '#DFE8F2';}
    </style>
    </HEAD>
    <BODY onLoad="alternate('theTable')" bgcolor="#EEEDF0" >
    <u>This is an example of alternating row colors:</ul>
    <table id="theTable" cellspacing="0" cellpadding="0" >
    <tr bgcolor="#BECFDA">
         <td>Vehicle Model</td>
         <td width="50"></td>
         <td>Account Number</td>
         <td width="50"></td>
         <td>Status</td>
         <td width="50"></td>
         <td>Amount</td>
    </tr>
    <tr>
         <td>2003 XRS</td>
         <td width="50"></td>
         <td>345334254</td>
         <td width="50"></td>
         <td>Processing</td>
         <td width="50"></td>
         <td>$243.21</td>
    </tr>
    <tr>
         <td>2003 TRY</td>
         <td width="50"></td>
         <td>11098544</td>
         <td width="50"></td>
         <td>Processing</td>
         <td width="50"></td>
         <td>$481.21</td>
    </tr>
    <tr>
         <td>2003 FRS</td>
         <td width="50"></td>
         <td>345334254</td>
         <td width="50"></td>
         <td>Processing</td>
         <td width="50"></td>
         <td>$50</td>
    </tr>
    </table>
    </BODY>
    </HTML>
    -Bala

  • How do I create a 1d array that takes a single calculation and insert the result into the first row and then the next calculation the next time the loop passes that point and puts the results in thsecond row and so on until the loop is exited.

    The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
    The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
    pear to be working or at least I am not getting any indication on the inidcator.
    Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
    Attachments:
    regulation_tester_7_loops.vi ‏244 KB

    I didn't really have time to dig in and understand your program in depth,
    but I have a few tips for you that might things a bit easier:
    - You use local variables excessively which really complicates things. Try
    not to use them and it will make your life easier.
    - If you flowchart the design (very similar to a dataflow diagram, keep in
    mind!) you want to gather data, calculate a value from that data, store the
    calculation in an array, and loop while the time is in a certain range. So
    theres really not much need for a sequence as long as you get rid of the
    local variables (sequences also complicate things)
    - You loop again if timepassed+1 is still less than some constant. Rather
    than messing with locals it seems so much easier to use a shiftregister (if
    absolutely necessary) or in this case base it upon the number of iterations
    of the loop. In this case it looks like "time passed" is the same thing as
    the number of loop iterations, but I didn't check closely. There's an i
    terminal in your whileloop to read for the number of iterations.
    - After having simplified your design by eliminating unnecessary sequence
    and local variables, you should be able to draw out the labview diagram.
    Don't try to use the "insert into array" vis since theres no need. Each
    iteration of your loop calculates a number which goes into the next position
    of the array right? Pass your result outside the loop, and enable indexing
    on the terminal so Labview automatically generates the array for you. If
    your calculation is a function of previous data, then use a shift register
    to keep previous values around.
    I wish you luck. Post again if you have any questions. Without a more
    detailed understanding of your task at hand it's kind of hard to post actual
    code suggestions for you.
    -joey
    "nelsons" wrote in message
    news:[email protected]...
    > how do I create a 1d array that takes a single calculation and insert
    > the result into the first row and then the next calculation the next
    > time the loop passes that point and puts the results in thsecond row
    > and so on until the loop is exited.
    >
    > The attached file is work inprogress, with some dummy data sp that I
    > can test it out without having to connect to equipment.
    > The second tab is the one that I am having the problem with. the
    > output array from the replace element appears to be starting at the
    > index position of 1 rather than 0 but that is ok it is still show that
    > the new data is placed in incrementing element locations. However the
    > main array that I am trying to build that is suppose to take each new
    > calculation and place it in the next index(row) does not appear to be
    > working or at least I am not getting any indication on the inidcator.
    >
    > Basically what I am attempting to do is is gather some pulses from
    > adevice for a minute, place the results for a calculation, so that it
    > displays then do the same again the next minute, but put these result
    > in the next row and so on until the specifiied time has expired and
    > the loop exits. I need to have all results displayed and keep building
    > the array(display until, the end of the test)Eventually I will have to
    > include a min max section that displays the min and max values
    > calculated, but that should be easy with the min max function.Actually
    > I thought this should have been easy but, I gues I can not see the
    > forest through the trees. Can any one help to slear this up for me.

Maybe you are looking for