Adding color to one column of a table

I am trying to make the first column light blue where it says
Eagle Forum Alerts. Here is the site:
http://www.indianaeagleforum.org/index.html
I assume the code is bgcolor=#Cddceb; Where do I put it so that
only this column is light blue? Either the whole table is blue or
the whole table is white. I just want one column blue. Thanks for
your help.
Diana Hunter

On Sat, 09 Aug 2008 00:32:14 +0200, Michael Fesser
<[email protected]>
wrote:
>
>Not good.
Yes I know Micha - I've only done it very, very occasionally
sorry :-)
>If you want the text in an entire column to be centered,
you
>should apply classes to these cells instead of making
them table
>headings. Currently that's the only "right" way.
Yes Micha - I sort of knew that - it's just that I have
tables that
contain long schedules of data and just find it tedious
putting that
into about 30 to 150 rows :-)
and Dw can't do it in design view - can it ?
> There's no guarantee
>either that a table heading will always appear centered
by default!
>It's just a recommendation, you shouldn't rely on it.
I haven't found any problems in the main browsers -
IE6&7, FF, Safari
& Opera - not sure about some of the *nix browsers that
aren't based
on FF, WebKit ( as does Safari ).
>For such purposes I always have these classes in my
default CSS:
>.ac {text-align: center}
>.al {text-align: left}
>.ar {text-align: right}
good idea - I'll borrow that - thanks :-)
>If I want an entire table column to be centered, I simply
add a
>class="ac" to each cell there. Since most of my data
tables are created
>by PHP scripts, I can do this quite conveniently and
automatically.
sadly I've not done that with php yet - most of the tables
are
historical data - I'm given in spreadsheet or Word table
form.
>
>Another possible solution (at least in some cases) would
be to play with
>the more advanced CSS selectors like adjacent sibling and
first child.
>For example to address the second cell in each row you
could use
>
>td:first-child+td {...}
>
>Works well in modern browsers, but will fail in IE 6 and
below, though.
Thanks for the reminder - i did read about these in Meyer's
Definitive
Guide, but that was about a year ago -
>
>Personally I can live with that, since IE 6 usage is
constantly
>dropping. For me IE 6 is becoming the next NN 4 - I just
make sure that
>the site's content is available and usable, but I don't
really care too
>much about any graphical glitches or missing CSS effects
anymore.
I'm rapidly coming to the same conclusion. Just checked my
logs and
IE6 is between 13 and 25%.
thanks again for your guidance.
~Malcolm~*...
~*

