ADF Table row background color change ???

Hi All
i got below sql view object
SELECT DEPARTMENT_ID,JOB_ID,COUNT(*) FROM EMPLOYEES GROUP BY DEPARTMENT_ID,ROLLUP(JOB_ID)
By using this i will get each department_id, jobid's and total employes count in each department
and i will get rollup for each departments ie i will get total employees.
So i want to change the back ground of the total row.
DepartmentId     JobId     Count1
SA_REP 1
1
10     AD_ASST     1
10     1 < this row in RED back ground in JSF page
20     MK_MAN     1
20     MK_REP     1
20     2 < this row in RED back ground in JSF page
30     PU_MAN     1
30     PU_CLERK     5
30     6< this row in RED back ground in JSF page
40     HR_REP     1
40     1< this row in RED back ground in JSF page
50     ST_MAN     5
50     SH_CLERK     20
50     ST_CLERK     20
50     45< this row in RED back ground in JSF page
any kind of help is welcome...
thanks
Ravi

Hi,
you can do this by setting the background color of the outputText component that is the cell component e.g. in a read only table. Use the inlineStyle property to set the background-color but get the string from a managed bean. For each row you get a call to the managed bean and you can use JSF value binding
FacesContext.getCurrentInstance().getApplication().createValueBinding()
to access #{row} so that you can determine the value of a row column. Based on this you return a color
Frank

