Set back ground color to a particular cell in table view

hi,
    iam working on a jspDynpage and have a htmlb table view for which i need a way to set back ground color to a particular cell in table view, the color has to be set based on a value..is there a way to do it without using an iterator...well iam using a  cellRenderer for the table but cant find a way to set the colors...if anyone does have a way please do reply...regards

You can mention the color in <b>textview</b> as well as <b>Label as follows:</b>
      <htmlb:textView     text          = "<span style='background-color: #00FF00'>My Textview</span>"
                          design        = "EMPHASIZED" />
      <htmlb:label for =  "MyLabel"
                   text = "<span style='background-color: #00FF00'>Label </span>"
                   encode = "false"/>
Reward each helpful answer
Raja T
Message was edited by:
        Raja Thangamani

Similar Messages

  • How to get color in the final row of table view( table control)

    Hi,
    iam having a table control displayed with 10 records as output,in that i need to provide a color for the final row since it is total inorder to show difference from other records.
    Kindly advise me on this.
    Thanks & Regards,
    Nehru.

    Hi Nehru,
    Checkout [THIS|Re: set color for a particular row in table view] thread .
    [This |http://www.sapdesignguild.org/resources/htmlb_guidance/table.html#at] Might also help you.
    Regards,
    Anubhav
    Edited by: Anubhav Jain on Jan 4, 2009 7:34 AM

  • Filter report by back ground color or by condition

    I'd like to filter my report by conditions like iif(Parameter is true, Fields.speed.value > 100 or Fields.speed.value > (speedlimit +15), nothing).  I tried using Dataset filter as following set up, but it won't return the order with speed
    over 100 or over speedlimit by 15 km/h.   
    FilterExpression: [Speed]
    >
    =iif((Parameter.Boolean.value = true, 100 or (fields.Speedlimit.value +15), 0).
    Then i filter all the cell that when speed is under the condition like
    iif(speed > 100 or speed > (speedlimit+15), "PINK", "White")
    but I don't know whether I could filter report by back ground color.
    Anyone please help me with any solution. 
    thanks.

    Thank you very much for the solution.!
    It works when i select "true' for the parameter. 
    But instead of showing all orders when "false", it shows orders under condition Fields!Speed.Value>(Fields!SpeedLimit.Value+15.
    Do you have any idea why?
    all order number is 1000
     number of orders with Field.Speed.Value > 100 is 13
     number of orders with Fields!Speed.Value>(Fields!SpeedLimit.Value+15
    is 340
     number of orders with Fields!Speed.Value>100
    or Fields!Speed.Value>(Fields!SpeedLimit.Value+15  is 353
    I'm getting 353 when "True" 340 when "False"(I do want 1000)

  • How to eliminate extra white when hovering over with a back ground color?

    I just finished my menu and I notice that the hovering color is not hiding all the white.  Does someone know how to eliminate extra white when hovering over with a back ground color?
    http://www.tammyfarringtoncreative.com/test/index.html
    Thanks!

    You have heights on the ul, li as 36px and a line-height of the text of 35px so they are not matching up.  Personally speaking I would normally recommend using padding on the links to create the height and not set the height on the ul or li elements.

  • How to set Back ground job & get my desired output layout in sm36 & sm37 ?

    Hai SAP ABAP/BASIS Gurus,
    I am currently taking ME2N PO Pending value Report by setting variant in input screen & setting my own output layout  ie only four field ie.Plant, Material,Currency,Still to be delivered value will be visible in output screen
    I set Back ground in sm36 using my variant & i saw my output in sm37.. But I cant get output as my desired field..
    This is my problem..
    1) I Cant Get the Same output in shedule job [sm36 & sm37] like When i run in foreground for ME2n.
        I am using ALV Scope of list..
    2) If I use BEST Layout in Scope of list means i get the desired Output field layout as same as my foreground output field..
    I want to get the output layout as desired & also in ALV format[ Useful for excel work]
    Kindly guide me.
    Thanks in advance..
    swetha
    Edited by: Swetha SAP Girl on Jul 2, 2009 5:06 PM

    Hi Swetha,
    To get the missed fields in the spool, while creating the background job(execute in background option) you can see the printer setting block at the end of the background job settings window, in that check the 'Spool Request Max. Width 255 char' check box and then continue. It will generate the spool list with maximum width and you can see all the fields in the spool output.
    Thanks,
    Muthu
    Edited by: Muthu Prabakaran Selvam on Jul 3, 2009 2:35 PM

  • I would like to change my back ground color in one frame for a logo that i am using I am able to change it on the canvas but not on the timeline?

    I would like to change my back ground color in one frame for a logo that i am using I am able to change it on the canvas but not on the timeline?

    Are you using FCPX? It doesn't have a canvas. Do you really mean one frame, like 1/30th of a second? Add a custom generator underneath the logo. Make it whatever color you want. Make it however short you want.

  • Changing the background color of the row of the selected cell in table view

    How can I change the background color of the table row when user clicks on table cell in table view?
    Edited by: a_brar on May 5, 2012 11:12 PM

    You could apply the following css style (by defining a custom stylsheet with the following lines and loading it into your app).
    The last color sets the background color of the selected row while the table-view has focus (in this case to orange).
    .table-view:focused .table-row-cell:filled:focused:selected {
        -fx-background-color: -fx-focus-color, -fx-cell-focus-inner-border, orange;
    }There are quite a lot of subtleties in the css styling for the tableview (e.g. different colors for the selected row when the control has focus vs when it doesn't or when the user hovers over a selected row in an unfocussed tableview), which you may want to cater for when chaning the background color of the selected row in a table view. There is also alternate styling for when the tableview is in row selection vs cell selection mode. So you may want to look at customizing further based on the css styles in caspian.css in sdk/rt/lib/jfxrt.jar if you can understand the complex css there.

  • Back ground color in header

    Hi experts ,
      i want to give background color in the header of alv ..i am using header by  spliting  container in 2 parts....so how it can be possible ?
      Thanks and Regards
       Priyank Dixit

    Check the DD_STYLE_TABLE program.
    different colors.
    cl_dd_area=>col_textarea.
       cl_dd_area=>col_tree_level1.
         cl_dd_area=>col_tree_level2.
            cl_dd_area=>col_tree_level3.
           cl_dd_area=>col_tree_level4.
    when you are intializing the document you can use this method and set the background color
      CALL METHOD document->initialize_document
        EXPORTING
          background_color = cl_dd_area=>col_tree_level4.

  • How to change the background and font color of a particular row in table

    Hi,
       i need to change the background and font color of a particular row. I am using textview as table columns. I tried to do it using semanticColor property of textview  but the font color get changed for the whole column. But i want to change the color of a particular row only.
       If anybody knows please help me(give an example if possible).
           Thanks and regards.
            Pankaj Kumar.

    Hi Pankaj,
    In your data source context node (context node which is bound to dataSource property of Table UI elemennt) do following:
    If data source node is model node: create a value node under data source node, cardinality 1..1, selection 1..1, singleton false. In this new node add value attribute and set property readOnly=true, calculated=true, property com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor .
    If datasource node is value add value attribute and set property readOnly=true, calculated=true, property com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor.
    In calculated getter method put your color calculation depending on conditions, like:
    return <condition>
      ? WDTextViewSemanticColor.CRITICAL
      : WDTextViewSemanticColor.STANDARD;
    Bind new created attribute with property semanticColor of textview.
    Best regards, Maksim Rashchynski.

  • Cell Binding/Table View Iterator

    Hi Friends,
    I am getting error while editing the particular cell of column table view. when I enter the changes, they are not updating in the cell.I used the following code.
    method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS .
    APPEND INITIAL LINE TO p_column_definitions ASSIGNING <def>.
    <def>-COLUMNNAME = 'RELDATE'. <def>-EDIT = 'X'.
    method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_ROW_START .
    m_row_ref ?= p_row_data_ref.
    endmethod.
    method
    IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START .
    CASE p_column_key.
    WHEN 'RELDATE'.
    IF p_edit_mode IS NOT INITIAL.
      DATA: Rdate TYPE STRING.
      Rdate = m_row_ref->RELDATE.
      p_replacement_bee = CL_HTMLB_INPUTFIELD=>FACTORY(
                              id        = p_cell_id
                              value     = Rdate
                               type      = 'DATE'
                               VALUE = PCELL_BINDING
                                showHelp  = 'TRUE'
                                encode = 'TRUE').
    I am bit confused abt MVC.Please mail me the exact code changes to be done in MVC-Class controller.
    Regards
    CSM Reddy

    Pls check the code, & mail me back in case of any errors.
    method DO_HANDLE_EVENT .
    DATA: itabtype  type standard table of stdview1.
    DATA: tv TYPE REF TO cl_htmlb_tableview.
      tv ?= cl_htmlb_manager=>get_data(
                              request      = runtime->server->request
                              name         = 'tableView'
                              id         = 'stdview1' ).
      IF tv IS NOT INITIAL.
        DATA: tv_data TYPE REF TO cl_htmlb_event_tableview.
        tv_data = tv->data.
        IF tv_data->prevselectedrowindex IS NOT INITIAL.
          FIELD-SYMBOLS: <row> like LINE OF ITABTYPE .
         READ TABLE ITABTYPE INDEX tv_data->prevselectedrowindex
         ASSIGNING <row>.
          DATA value TYPE string.
          value = tv_data->get_cell_id( row_index    =
                       tv_data->prevselectedrowindex
                                         column_index = '6' ).
          DATA: inputfield TYPE REF TO cl_htmlb_inputfield.
          inputfield ?= cl_htmlb_manager=>get_data(
                              request      = request
                              name         = 'DESCRIPTION'
                              id           = value ).
    <row>-DESCRIPTION = inputfield->value.
    ENDIF.
    ENDIF.
    Regards
    CSM Reddy

  • Show  colored circles for a field inside table view

    HI
    I need to show Colored circles based on some conditions for a field (priority) inside a table view. HOw do i implement this solution.
    PLease help

    Hi,
    You have two possibilities:
    1. HTMLB charting
    See http://www.sapdesignguild.org/resources/ma_guidelines_3/LAYOUT/chart_types.html for more info
    2. IGS charting. See this weblog for info
    /people/thomas.jung3/blog/2004/08/31/bsp-150-a-developer146s-journal-part-x--igs-charting
    You will be certainly interested in this web log
    /people/thomas.jung3/blog/2005/09/08/igs-charting-altering-the-customizing-xml-at-runtime
    I don't know if you can combine stuff in a tableview.
    See also chart graphics
    http://help.sap.com/saphelp_nw04/helpdata/en/9b/d9883672d57c73e10000009b38f889/frameset.htm
    Alternatively, you can try out the canvas tag in new browsers like Firefox. See /people/eddy.declercq/blog/2005/12/09/blank-canvas
    for this
    Eddy

  • How to set back ground

    I have a jMenu Frame, and i am trying to set its background to black, but it seems like I am missing something here:
    jMenu.setSize( 300, 300 );
    jMenu.setLocation( 500, 500 );
    jMenu.getContentPane().setLayout( new FlowLayout() );
    jMenu.addWindowListener( new MyWindowListener() );
    // Create button for the menu frame
    JButton jbStart = new JButton("Start");
    jbStart.setActionCommand("Start");
    JButton jbExit = new JButton("Exit");
    jbExit.setActionCommand("Exit");
    JButton jbCredit = new JButton("Credit");
    jbCredit.setActionCommand("Credit");
    //Add TextField for player to enter their name
    JTextField jtPlayer1 = new JTextField( 15 );
    JTextField jtPlayer2 = new JTextField( 15 );
    // Add listener to button and text field
    jbStart.addActionListener( new MyActionListener() );
    jbExit.addActionListener( new MyActionListener() );
    jbCredit.addActionListener( new MyActionListener() );
    jtPlayer1.addKeyListener( new MyKeyListener() );
    jtPlayer2.addKeyListener( new MyKeyListener() );
    // Add button into the Menu frame
    jMenu.getContentPane().add( jbStart );
    jMenu.getContentPane().add( jbCredit );
    jMenu.getContentPane().add( jbExit );
    jMenu.getContentPane().add( jtPlayer1 );
    jMenu.getContentPane().add( jtPlayer2 );
    // make the Menu visible
    jMenu.setBackground( Color.blue );
    jMenu.setVisible( true );
    Could anyone tell me what I need to add in order to make it work?
    thanks

    One thing i would do is add all my components (buttons, textfields, and whatnot) to a JPanel and then set the JPanel as the content instead of having all those getContentPane ().add (); parts...

  • Setting back ground on images to be transparent

    Hello,
    Is there a way to set a picture box to be transparent when mounted in Indesign.
    We are mounting EPS's into indesign and they have a clipping path. The background to the image is always white can this be set in a Document preference to set background on a picture frame to be transparent.
    Cheers Joe

    While placing the image in to the layout:
    1. Choose File > Place in InDesign.
    2. Select Show Import Options in the Place dialog box.
    3. Select a file that contains a clipping path, and click Choose (Mac OS) or Open (Windows).
    4. In the Image Import Options dialog box, select Apply Photoshop Clipping Path from the Image tab
    5. Click OK, and place the image.
    or...
    If using IDCS3 (I assume cs4 too, but don't own it yet) you can apply the clipping path after the image is already placed.
    1) Select the image frame with the selection tool.
    2) Choose the menu... Object > Clipping Path > Options
    3) Pick Photoshop Path

  • Setting Back ground job

    Hi Friends,
    I wnat to set the background job with following conditions:
    Monday to Friday
    From 9AM to 6 PM
    To run on every half an hour.
    Can any one guide for the same.
    Regards,
    Sai Krishna

    Hi Friends,
    In our Organization PR is created by user dept. & PR release is completed accordingly. In this process Purchase dept. is not in the release strategy. Now PR is completly released & while converting to make PR to PO, purchase dept. found there is some problem in PR. Is there any way Purchase dept. can reject PR & send to user dept. for correcting it.
    One method is to have Purchase dept. also in release strategy loop. We are having nearly 400 release strategies. To change all these will take much time. Is there any other way.
    Thanks & Regards
    Sai Krishna

  • Remove the back ground color.

    Good day all! Can anyone help with this little problem?
    I'm adding a flash button to Dreamweaver. No problem! But!!
    The background image that the flash button sits upon has a gradient
    fill. And I want there to be no background color on the flash
    button. So I dont see a white or any other color behind the flash
    button!
    Thank's all!

    You are looking for "wmode", a attribute in the html param
    tag and embed
    tag. There are some limitations to using this since not all
    browsers
    recognize wmode.
    <param name="wmode" value="transparent">Add the
    following parameter to the
    EMBED tag:wmode="transparent"More info on wmode here:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14201--
    Dan
    Mode --> Adobe Community Expert*Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11*THE
    online Radio*
    http://www.tornadostream.com
    <--check this*Must Read*
    http://www.smithmediafusion.com/blog"satrop"
    <[email protected]>
    wrote in message news:eve1lb$l6s$[email protected]..
    > Good day all! Can anyone help with this little problem?
    > I'm adding a flash button to Dreamweaver. No problem!
    But!! The
    > background
    > image that the flash button sits upon has a gradient
    fill. And I want
    > there to
    > be no background color on the flash button. So I dont
    see a white or any
    > other
    > color behind the flash button!
    >
    > Thank's all!
    >

Maybe you are looking for

  • Can I connect a second router to the coax cable.

    In my house Verizon fios goes into a box and a coax cable comes out and splits in one direction towards a set top box and in another direction to an Actiontec M1424WR router. An eithernet cable connects the router to a computer. All is well. This wor

  • Connect a Professional CRT monitor to iMac

    Is there any way to connect a Professional CRT monitor to an iMac? I need to color correct my short film. If a regular monitor won't work what kinds will for accurate color grading?

  • Adobe acrobat 8 standard

    the Adobe pdf printer doesn't install on my new computer.  i went through the troubleshooting and upgraded from 8.0 standard to 8.1, but it still isn't working.  anyone have any ideas?

  • Acquiring local address for datagram socket created by DatagramChannel.open

    I've found that when I open an anonymous DatagramChannel (i.e. unbound, unconnected), the socket that it creates has no local address info I.e. no local port. Hopefully the example below will explain the problem... import java.nio.channels.DatagramCh

  • How to turn off Info records in MM - Urgent

    Hi,   I work primarily in SRM (We are on SRM 5.0 Extended Classic Mode). Currently we are having issues related to 2-way match POs for a certain vendor (No Goods Receipt). From SRM side the PO has only Invoice required checked but when the same PO is