Similar Messages

  • After adding one column in a table can't get the header line

    hi all,
    i have make a SMART FORM which was working perfectly.Now the requirement of user is to add one column in my table at smart form which i did and after modification i execute it it give me data as well but issue which i'm facing is that the TABLE at smart forms in which i have add one field is not displaying the HEADER LINE which i have define with SELECT PATTREN option.
    Thanks & Regards,
    sappk25

    Hi,
    Have you created the Header Text? If yes, then might be the case that your smartforms
    table which was already created is with Multiple Line. Check weather you have added
    customer field in Header Line or Not?
    Regards,
    SUjeet

  • How to get one column of ALV table as dropdown by key.

    Hi experts,
                  How can I get one column of ALV table as dropdown and editable. If  user wants to change that column value he can just select from that dropdown and click on update button. Can I provide tool tip to that column as " Select from drop down to change the status "?
      Please Help.
    Thanks,
      Pratibha

    You just need to change the cell editor of that column in ALV.
    So first get access to the alv model object (adjusting the code below for your ALV Component Usage name - mine was ALV_ADV):
    DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_alv_adv( ).
      IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
        l_ref_cmp_usage->create_component( ).
      ENDIF.
      DATA l_salv_wd_table TYPE REF TO iwci_salv_wd_table.
      l_salv_wd_table = wd_this->wd_cpifc_alv_adv( ).
      DATA l_table TYPE REF TO cl_salv_wd_config_table.
      l_table = l_salv_wd_table->get_model( ).
    Then access the column object you want to change:
    DATA l_column TYPE REF TO cl_salv_wd_column.
      l_column = l_table->if_salv_wd_column_settings~get_column( 'REGION' ).
    Then create the cell editor for DDLB and set it as the new cell editor for this column:
    DATA ddlb TYPE REF TO cl_salv_wd_uie_dropdown_by_key.
      create object ddlb
        exporting
          selected_key_fieldname = 'REGION'.
      ddlb->set_tooltip( `Select from drop down to change the status` ).
      l_column->set_cell_editor( ddlb ).

  • How do I add more than one column to a table using SQL?

    Hi
    I need to add 3 columns to a table using SQL
    the syntax
    "ALTER TABLE TEST ADD COLUMN newcol1 float";
    works fine - for adding one coumn only.
    For multiple columns I tried various permutations along the lines of
    "ALTER TABLE TEST ADD (COLUMN newcol01 float, COLUMN new2 float,COLUMN new3 float)";
    "ALTER TABLE TIPSTEST ADD COLUMN new1 float"
    "ALTER TABLE TIPSTEST ADD COLUMN new2 float"
    "ALTER TABLE TIPSTEST ADD COLUMN new3 float"
    etc., but this doesn't work.
    From a web search it sounds like SQL can only add one column at a time.
    I have a workaround : create intermediate temporary tables , copying data and adding
    one column at each stage. It seems a fairly awkward way of programming though.
    Am I missing something simple : is there a way to add multiple columns in one go?
    Thanks

    OK : solved an underlying problem with this one myself
    for the code
    String createString;
    createString =  "select COFFEES.* INTO NEWCOFFEES FROM COFFEES"; // example
              Statement stmt;
              try {
                   stmt = a_Globals.database1Connection.createStatement();
                          stmt.executeUpdate(createString);
                   stmt.close();
                   a_Globals.database1Connection.close();
              } catch(SQLException ex) {
                   System.err.println("SQLException: " + ex.getMessage());
              }                    commenting out the line:
    a_Globals.database1Connection.close();
    Allowed the subsequent SQL statement(s) to work OK. Looks like this was the cause of several
    difficulties, preventing me doing several SQL instructions in turn.
    Thanks for the responses.
    Mike2z

  • Change color of one column in chart

    Hi
    is there a way to change the color of just one column in a column chart? I want to highlight one column but I can't seem to select just that column.
    Thanks

    Welcome to Apple Discussions
    Click on the table to select it then click on the letter column heading to select the desired column. Now go to the object inspector & select Color Fill from the drop-down menu if it's not already chosen then click on the color box to bring up the color chooser. Select the color you want to fill the column.

  • Rights on one column in a table

    hi every body,
    through ORACLE ENTERPRISE MANAGER i can give rights for only 1 column in a table.
    but i want to give rights on only 1 column in a table through TOAD OR SQL.
    for example grant update on employees to rehan (update rights on employees table to rehan)
    i want to do same work for only 1 column.
    plz tell me
    thanks
    rehan

    user10204771 wrote:
    hi every body,
    through ORACLE ENTERPRISE MANAGER i can give rights for only 1 column in a table.
    but i want to give rights on only 1 column in a table through TOAD OR SQL.
    for example grant update on employees to rehan (update rights on employees table to rehan)
    i want to do same work for only 1 column.
    plz tell me
    thanks
    rehanPlease note that Enterprise Manager has no power to create privileges (or anything else) that cannot be done with toad or any other client interface. Almost everything you do in EM has an option to "show sql". That shows the sql that EM will submit to the db engine, and that same sql can be submitted from any other client interface.

  • Need to change color of one column's value depending on the other column

    Hi,
    i have a search form which displays two column values
    First column value's colour should be based on second column's value
    For example, if second column has values 'Active', 'Inactive' and 'Pending'
    If 'Active' , the first column value's color sholud be 'red'
    If 'inacitve, another color ....
    Thanks in advance,

    Hi!
    What we did was we added a column on the VO that returns kind of a css part (for example if a column value is 'Active' the value of this column should be "background-color:rgb(255,0,0);")
    Than you use something like this on your column:
    inlineStyle="#{row.StatusStyle}"where StatusStyle is the name of the column with "background-color:rgb(255,0,0);" value.
    The problem here can be that the background color doesn't cover the whole column but only the text in it (so if it is null, the color is default).
    If you want the whole column to be of this color you use something like this:
                                        <af:column ...>
                                          <afh:tableLayout ...>
                                            <afh:rowLayout ...>
                                              <afh:cellFormat inlineStyle="#{row.StatusStyle}" ...>
                                                <af:outputText ...>
                                                </af:outputText>
                                              </afh:cellFormat>
                                            </afh:rowLayout>
                                          </afh:tableLayout>
                                        </af:column>Basically you put another table layout inside a column instead just a outputText (or whatever control you use)
    Hope this is understandable and it helps :)
    It works for us.
    BB

  • Need to update one column of all table in that particular schema

    hi all,
    i am using db10g.
    my task is to update one particular column's value of all the table in that schema.
    to acheive the above
    do i have to write update statement for each table or is there any way to do it in bulk?
    i hope my question make sense.
    Thanks..

    Hi karthick,
    I want to know something which is not related to this thread .
    How to include formatted post while replying to thread .
    I know using will be used  format  code before posting  . But how can we  do  it for posted message .
    I hope you understand my question .
    Thanks in advance .                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to make one column only in table control automatically filled in ?

    Hi ,all.
    I meet an issue while doing my screen programming. I have a table control on screen which has a few of column. And I want to display date in my first column each row automatically when user open that table/table control. All other column must be in empty in order to let user key in.
    Hope anyone can help me in this issue.
    Thanks in advance.

    Hi
    Flow Logic:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_2209.
    MODULE GET_DATA.             "enters required no of dates in ur itab
    loop at itab with control TBL1.
         module POPULATE_TBL.     "fills date col alone in tbl ctrl
    endloop.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_2209.
    loop at itab.
       module UPDATE.
    endloop.
    Code:
    *& Report  YFEB2_SCREEN_TBL                                            *
    REPORT  YFEB2_SCREEN_TBL                                            .
    TABLES: YSTUDENT.
    CONTROLS TBL1 TYPE TABLEVIEW USING SCREEN 2209.
    DATA: OK_CODE LIKE SY-UCOMM,
          itab TYPE TABLE OF YSTUDENT WITH HEADER LINE,  "ystudent is the db tbl i use
          WA LIKE LINE OF ITAB,
          v_date like sy-datum.
    v_date = " initialise to start date.
    CALL SCREEN 2209.
    *&      Module  GET_DATA  OUTPUT
    *       text
    MODULE GET_DATA OUTPUT.
      do 10 times.
         itab-date = v_date.
         append itab.
         v_date = v_date + 1.
      enddo.
    ENDMODULE.                 " GET_DATA  OUTPUT
    *&      Module  POPULATE_TBL  OUTPUT
    *       text
    MODULE POPULATE_TBL OUTPUT.
        MOVE ITAB TO YSTUDENT.
    ENDMODULE.                 " POPULATE_TBL  OUTPUT
    *&      Module  UPDATE  INPUT
    *       text
    MODULE UPDATE INPUT.
    WA-DATE = YSTUDENT-DATE.
    WA-ID = YSTUDENT-ID.
    WA-NAME = YSTUDENT-NAME.
    INSERT YSTUDENT FROM WA.
    ENDMODULE.                 " UPDATE  INPUT
    *&      Module  STATUS_2209  OUTPUT
    *       text
    MODULE STATUS_2209 OUTPUT.
    SET PF-STATUS 'BACK'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_2209  OUTPUT
    *&      Module  USER_COMMAND_2209  INPUT
    *       text
    MODULE USER_COMMAND_2209 INPUT.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
      WHEN 'BACK'.
        LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_2209  INPUT
    If you have a specific date upto which you want you can declare a var for that and while filling the itab you can use it in condition.
    Hope this helps
    Regards,
    Jayanthi.K

  • Adding a different total column in pivot table

    Hi,
    I'm trying to create a dinamic table, with "client" in rows, "family" and "subfamily" in columns and "units" as measure. What I want to do is to add another column with oher measure (year accumulate units) at the right of the dinamic table showing the Total of the measure for client.
    It would be something like this:
    Family1 | Family2 | |
    Subfamly1 | Subfamily2 | Subfamily3 | Total Units | Total year accumulate
    Client1 10 35 20 65 256
    Client2 20 15 10 45 1231
    I'm working with MS word Bi Publisher add-on, but I don't know how to modify the "xsl" code to obtain this.
    Can anyone help me?
    Thank you very much,

    This sounds like a standard requirement in most of the reports. You just need to change your data model. Group by wbs code and put a summary column. However, I cannot explain it any better without seeing your report. Neither can Oracle Team
    Regards
    ~Ajay
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Roselink1:
    I making changes to a developed report using Reports 2.5 and I need to add a subtotal column at the change of wbs code.in other words I have A26,A27,A28.
    At the end of A26, I would like to have subtotal column, and then when I get to A27, another subtotal and so forth.
    Can I do this on the query or what approach should I take.<HR></BLOCKQUOTE>
    null

  • How can I color just one row in a table?

    Hello,
    I'm implementing cut/copy/paste and I want that when I perform cut the row color will be pale/ghost than the regular selectionRow background. And I want this pale color to stay for this row regardless if I select now other rows. I need it for JTable, JTree & JList. So my question is how can I color a row in those components (permanently - till I release it)
    Thanks
    Bnaya.

    Hi,
    for a JTable I would suggest the following:
    1.in the body of the class
    int ghostrow = -1;
    Color ghostColor = Color.lightGray; // for example2. overwrite the prepareRenderer-method this way
    public Component prepareRenderer(TableCellRenderer render,int row, int column) {
    Component c = super.prepareRenderer(renderer,row,column);
    if (row==ghostrow) c.setBackground(ghostColor);
    return c;
    }3. add a method in your JTable subclass for setting of the ghostrow like this, in order to force the JTable to update its display after setting ghostrow
    public void setGhostRow(int row) {
    TableModel tm = getModel();
    int currow = tm.getRowCount();
    int oldrow = ghostrow;
    ghostrow = -1;
    if (row<currow) ghostrow = row;
    // next 2 rows in normal mode displayed, because it will not print the greater than symbol correctif ((oldrow>-1) && (oldrow<currow)) tableChanged(new TableModelEvent(tm,oldrow));
    if ((ghostrow>-1) && (ghostrow<currow)) tableChanged(new TableModelEvent(tm,ghostrow));
    For the other classes, you want this effect to happen in, try to find a similar method, that is central and do it in a similar way there.
    greetings Marsian

  • Showing multiple column name in one column of a table

    Hi
    I have a table like below
    Emp_No Sal
    P101 10000
    P102 20000
    P103 30000
    P104 40000
    Now I have a requirment to show like below only
    Emp_No
    Sal
    No values.
    Please help

    user12838764 wrote:
    Now I have a requirment to show like below only
    Emp_No
    Sal
    select column_name from All_Tab_Cols where table_name = <table_name>;Vivek L

  • How to Embedded a Graph for one column in pivot table in OBIEE 11.1.1.7.0

    Hello,
    Please let me know how to achieve the below requirement
    I have to display the report with time , section, total students, passed ,failed and display column which as to be a red and green notation..Is it possible to build a report as below?
    Time
    section
    Total students
    Passed
    Failed
    Display column
    2009
    SA_A
    100
    90
    10
    Thanks for the Help!! Highly Appreciated!!
    Thanks
    SR

    Hi Sr,
    There is Trails view in Result . which is newly introduced by Oracle.
    With the help of this you can achive this solution.
    Thanks & Regards
    Rahul

  • Adding URLs as a column in a table

    Hi there,
    I am currently trying to design a PowerView report in Excel and I was wondering it is possible to add a hyperlink column?
    This is for an IT Support Service and the idea is that users can open the case in our Service Portal by clicking on the links.
    Is this possible at all? If not, then please consider this a dire feature request :)
    Regards,
    P.

    Any suggestions for PMDCI?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Triggers to update one column on 3 tables

    hi,
    I've three tables:
    TABLE TN:
    COD_ID.........VARCHAR2(32) primary key
    NAME...........VARCHAR2(64) NOT NULL
    COD_ID..............NAME
    A12.................AT32
    A13.................AT33
    A14.................AT35
    A30.................AT32
    TABLE TM:
    ID_X..........VARCHAR2(32) PRIMARY KEY
    NAME..........VARCHAR2(64)
    ID_X..............NAME
    A12
    A13
    A14
    A30
    TABLE TL:
    COD_ID..........VARCHAR2(32) FOREIGN KEY ON TN
    ID_X............VARCHAR2(32) FOREIGN KEY ON TM
    TL_ID...........VARCHAR2(32) PRIMARY KEY
    NAME............VARCHAR2(64)
    I'd like to create triggers (or procedure) that update automatically the value NAME in the tables TM and TL.
    for example:
    If I insert into TN a new COD_ID (A39) and a new NAME (AT38), when I insert a new ID_X in tble TM, I'd like
    to have the value AT38 in NAME of TM, and when I insert a new record in table TL I'd like
    to have the value AT38 in NAME of TL.
    Also when I update NAME of TN.
    I tried with these triggers:
    CREATE OR REPLACE TRIGGER TN_PR_BEFORE_UPD
    BEFORE UPDATE OF NAME ON TL
    FOR EACH ROW
    DECLARE
    tmpVar NUMBER;
    BEGIN
    update TL set NAME=:new.NAME where TL.COD_id=:new.COD_id;
    UPDATE TM SET NAME=:NEW.NAME WHERE ID_X=:NEW.COD_ID;
    END TN_PR_BEFORE_UPD;
    CREATE OR REPLACE TRIGGER TN_COD_ID
    BEFORE UPDATE OF COD_ID ON TL
    FOR EACH ROW
    BEGIN
    SELECT NAME INTO :NEW.NAME FROM TN WHERE TN.COD_ID=:NEW.COD_ID;
    END TN_COD_ID;
    CREATE OR REPLACE TRIGGER TL_pr
    BEFORE UPDATE OF NAME ON TL
    BEGIN
    UPDATE TM SET NAME=:NEW.NAME WHERE ID_X=:NEW.ID_X AND :NEW.ID_X IS NOT NULL;
    END TL_pr;
    CREATE OR REPLACE TRIGGER TL_PR_BEFORE_INSERT
    before INSERT ON TL
    FOR EACH ROW
    DECLARE
    tmpVar varchar2(64);
    BEGIN
    SELECT NAME
    into tmpVar
    FROM TN
    WHERE COD_ID=:NEW.COD_ID;
    END TL_PR_BEFORE_INSERT;
    when I update TN triggers run CORRECTLY but when I insert a new record in TM, TN, TL I don't see a new NAME.
    What I wrong??
    Thanks
    Raf

    Use when updating then insert into table_name
    and
    when inserting then insert into table_name
    clauses in your Triggers to do this

Maybe you are looking for