Similar Messages

  • WorkOrderList TileView Row & Selected Row Background Color Change

    Hi,
         can we change the background color of WorkorderList TileView Row & Selected Row Background color ?. Actually i am trying to change the color of both in WorkOrderList but it not reflecting any color on my Agentry client. I used a style on Tile List View Data/Style.
    but these applied style on Rows & Selected Rows are not working in Agentry client.
    if any other alternate solution exist in Agentry, please guide me.
    i am using following...
      sap mobile platform-2.3.3
    Thanks & Regard
    Manish Kumar
    Tags edited by: Michael Appleby

    Hi Jason
          Yes using Image we can achieve that goal but i want to use a background color instead of Image background. Finally I used a background color on label and set the that label field on Screen. And It's showing the background color on WorkOrderList Row & Selected Row that what i wanted. But on both Row & Selected TileView Screen showing white outline that i don't want and also i could not remove the default Selected Blue Background Color.
         Please guide me how to remove white outline and default Blue Selected Background color.
    Thanks & Regard
    Manish Kumar

  • Af:table rollup row background color change

    Hi All
    i got below sql view object
    SELECT DEPARTMENT_ID,JOB_ID,COUNT(*) FROM EMPLOYEES GROUP BY DEPARTMENT_ID,ROLLUP(JOB_ID)
    By using this i will get each department_id, jobid's and total employes count in each department
    and i will get rollup for each departments ie i will get total employees.
    So i want to change the back ground of the total row.
    DepartmentId     JobId     Count1
    SA_REP      1
    1
    10     AD_ASST     1
    10          1 < this row in RED back ground in JSF page
    20     MK_MAN     1
    20     MK_REP     1
    20          2 < this row in RED back ground in JSF page
    30     PU_MAN     1
    30     PU_CLERK     5
    30          6< this row in RED back ground in JSF page
    40     HR_REP     1
    40          1< this row in RED back ground in JSF page
    50     ST_MAN     5
    50     SH_CLERK     20
    50     ST_CLERK     20
    50          45< this row in RED back ground in JSF page
    any kind of help is welcome...
    thanks
    Ravi

    Ravi,
    I think I answered the same question on the JDeveloper forum. The way it goes is that you use the inlineStyle property on the outputText component(s) of the total row. If you hard code the color then all backgrounds are identical, if you use EL to reference a managed bean method to return the color then you can have conditional color rendering
    Frank

  • Row background color in dataTable control based on criteria

    It is relatively straightforward to give a pattern of color to rows in a dataTable control, for instance to alternate colors from white to gray.
    However, I have not yet figured how the row background color could be decided based on data fields associated with each row. For instance, I would like to set the row background color based on the value of a boolean attribute associated with the row, e.g. white if value is false and gray if it is true.
    Is there an easy way to do this?
    Martin

    of the text, but not the whole cell. I need to find a
    way to change the span at the row level (on the <tr>
    tag). ANy ways to do this?
    MartinThis is a question of how to let the renderer adjust its behaviour depending on the current state of the model. My renderer changes the background for the selected row by changing the style class:
            writer.startElement("tr", table);
              if (table.getRowSelector())
                   if (table.isAtSelectedRow())
                        writer.writeAttribute("class", "selectedRow", null);
    etc.(of course, to be able to do this you must write your own renderer)
    erik

  • ADF Skin commandButton background color

    HI I use Jdev 11.1.2.3.0 I want to change the color of a commandButton I used:
    af|commandButton {color: orange;
                                  background-image: none;
                                     background-color:green;
    in (http://jdevadf.oracle.com/adf-richclient-demo/faces/components/skinningKeys/commandButton.jspx)
    and followed this tutorial (https://blogs.oracle.com/shay/entry/styling_specific_adf_components_with)
    as shown in this picture (http://img820.imageshack.us/img820/7456/avc8.png)
    the icon button gets colored but not the actual commandButton obviously is not shown when I run it.
    My skin code:
    af|commandButton
      background-image: none;
      background-color: Fuchsia;

A: ADF Skin commandButton background color

Yeah, that skin selector will apply to all buttons with those classes. If you need to limit the styling based on EL, I would do something like this
styleClass="#{condition ? 'trueClass' : 'falseClass'}"
and in the skin this should be specific enough
af|commandButton.trueClass {}
If not, you would have to do something like this, but not 100% sure if that dot shouldn't have a space before it or be a colon possibly off the top of my head
af|commandButton:text-only.trueClass

Yeah, that skin selector will apply to all buttons with those classes. If you need to limit the styling based on EL, I would do something like this
styleClass="#{condition ? 'trueClass' : 'falseClass'}"
and in the skin this should be specific enough
af|commandButton.trueClass {}
If not, you would have to do something like this, but not 100% sure if that dot shouldn't have a space before it or be a colon possibly off the top of my head
af|commandButton:text-only.trueClass

  • Cell/Background color changes when copying to other Excel 2010 document

    When you copy and paste report cells (e.g. CO report outputted in Office integration, MS Excel) to a new Excel file, the background color changed dramatically (to bright red).
    SAP Theme:  SAP Signature Theme
    Excel 2010
    We tried paste option > match destination formatting but does not help.
    Anyone has similiar problems?  Appreciate any help.

    dear friend,
    you would do:
    1. search SAP Notes;
    2. check out the updates/patches for your MS Office;
    3. replicate it on another computer/another sap user (make sure it is a local issue)
    good luck!

  • Background color changed from white to yellow and =25% changed to %% on email

    I type =25% on my email and sent out, background color changed from white to yellow and =25% changed to %%.

    Try leaving a space after the =
    Thus: = 25%
    Where and when did it change? Did it change inside Thunderbird? Did it change in the Sent folder? Or in a reply to you?
    = and % are used in certain types of email encoding; =20% often appears, meaning character 0x20 which is 32 denary or the space character. It is often used where an explicit space would be illegal, and this is common in URLs and other links. I'm thinking that =25% similarly has a special meaning. It ''shouldn't'' get decoded, but software is buggy.
    I can't reproduce it here, which is why I'm asking about how and when it changes. Where does the Microsoft software come into it?

  • AdvancedDataGrid Row background color

    Hope someone can help, I wish to highlight an entire row or rows that match a value. I assumed the stylefunction would get me there but I have not found the style refering to the row background color.
    Any help please.
    Thank You

    The solution I found was to extend the data grid class, add override to the draw background and add a rowcolorfunction. When using item renderers you must use the style function with the alternatingItemColors so the renderer gets the color correct and not opaque.
    Thanks looking saisri2k2.

  • I want to read and assign value of ADF Table rows  with Java Script

    Hi,
    I want to read and assign value of ADF Table rows with Java Script, but I cant true index of current row , so I assign wrong value to anathor column of ADF Table.
    My Code;
    ADF Table items
    <af:column sortProperty="Adet" sortable="false"
    headerText="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.labels.Adet}"
    binding="#{backing_ucret.column2}" id="column2">
    <af:inputText value="#{row.Adet}"
    required="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.attrDefs.Adet.mandatory}"
    columns="10"
    binding="#{backing_ucret.inputText2}"
    id="inputText2" onchange="getTutar('#{bindings.voHarcamaOdeme1Iterator.rangeStart + bindings.voHarcamaOdeme1Iterator.currentRowIndexInRange + 1}','#{bindings.voHarcamaOdeme1Iterator.estimatedRowCount}','#{row.index}')">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.formats.Adet}"/>
    </af:inputText>
    </af:column>
    MY JAVA SCRIPT CODE
    <f:verbatim>
    <script language="javascript" type="text/javascript">
    function getTutar(rowkey,totalrow,currentRow){
    alert('rowkey--totalRow--currentRow-->'+rowkey+'--'+totalrow+'--'+currentRow);
    if (currentRow==0) {
    rowkey=totalrow-1;
    }else{
    var rw=totalrow-currentRow-1;
    rowkey=rw;
    alert(document.getElementById('form1:table1:'+rowkey+':inputText8').value);
    alert(document.getElementById('form1:table1:'+currentRow+':inputText8').value);
    var birim_ucret=document.getElementById('form1:table1:'+rowkey+':inputText8').value;
    var adet=document.getElementById('form1:table1:'+rowkey+':inputText2').value;
    document.getElementById('form1:table1:'+rowkey+':inputText3').value=birim_ucret*adet;
    document.getElementById('form1:inputText6').value=0;
    var t;
    var toplam=0;
    alert('before Sum');
    for (var i=0;i!=totalrow-1;i++){
    t = document.getElementById('form1:table1:'+i+':inputText3');
    toplam+=t.value*1;
    document.getElementById('form1:inputText6').value=toplam;
    </script>
    </f:verbatim>

    You can achieve the use case you describe with partial page rendering (PPR), a feature of the ADF Faces framework. Here are a few posts that achieve an interactive behavior using PPR. Off the top of my head I do not know of an exact example, but this should be a good starting point:
    http://thepeninsulasedge.com/blog/2006/09/12/adf-faces-aftableselectmany/
    http://thepeninsulasedge.com/blog/2006/08/31/adf-faces-working-with-aftableselectone-and-the-dialog-framework/
    --RiC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Advanceddatagrid grouped row background color

    Hi All,
    How to create a grouped row background color in advancedatagrid eg:
    Features
    Product 1
    Product 2
    Group1
       aa
    copy
    copy
       aa
    copy
    copy
    Group 2
       bb
    copy
    copy
       bb
    copy
    copy
    Thanks,
    srinath

    The solution I found was to extend the data grid class, add override to the draw background and add a rowcolorfunction. When using item renderers you must use the style function with the alternatingItemColors so the renderer gets the color correct and not opaque.
    Thanks looking saisri2k2.

  • [svn:fx-trunk] 5313: Application, WindowedApplication, and Window background color changed to white.

    Revision: 5313
    Author: [email protected]
    Date: 2009-03-13 19:10:24 -0700 (Fri, 13 Mar 2009)
    Log Message:
    Application, WindowedApplication, and Window background color changed to white.
    QE Notes: None
    Doc Notes: None
    Bugs: sdk-16721
    Reviewer: Ryan
    tests: checkintests, cyclone build tested
    Ticket Links:
    http://bugs.adobe.com/jira/browse/sdk-16721
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/airframework/defaults.css
    flex/sdk/trunk/frameworks/projects/framework/defaults.css
    flex/sdk/trunk/frameworks/tests/checkinapp/checkinapp.css

    Hi,
    When system is in a sleep mode or hibernate mode, it will save the data ans settings in memory or hard disk, so I suggest you run a memory check and a harddisk check and see if it can detect any errors.
    Memory check (instruction is similiar to windows 8\8.1, type "memory" in the search charm bar)
    http://windows.microsoft.com/en-in/windows7/diagnosing-memory-problems-on-your-computer
    Hard disk check
    http://technet.microsoft.com/en-us/magazine/ee872425.aspx
    Meanwhile, please check event viewer to find more information, useful path: event viewer\Windows logs or event viewer\Applications and Services Logs\Kernel-power
    Yolanda Zhu
    TechNet Community Support

  • Set Table Row Background image

    Hi all,
    I'd like to set a Table row background image, but I only find a way to set a background image for each column, is there any way to set an image  as background for a whole row?

    Hi Pakojones,
    Based on my test, it is not support to make the image tile in a row. The BackgroundRepeat values of tablix is Repeat, RepeatX, RepeatY, or Clip. In SSRS, just chart BackgroundRepeat can be set to Fit.
    Reference: http://technet.microsoft.com/en-us/library/dd239334.aspx
    In SSRS, we can put tablix in a rectangle, then add background image for the rectangle. We can tile the image over the whole tablix. If we want to make the image tile in a row, we can put the single row in a rectangle to work around it. In this situation,
    we have to seamless paste the tablix in the end.
    Alternatively, since the issue is by design, I recommend you that submit this suggestion at
    https://connect.microsoft.com/SQLServer/ . If the suggestion mentioned by customers for many times, the product team may consider to add the feature in the next SQL Server version. Your feedback is valuable
    for us to improve our products and increase the level of service provided.
    Regards,
    Alisa Tang 
    Alisa Tang
    TechNet Community Support

  • TABLE CONTROL LINES COLOR CHANGE

    <i>Hi Friens.,
    I need small help ie.,
    Let us assume we have table control like this.,
    col1 |  col2  |  group |
    a1   |   b1   |  1
    a2   |   b2   |  1
    a3   |   b3   |  2
    a4   |   b4   |  2
    a5   |   b5   |  3
    a6   |   b6   |  3
    1) User need differentiation between groups to look and feel.,thats why I want to change the Line colors based on Group.,
    2) I am getting this one .,but I made case on Sy-stepl.,  while scrolling it is not showing correct .,
    3) Is there any good way to do this., like in ME21   CONDITIONS TAB at Item level</i>
    If any body have Idea., share with me.,
    <b>Thanks.,</b>
    <i><b>Surendher Reddy.Baddam</b></i>

    Re: TABLE CONTROL LINES COLOR CHANGE
    Posted: Nov 5, 2004 6:47 AM        Reply      E-mail this post 
    PBO >>>like thise.,
    LOOP AT itab WITH CONTROL tc4_400 CURSOR tc4_400-current_line.
    MODULE check_rej_hld_400.
    MODULE radio_checkbox_400.
    ENDLOOP.
    >>>
    MODULE radio_checkbox_400.
    DATA : l_stf TYPE i.
    DATA : l_hyd TYPE i,l_knr TYPE i.
    l_hyd = 1.
    LOOP AT SCREEN.
    IF screen-name = 'ITAB-BATCHNO'.
    IF itab-group = l_hyd. " this is group
    screen-intensified = 1.
    MODIFY SCREEN.
    ELSEIF
    screen-intensified = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDIF.
    ENDLOOP.
    ADD 2 TO l_hyd
    ENDMODULE.
    I made logic like this.,
    Thanks.,
    Surendher Reddy.Baddam

  • WAD - Portal - Changing row background colors

    Hi,
    We are creating web templates and posting to portal 6.0. I would like to know how to change the background colors for the rows for the output of the analysis item. Right now the default colors are grey and white (alternating rows). I did a search in the forum and it appears that there is no straightforward way to do it, with some suggesting we do it directly in the portal. Can someone provide detailed step by step instructions on how to change the background colors for rows for query output.
    Thanks,
    Anita S.

    You can modify the CSS (Cascading Style Sheet) in either Portal or WAD.  If you change it in Portal, it will be global for all reports viewed in the portal.
    For WAD, there is a general template parameter which contains the path to the .CSS file.  This CSS file is located in the Mime Repository (SE80).  Make the change to the css file in the mime repository and you're good to go.
    If you change the Portal CSS file, there is a wizard that can help you define colors for tables and preview them.

  • Background color change of a column in Advance table

    Hi,
    We have requirement to change the background color of column in advance table based on some condition. We tried putting code to change background color in Custom.xss using background-color property and setting newly created css dynamically based on condition but it seems it only changes the background color of text not the complete cell. We want to change the color of complete cell in an advance table.
    Please let me know if there is any other way I can achieve this requirement. Any help would be highly appreciated.
    Thanks

    <FONT FACE="Arial" size=2 color="2D0000">
    Pls look into "Alter Table"section.
    LOB_storage_clause
    This might help
    -SK
    </FONT>

  • Maybe you are looking for

    • HT1766 i can't see my info in iCloud, any suggestions?

      last backup of my iphone was about an hr ago; when i open icloud i can't see my contacts or any other info. and outlook on my PC doesn't have the notes folder either (which is where my notes from the iphone should be in my understanding) Trying to ma

    • I Cant install Updates for PS Elements 9

      Hello, Im trying to install PS Elements 9.0.3 update, and Camera Raw 6.5. The response was simply "some updates failed to install", and the updates were listed. Any ideas? Thank You

    • Call taking forever to load when I answer, anyone have this problem?

      When I receive a phone call, I push the green button to accept the call and normally it would go into the active call screen which shows the buttons: mute, keypad, speaker etc. but lately it takes forever to switch to that screen. It'll stay on the c

    • Clicks/Pops Between Songs

      Using a 5th generation 60 gig ipod with itunes 7.0 on Windows XP. When I listen to songs hooked up to an Altec-Lansing Inmotion speaker system, I can hear faint but noticeable pops/clicks between songs. I hooked a family member's ipod up to my speake

    • HT204088 Urgent question!!! someone plz help...

      I have 3 itunes purchases showing up on my bank statement for 14 and 15 dollars but i havent purchased anything but a couple of songs for 1 dollar. How can i dispute this???