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.

Similar Messages

  • Can I change different background and font color on each records?

    Hi,
    I had a Data_Block which contains some records, I had a field name 'currency' which contains value such as (HKD, JPY, CNY, CND, USD etc..)
    Let there there are 5 Records contain in that Data_Block and I wanted to change the background and font color depend on the Currency value.
    I were using Set_Item_Property and change the Visual_Attributes that I had define. Well I guess that doesn't work since uisng the Set_Item_Property
    it will actually getting the last value and use that last value and changed to all the same color to that.
    I wonder is there a way to do that in Oracle you can change the field different color?
    Thanks
    David Willis

    Thanks You so much.
    Actually I were trying to look for that function at the User Manual but I couldn't find it because I remembered I had seem it some where.
    I guess I am looking at the Form4.5 user manual instead of the Oracle 9i Forms Developer.
    Thanks
    David

  • How to change the size and font of my text in SMARTFORMS

    Hello gurus,
    I have a smartform as image below:
    I want to know how can I change the font size, and if is there a way to auto adjust text within its container or window?
    Thanls

    To maintain « Styles » in your Smart form, read first : Smart Forms >   Maintenance of Styles with the Style Builder.
    Transaction SMARTSTYLES
    if not already created, create a new style (e.g. copy the style assigned to your form)
    create a new paragraph format
    select alignment "BLOCK Justified"
    Then in transaction SMARTFORMS attach your style and use your new paragraph format.
    Regards,
    Raymond

  • How do you add a class in fluid grid navigation menu to change the background and link color when page is active?

    When i try to add a class to the active page to have it distinguished when a visitor is on, in the class section it only has other options and not one for "active"

    See this link:
    Making a persistent page indicator on site wide CSS Menus
    Nancy O.

  • How to change the background color of a single row

    Hi OTN,
    I am using JDeveloper 11.1.1.2 with ADF faces in view layer.My issue is How to change the background color of a single row in af:table ?.

    How to highlight ADF table row based on column value?
    Found by searching

  • How to change the background color of a desktop??

    any ideas how to change the background color of a desktop?? Now the default color is blue. I couldn't fine the API in JDesktopPane on doing that..
    JDesktopPane desktop = new JDesktopPane(); //(textArea);

    Try the method setBackground. For me it's work.

  • Is it possible to change the CATEGORY TITLE font color and/or size of each tile group in start screen, when the tiles are sorted by CATEGORY?

    TIA.

    Q.  Is it possible to change the CATEGORY TITLE font color and/or size of each tile group in start screen, when the tiles are sorted by CATEGORY?
    A.  No
    Carey Frisch

  • How do I change the background of a single cell or a row in a table?

    How do I change the background of a single cell or a row in a
    table? I doesn't seem to be letting me do that.

    Are you using the latest DW? If so, then it isn't letting you
    because
    bgcolor is deprecated and shouldn't be used.
    The correct way is to use css to define the background of a
    cell
    CSS:
    .blackcell {background-color: black;}
    HTML:
    <td class="blackcell">whatever in the cell</td>
    Nadia
    Adobe® Community Expert : Dreamweaver
    CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    ~ Template Customization ~
    http://www.csstemplates.com.au
    Spry Widget Examples
    http://www.dreamweaverresources.com/spry-widgets/
    "dm25" <[email protected]> wrote in message
    news:f4jr5h$luu$[email protected]..
    > for some reason that doesn't always work. When I click
    inside a cell, it
    > doesn't give me an option to change the background
    color.

  • How to change the incoming email font

    Hi,
    is there anybody able to tell me how to change the incoming email font?
    I have BB bold 9900. I was able to do it with my previous curve, but not with this one.
    Thanks

    Hi muttley and welcome to the BlackBerry Support Community Forums!
    There is no option to change the incoming mail font. You can change the entire system font by going to Options>Display>Screen Display.
    Thanks.
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • How to change the button's clicked color

    Dear all,
    How to change the button's clicked color
    I want it to be white in color as my button's background color is white
    Thanks

    How to change the button's clicked colorvia the UIManager

  • How to change the default hint box color?

    How to change the default hint box color on the default Metal LookAF?
    I'm trying looking for something with javax.swing.UIManager, but i just find ways to translate the UI.
    Any idea?

    [UIManager Defaults|http://www.camick.com/java/blog.html?name=uimanager-defaults] shows all the properties of the UIManager.
    Although there is no "hint box" component, so I don't know if it will help.

  • How to change the input and output schema in BPEL process

    hi',
    Please tell me how to change the input and output schema in BPEL process after the process is made.
    thanks
    Yatan

    If your intention is just changing the content you are passing to bpel/returning from bpel
    Here is another way
    just update your default created xsd files with new elements, update wsdl elements in message definition and chnage bpel code to reflect new elements in activities
    Regards,
    Praveen

  • How to change the look and feel for Heading of quick launch menu in project server 2010

    Hi
    can someone tell me how to change the look and feel of Header names in quick launch.
    I want the header to be displayed in Bold with Underline to it.
    could this be possible for just header in quick launch in project server 2010. 

    Hi Rohan
    It does not work this way. You have to use a content editor webpart.
    See references below that might help you starting with this customisation:
    Http://go4answers.webhost4life.com/Example/sharepoint-2010-quick-launch-look-feel-78379.aspx
    Http://m.sharepointpromag.com/sharepoint/four-ways-add-or-remove-quick-launch-menu-control
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • My ipad mini ID code is forgetten, and its system is also broken and how to change the ID and restore the system?

    my ipad mini ID code is forgetten, and its system is also broken and how to change the ID and restore the system?

    Hi ..
    Follow the instructions here >  iOS: Forgotten passcode or device disabled after entering wrong passcode

  • How to change the selected tabPane title color in JTabbedPane

    how to change the selected tabPane title color(or set bold) in JTabbedPane.
    Any advice will be appreciate.

    Hi,
    try
    // Set text color for the selected tab
    tab.setForegroundAt(tab.getSelectedIndex(), Color.red);Hope that helps

Maybe you are looking for