Line color Alt in grouped output

I have always used the following code to the colors of the other line in a CFOUTPUT table:

< tr bgcolor = "#IIf (query.currentRow Mod 2, DE('cfcfcf'), DE('eeeeee')) #" >

However, when I use this code in a table with a group outing, I get unpredictable line colors. For example, the first two lines will be color1, the next two color2, then the next few lines will be displayed in alternation as I want.

I enclose the code that I currently train.

Any ideas how to get line alt colors to display properly? Thanks in advance...

Sorry, my initial search to find the answer came up to nill. When I tried again I found the answer which I'm pasting below. It was working fine.

===========================================================================
When you use the CFOUTPUT GROUP attribute, your data is no longer in the same order in which it was recovered. the CURRENTROW variable is no longer in chronological order (you display the first element grouped, then 1-n members of this group, then repeat).

You must define an iteration variable.



(now use 'myRowCountVar' to the key off to determine the color of background rather than currentrow)

troublemaker of Charlie (CJ)
http://Charlie.griefer.com
@ #coldfusion / DALnet
=================================================================================

Tags: ColdFusion

Similar Questions

  • Help needed Illustrator - apparently is no longer able to change the line color of the open/closed contours.

    Hi, I'm new (very) to Illustrator so please go easy. I'm in a bit of a pickle and would very much help to get out!

    I created an illustration using the pen tool, making a series of paths open and closed (below), all stroked them in the color purple. I then used the Shapebuilder Ranger a few areas of intersection.

    Later, I started using live paint to color block the form contained in the paths, however, when I try to change the outline of these 'forms' that won't happen.

    I tried releasing the images of live paint and changing the line color of the sketch (i.e. opening and closing original tracks), but this does not work either.

    Any advice?

    Thanks in advance,

    Will be

    screen grab.png

    Inside a live paint group you must activate the coloring of the traits.

    To do this, double-click the live paint tool.

    When you expand a live paint group, fills and strokes is separated. You get a group that has all the traits and another which has fillings.

    You will need to inspect it in the layers panel, and then select the Group of traits in order to change.

  • Alternation of ordered by value line color

    Hello

    I created a report commissioned by the COUNTRY column. Then I added a hidden column called COLOR with a value of switching between "#FFFFFF" and "#F0F0F0" every time that we have another country in the report.
    Now I want the background color of each row so that the value of the COLOR column of the den.

    How can I achieve this? Do I need dynamic action?

    Concerning
    Felix

    Felix wrote:

    The report is on Page 1 and has a hidden column BG_COLOUR.
    A copy of the standard model was made (Standard with row coloring) with a small improvement model of the line:

    The method on the bound thread requires that a report model named column (model line) is used. A copy of the Standard model is a generic of columns (column model).

    It is actually possible to do using each model type, as I have shown in your workspace. It is necessary to match the appearance of the theme in a new model of the named column, copy songs to the standard report template definition in the relevant parts of the new model. (Most of the themes do not come with a model name of existing column, you can copy from).

    #COLUMN_VALUE#
    

    The background color should be read from the BG_COLOUR column.

    Rather than specify colors directly in the query/HTML template a better approach is to use a class name and specify the real colors in separate CSS. This translates into simpler, smaller models and the generated HTML code.

    For a named column model I followed the instructions related to above, creating a new "clients per country" named column of the model, with a definition before lines copied from the Standard report - more a custom - class theme and column headers required by the report:

    
      #TOP_PAGINATION#
      

    1 model line defined as:

    The report query was then changed to:

    select c.customer_id,
           c.cust_first_name,
           c.cust_last_name,
           n.country,
           case
               when mod(n.num,2) = 1
               then 'data'
               else 'dataalt'
           end row_class
    ...
    

    Note that the Show column attribute must be checked for the ROW_CLASS column: it is compulsory for all the columns that are issued somewhere in the HTML template, even if they are not actually visible to the user.

    And a style sheet embedded, added to the header HTML page:

    
    

    Using another approach, I created a custom generic column "Standard, line colors" alternative model column ALT as a copy of the alternative model "Standard, line colors. The only change here is to change the column model 1 Condition of use PL/SQL Expression functionand Expression of column Temlpate 1 to

    #ALT# = '1'
    

    Then change the query to:

    select c.customer_id,
           c.cust_first_name,
           c.cust_last_name,
           n.country,
           mod(n.num,2) alt
    ...
    

    The second generic columns is probably better here because it's easier to implement, more flexible and reuses the CSS of the current theme. This model can be reused for any report that it can generate a column ALT that toggles between '1' and a different value. The model of the named column can only be used by reports that return 5 columns with these names.

  • Line color help

    Hello
    I have a. Model RTF I change from a colleague that I don't get a lot of help on. My problem is when the preview of the. Model RTF using PDF my line colors appear no different for each line. The model is very good when you do not group but I think that the grouping of the report causes this problem. Can someone take a look at my model and/or shead know everything about this subject? Thanks advance.

    Hi Charles

    You missed this

    http://winrichman.blogspot.com/search/label/grouping

  • Is it possible to create a spreadsheet Numbers alternating line colors I choose (rather than just a line alternating color)?

    Is it possible to create a spreadsheet Numbers alternating line colors I choose (rather than just a line alternating color)?

    Hi tochan,.

    No, but it is possible to create this look.

    Procedure:

    Open a table.

    Format > table

    Check the alternative line color. The yellow value.

    Click the form button, select the rectangle.

    Click the shape to select it.

    Format > Style

    Set the fill color to green.

    The border value without border.

    Move the shape to align with the upper left corner of the table.

    Drag the handle at the bottom right of the form to the lower right of the table.

    Go to organize > Send to back (or backward and repeat until the form is behind the table, and the Green shape is visible through the non colored lines).

    Note that the form is independent of the table. If the lines are added to the table, alternating lines will continue to have the yellow filling, as it has been applied to the table itself, but the lines between indicate white background, until the shape is expanded to match the size of the table.

    Select the Table (by clicking on the 'target' at the top left.

    Go arrange > Send backward. (Repeat if necessary until the form is in the front of the table)

    Select the shape.

    Resized according to the table.

    Go arrange > Send backward.

    Kind regards

    Barry

  • Alternating line colors

    Hi all

    OK, I ticked the box of alternating line colors, selected my color, but you want to color the other lines, I'm sure it's easy but I'm stuffed if I know how to do this. It may be down manually, but I want to do this automatically because it is a spreadsheet live transaction that will evolve over time.

    I tried color all of the table 'Cell' and then 'Fill', and then clicked on the box of the alternating line colors, but the color stays the same in every other row according to the shade was selected in the option ' Cell ' / ' fill ', regardless of me dirty around with the shade etc.!

    Of course possible to choose what color I want when you select the line alternating color option, but is it possible to choose what color goes in the other lines?

    Thank you

    Graeme

    the background color of cell goes too spare line color.

    The only way I could achieve this goal is to leave the the cell fill color 'NONE' then turn the color of line replacing in table formatter then add a rectangle filled with the color I want and place it behind the table.

    Like this:

    Select the green rectangle, put in the background by using the menu item "organize > background.

    Now drag the rectangle behind the table:

  • White with vertical lines colored on Equium A60

    Hello

    I'm new on this but really need your help. My laptop is around the age of 18 months and has always worked well. Last week, I plugged modem broadband via Ethernet cable and configure the broadband services. A few minutes after doing this, when I looked back to the screen, he went all white with vertical lines colored it. I rebooted the machine etc and that's all I ever get now. As soon as I turn on, it will just right to white with these colored vertical lines.

    I tried to connect an external monitor to it and that works very well. The laptop is a Toshiba Equium A60. I'm worried that the screen is burned, it is possible for a power surge or something like that to go down the Ethernet cable and the screen shot?

    Thank you

    Adrian

    Display features has nothing to do with the Ethernet cable. Test with external monitor is very good, and on this way, you can see if the graphics card is perhaps responsible for that.

    From your description, I think that the view is the problem. Of course, just intensive display test can give more answers.

  • change the color of a group of radio

    Hello

    I'm trying to change the color of a group of buttons (selection), but for some reason, it does not... Here's what I did

    Put code in accordance with article Next Page Edit-> JavaScript-> Execute when the Page loads
    styleButtonsInGroup ("P24_TIME_REPORTING_CATEGORY");


    Change the Page-> HTML header and the Body attribute
    < style type = "text/css" >
    .radioUnselected {border: 1px solid transparent; background-color: transparent; color: black ;}}
    .radioSelected {border: 1px solid #91A5C4; background-color: #91A5C4; color: white ;}}
    < / style >
    < script type = "text/javascript" >
    function styleButtonsInGroup (g)
    {
    $("#"_+_g_+_"input[type='radio']").each (function)
    {
    ID var = $(this) .attr ("id");
    If ($(this) .attr ("checked"))
    {
    $(this) .parent ().removeClass("radioUnselected").addClass ("radioSelected");
    }
    on the other
    {
    $(this) .parent ().removeClass("radioSelected").addClass ("radioUnselected");
    }
    });
    }
    < /script >


    I put a sample on APEX. ORACLE.COM


    Thanks in advance

    Published by: qwe12654 on May 21, 2011 10:58

    added
    OnChange =-'styleButtonsInGroup ("P24_TIME_REPORTING_CATEGORY")';

    in the attributes of html form elements

    Kind regards
    Shijesh

  • Alternate line color for the CF Builder report?

    I have a user who wants one of its reports to display line colors alternated for clarity of reading. The reports are quite long and the lines tend to blend in with eachother.

    The I have to handle this is to put a gray rectangle behind the values that spans the entire detail section. Then, in the section 'Print Control' of the 'Properties' toolbar, I'll put the equation 'request. CurrentRow mod 2 ''. In this way he band background will only color every two rows.

  • Conditional line colors

    Hi all

    I have a column in a table that can take 3 different values. I wish that the police on the line in the APEX report to change according to the value. I have the following case statement:

    CASE
    'PRIORITY' = 1
    THEN ' < span style = "color: Red:'"
    || ' make-weight: bold; font-size: 14 "> '"
    || "PRIORITY."
    || "</span >.
    WHEN 'PRIORITY' = 2
    THEN ' < span style = "color: orange:'"
    || ' make-weight: bold; font-size: 14 "> '"
    || "PRIORITY."
    || "</span >.
    WHEN 'PRIORITY' = 3
    THEN ' < span style = "color: black:'"
    || ' make-weight: bold; font-size: 14 "> '"
    || "PRIORITY."
    || "</span >.
    OTHER "PRIORITY".
    END

    I get the error "columns that use HTML need to alias names.

    I tried to add ' PRIORITY 'priority' over the investigation of the case, in the main select statement, but it gives me "ORA-00923: KEYWORD not found where expected".»

    Basically I want the entire line coloring on a priority basis. The column name is supposed to be the "priority."

    If anyone can help, or knows a better way to do it, let me know!

    Thank you

    Joe

    Hello

    Try using:

    '#Priority#' = '1'
    

    Andy

  • FIX for generate lines of separation and GROUPING

    Oracle 11g Release 2

    I need to do this in SQL, not front-end app.

    CREATE TABLE tab2
    ( rule_order   varchar2(25)
     ,part_type_id varchar2(25)
     ,position_id  varchar2(25)
     ,note1        varchar2(500)
     ,group_id     varchar2(25)
     ,part_desc_id varchar2(25)
     ,line_cd      varchar2(25)
     ,checkup      varchar2(25)
    )
    /
    
    insert into tab2
    values(7,'AB777','LEFT',null,48,98,'ABC','NO')
    /
    
    insert into tab2
    values(12,'CC789',null,null,48,98,'EF3','YES')
    /
    
    insert into tab2
    values(14,'FFY3','REAR',null,50,99,'Y3Y','NO')
    /
    
    insert into tab2
    values(17,'789D',null,'escape',52,107,'CAB','NO')
    /
    
    insert into tab2
    values(19,'65ACD',null,null,52,107,'FAB','NO')
    /
    
    insert into tab2
    values(20,'888EF','FRONT','REMAN',52,107,'CH7','YES')
    /
    
    insert into tab2
    values(22,'760DB',null,null,72,12,'DEG','YES')
    /
    
    insert into tab2
    values(25,'535AF','FRONT',null,72,12,'BBB','YES')
    /
    
    commit;
    
    select * from tab2;
    
    RULE_ORDER   PART_TYPE_ID   POSITION_ID    NOTE1           GROUP_ID  PART_DESC_ID LINE_CD   CHECKUP
    ------------ -------------- -------------- --------------- --------- ------------ --------- ---------
    7            AB777          LEFT                           48        98           ABC       NO
    12           CC789                                         48        98           EF3       YES
    14           FFY3           REAR                           50        99           Y3Y       NO
    17           789D                          escape          52        107          CAB       NO
    19           65ACD                                         52        107          FAB       NO
    20           888EF          FRONT          REMAN           52        107          CH7       YES
    22           760DB                                         72        12           DEG       YES
    25           535AF          FRONT                          72        12           BBB       YES
    
    
    
    

    NEED OUTPUT:

    RULE_ORDER PART_TYPE_ID POSITION_ID NOTE1   GROUP_ID PART_DESC_ID LINE_CD CHECKUP
    ---------- ------------ ----------- ------- -------- ------------ ------- -------
             7        AB777        LEFT               48           98     ABC      NO
            12        CC789                           48           98     EF3     YES
             -
            17        789D              escape        52          107     CAB      NO
            19        65ACD                           52          107     FAB      NO
            20        888EF       FRONT REMAN         52          107     CH7     YES
            -
            22        760DB                           72           12     DEG     YES
            25        535AF       FRONT               72           12     BBB     YES
    
    

    RULES:

    Only interested in cases where the combination of GROUP_ID/PART_DESC_ID has two or more records.

    Then GROUP_ID/PART_DESC_ID 50/99 is not included in the output.

    Need to have a line empty (with a dash in RULE_ORDER) when GROUP_ID/PART_DESC_ID change

    ########################

    I tried to use GROUPING and CUMULATIVE, but I do not get the desired result.

    WITH  data
    AS
    (  SELECT rule_order, part_type_id,position_id,note1,group_id,part_desc_id,line_cd,checkup,
              CASE 
                  WHEN GROUPING(part_desc_id) = 0
                  THEN rule_order
                  ELSE '-'
              END   txt
       FROM (
                select rule_order, part_type_id,position_id,note1,group_id,part_desc_id,line_cd,checkup,
                       COUNT(*) OVER (PARTITION BY group_id,part_desc_id) cnt
                from   tab2
             )
       WHERE
                cnt >= 2
       GROUP BY
                group_id, part_desc_id, ROLLUP ((rule_order, part_type_id,position_id,note1,group_id,part_desc_id,line_cd,checkup))
    )
    SELECT *
    FROM   data
    order by
           group_id, part_desc_id,part_type_id,position_id ;
           
    RULE_ORDER   PART_TYPE_ID   POSITION_ID    NOTE1           GROUP_ID  PART_DESC_ID LINE_CD   CHECKUP   TXT
    ------------ -------------- -------------- --------------- --------- ------------ --------- --------- -------------------------
    7            AB777          LEFT                           48        98           ABC       NO        7
    12           CC789                                         48        98           EF3       YES       12
                                                               48        98
    19           65ACD                                         52        107          FAB       NO        19
    17           789D                          escape          52        107          CAB       NO        17
    20           888EF          FRONT          REMAN           52        107          CH7       YES       20
                                                               52        107
    25           535AF          FRONT                          72        12           BBB       YES       25
    22           760DB                                         72        12           DEG       YES       22
                                                               72        12
    
    

    It's not printing a '-' in RULE_ORDER and it must have the value NULL, GROUP_ID and PART_DESC_ID for the dividing line.

    Hello

    Rather than use the CUMULATIVE (or GROUPING SETS) fix for this, you should consider a UNION.  A branch of the UNION produced the data rows and the other lines of separation.  Foor example:

    WITH got_groups AS

    (

    SELECT tab2.*

    , COUNT AS group_cnt (*) OVER (PARTITION BY group_id, part_desc_id)

    , DENSE_RANK () OVER (ORDER BY group_id, part_desc_id) AS group_num

    Of THE tab2

    -WHERE - if you need any filtering, it's where he's going

    )

    full_data AS

    (

    SELECT *.

    OF got_groups

    WHERE group_cnt > 1

    UNION ALL

    SELECT '-', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, group_num

    OF got_groups

    WHERE group_cnt > 1

    GROUP BY group_num

    )

    SELECT rule_order, part_type_id, position_id, note 1

    group_id, part_desc_id, line_cd, health check

    OF full_data

    WHERE rule_order <> '-'

    OR group_num > 1

    ORDER BY group_num

    , LPAD (rule_order, 25)

    ;

    Output:

    BIRD BIRD

    GROUP POSITION RULE_ DESC_ LINE_ TYPE_

    ORDER ID _ID NOTE1 _ID ID CD CHECKUP

    ----- ----- -------- ---------- ----- ----- ----- -------

    7 AB777 48-98 ABC NO. LEFT

    12 48 98 EF3 CC789 YES

    -

    17 789 D escape 52 107 CAB No.

    19 65ACD 52 107 NO. FAB

    20 FRONT REMAN 52 107 CH7 888EF YES

    -

    22 72 12 DEG 760DB YES

    25 535AF BEFORE 72 BBB 12 YES

    This query generates only the lines of separation of G - 1 when there are groups of G, since you only want separators between groups, not before the first or after the last group.

  • Change the line color of Webhelp

    Hello new useful friends,

    Just try to change the color of some lines of the webhelp. I have changed one of the lines (see diagram below) using the brilliant "Skinny on Skins' help, but now also need to change the one above it. Is this possible?

    Untitled-1.png

    Thank you!

    You must change the release of webhelp

    Go to webhelp output folder and open the whskin_mbars.htm file in Notepad.

    Search

    style = "" border-top: 1px solid red; ""

    in case you want to make the border as red or any color you want.

    Thank you

    Praful

  • Another issue of alternation line color

    I used alternating colors of line before with great success, but this situation is a little different. I * grouped * data and I want each * grouped * line to have an alternating color. When I try it with the standard code, it does not work. I get the colors, but they are not alternately. My code is below. Any suggestions would be most appreciated. Thank you very much.

    < table width = "100%" border = "0" bgcolor = "#666666" >
    < cfoutput query is group of "getAllCourts" is "courtID" >
    < tr id = 'small' valign = "middle" bgcolor = "#IIf (CurrentRow Mod 2, DE('D8DCD8'), DE('C2FFC1')) #" >
    < td height = "100" width = "10%" id = "tennisText" align = "center" bgcolor = "FFFFFF" >
    < cfif isdefined("CourtID") and CourtID NEQ "" > "".


    < cfif courtID eq '1' >
    < img src = "images/number1.gif" / > "
    < cfelseif courtid eq '2' >
    < img src = "images/number2.gif" / > "
    < cfelseif courtid eq '3' >
    < img src = "images/number3.gif" / > "
    < cfelseif courtid eq '4' >
    < img src = "images/number4.gif" / > "
    < cfelseif courtid eq '5' >
    < img src = "images/number5.gif" / > "
    < cfelseif courtid eq '6' >
    < img src = "images/number6.gif" / > "
    < cfelseif courtid eq '7' >
    < img src = "images/number7.gif" / > "
    < cfelseif courtid eq '8' >
    < img src = "images/number8.gif" / > "
    < cfelseif courtid eq '9' >
    < img src = "images/number9.gif" / > "
    < cfelseif courtid eq '10' >
    < img src = "images/number10.gif" / > "
    < cfelseif courtid eq "11" >
    < img src = "images/number11.gif" / > "
    < cfelseif courtid eq '12' >
    < img src = "images/number12.gif" / > "
    < cfelseif courtid eq "14" >
    < img src = "images/number14.gif" / > "
    < cfelseif courtid eq '15' >
    < img src = "images/number15.gif" / > "
    < cfelseif courtid eq "16" >
    < img src = "images/hard1.gif" / > "
    < cfelseif courtid eq '17' >
    < img src = "images/hard2.gif" / > "
    < cfelseif courtid eq '18' >
    < img src = "images/stadiumHard.gif" / > "

    < cfelse >

    < / cfif >
    < / cfif >
    < table >

    < td >

    < id of the table = 'small' width = '100% ' cellpadding = "0" cellspacing = "0" border = "1" >
    < cfoutput >
    < b >
    < td width = "2%" height = "21" > < table >
    < td width = "8%" > #timeformat (BeginTime, "h: mm tt") # < table >
    < td width = "10%" > #timeformat (endtime, "h: mm tt") # < table >
    < td width = "15%" >
    < cfif isdefined("InstructorID") and NEQ InstructorID "" > "".

    <!-query to get the name of the instructor. ->
    < name cfquery = "getInstName" datasource = "" #request.dsn # "dbtype ="ODBC">"
    SELECT InstructorName
    OF EL_Instructor
    Where InstructorID = #InstructorID #.
    < / cfquery >

    #getInstName.InstructorName #.

    < cfelse >

    < / cfif >

    < table >

    < td width = "15%" height = "21" > #CustomerName # < table >
    < td width = "32%" > #additionalInfo # < table >
    < td width = "10%" align = "center" > < a href = "#myself #xfa.editCourtAssignment # & CourtAssignmentID = #CourtAssignmentID #& InstructorI D = #InstructorID #" > edit < /a > < table >
    < td width = "8%" align = "center" > < a href = "#myself #xfa.cancelCourtAssignment # & CourtAssignmentID = #CourtAssignmentID #& reserveDa = you #reserveDate #" > cancel < /a > < table >

    < /tr >


    < / cfoutput >
    < /table >
    < table >
    < /tr >
    < / cfoutput >
    < /table >

    Create your own ;)

  • #1# #2# #3# #4#
    #CUSTOMER_ID# #CUST_FIRST_NAME# #CUST_LAST_NAME# #COUNTRY#
















     

  • Pavilion g4: different vertical lines color, continue to change. Download fixesometime in 30-40 min. to work on it.

    It shows the different colored vertical lines. These continue to change, when I turn display down and on the rise again. Sometimes he corrected by this display rotation downwards and upwards. Sometimes half display work correctly with vertical lines on the screen half left. Someone if I play the video, then it is fixed in 20-30 min. There also get fixed when I display stand with a certain pressure (where screen and laptop are connected). If I leave the laptop on these lines, the screen comes on for 3-5 seconds and again the vertical lines are displayed. But the display work done after it is fixed. So, what's the problem?

    Hello @Ankit9,

    Welcome to the HP Forums! If I understand your message that you have a problem with vertical lines on the screen of your laptop Pavilion G4.

    From your description it looks like there may be a connection not tight since the changes in question according to the positioning of the screen, however, you can try after documents for video playback problems and a laptop LCD panel problem.

    If you need help, let me know and I will gladly make all that I can to help. If it helped to solve the problem, please mark this message as accept as a Solution.

    Thank you!

  • Show the lines colored on Satellite M70

    Hello

    I have a Satellite M70 with NVidia Go6600 256RAM.

    One day, I opened my laptop and I have all my screen with colored lines even at the beginning to the BIOS screen. I have these colored throughout my screen lines.

    It started normally with any resolution of low graphic properties 640 * 480 and 256 colors and graphics card problem always. I have reinstalled the driver, formatted my laptop, but always the same thing.

    Help, please.

    Thank you very much

    Hello

    your machine has a hardwaremalfunction definitely any. Now the question of it s if it s a defect on the motherboard or LCD screen.

    The only thing you can do is to contact a partner of service allowed in your country and ask them for help, perhaps, for a checkup of material.
    Is your machine still in warranty?

    To find the closest on in your country, you should visit the following link:
    http://EU.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/generic_content.jsp?service=EU&ID=ASP_SUPPORT

    Cheers and good luck

  • Maybe you are looking for

    • Firefox 29 all kinds of buttons in the address bar

      Since the update to Firefox 29 when I short URLs in my address bar, a long list of buttons appears next to the URL of the current page. How do I remove these? It is very annoying... Screenshot: http://imgur.com/VZQkhvQ

    • disconnecting from the server

      When I go to my yahoo mail, sometimes it comes right to the top, other times more then not, I get "Server disconnected".suggestions for why, or hod to repair...?

    • Re: Satellite Pro A200 - key stuck FN

      Hallo, I installed my vista Ultimate on my new Satellite Pro A200 but FN key does not work after you have installed the Package of added value (they work again after uninstallation). In addition to, there is an error of invalid series in support of c

    • Support of Russian language of ePrint PDF

      My printer is HP LaserJet CP1525nw, and it does not support PDF files with the Russian language in ePrint. Whenever I have send a PDF file with a Russian text in it to the printer, the printer does not print a body of the email, but does not print a

    • How to replace a HARD drive

      I need a step by step guide on how to change a HARD drive