Semantic colour of Table Cell gets overwritten by Portal Theme

Hi,
In one webdynpro table, I need to show a column with Red-Amber-Green colour  depending on some other column value and the colour column has no value. I have used WDTableCellDesign class constants BADVALUE_DARK (Red), CRITICALVALUE_DARK (Amber) and POSITIVE(Green) and attached it with the 'cellDesign' property of the table column to fill it with colours.
The colour shows perfect when the table row is not selected. But when the row gets selected the lead selection colour change (defined in Portal theme) overwrites the cellDesign colour and it is not possible to identify the table column colour.
My relevant Portal theme values are shown below:
complex elements->Tables->Selected Cells
Background Color of Primary Selection=#FFC54E
Background Color of Secondary Selection=#FCDD82
Background Color of Read-Only Primary Selection=#FFC54E
Background Color of Read-Only Secondary Selection=#FCDD82
complex elements->Tables->Semantic Colour
Color of Bad Value (Dark)->#F66767
Color of Critical Value (Dark)->#FBA643
Background Color of Positive Cells->#AACDA1
Can you please tell me a way to solving this problem through code and not changing the portal theme.
Regards
Arindam

Hi Arindam,
You can not change the color of lead selction dynamically. Also , if you use another theme specifc to your webdynpro application, then portal theme will over-shadow it.
What I guess is the color of lead selction is your problem. What you can try if you change the selectionMode property of table to None, then you can avoid this problem and you can still refer your lead slection.
Regards
Abhinav

Similar Messages

  • Background to change colour of table cell?

    I have my buttons that change the backgrou color on hover but
    they dont do
    the full table cell only around the text.
    How would i get it to fill the cell?. Ive tried differnt
    padding options
    but non work.
    .buttons a:hover {
    background-color: #CC3333;
    display: block;
    TIA

    Mike wrote:
    > I have my buttons that change the backgrou color on
    hover but they dont do
    > the full table cell only around the text.
    >
    > How would i get it to fill the cell?. Ive tried differnt
    padding options
    > but non work.
    >
    > .buttons a:hover {
    > background-color: #CC3333;
    > display: block;
    >
    Then you have your code set up incorrectly because the css
    that you have
    provided should work.
    Can you provide a link to the page in question or supply the
    full
    code/css of the table in which these links are inserted.

  • How can i get the selected portal theme

    Hi all,
    it is possible to get the current used portal theme.
    I need the path to the css file of the current selected theme.
    I've tried to get the css file over the pageContext like:
      pc.getStylesheetUrl()
    But the result of this methode is: /htmlb/mimes/ur/ur_ie6.css
    I'm loking for an url like:
    /irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/sap_standard/ur/ur_fc_ie6.css
    Torsten

    Hello Tamas ,
    If I try to do this in the PBO of the dialog screen (that contains the two grids), the result of CL_SALV_SELECTIONS->GET_SELECTED_ROWS will be empty, as the program does not recognize the marked entries in the grids. Also, an event for grid1 does not see the selected rows from grid2 either.--->
    is it possible to  have a check box in each grid  & get the selected lines in PAI of the screen ?
    regards
    prabhu

  • Using portal theme in web dynpro tables

    We are currently running EP6 (NW04).  Is there a way to make our java web dynpro table ui elements use the portal theme?  All tables appear blue unless they are checked as readonly in which case they are white. 
    I see there is a TableCellDesign ui element, but that is not available until NW04s and we are not there yet.
    Please assist. (and thank you!)
    Jeff Karls

    hi
    You are right about NW04s portal theme editor and we are able to change colour
    the tablecelleditor ui. But as far as i remember i was able to change properties like selected cell colour, non selected cell colour and mulitselected cell colour.
    However if you are not able to change it in EP 6.0 (NW04) then use the webdynpro themes. I suppose you will be able to do everything there.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d2b1d790-0201-0010-25b7-d1fb059a8ad9">How to edit webdynpro themes</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/1e/535d420447e054e10000000a155106/frameset.htm">Setting the theme in Visual admin</a>
    Hope it helps.
    regards
    LNV

  • How to change the colour of the table cell editor on some condition?

    Hi all,
    I have a requirment acco which i need to make the colour of the tableceleditor ias RED and font color white when the data in that is < 0.please tell me how is this possible and its urgent..
    regards
    Sharan

    If you are using release NW04 and have a TextView as table cell editor, you can do this:
    Add a calculated attribute "Color" of DDIC type "com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor" under the data source node of the table.
    Bind the "semanticColor" of the cell editor to this context attribute.
    Implement the get-method for the calc. attribute like this
    WDTextViewSemanticColor get<DataSourceNode>Color(I<DataSourceNode>Element element)
      return element.getValue() < 0 ? WDTextViewSemanticColor.NEGATIVE : WDTextViewSemanticColor.STANDARD;
    Armin

  • Highlighting input field and  table cell column in red colour

    Hi,
           I have 4 input fields and a table in my screen. All the input fields are read only.
        I have a functionality where I have to highlight a input field with the red colour. In the sense, I have to put a thin Red border over the input field without thowing any errors or messages.
           Also, i have to highlight a particular cell in the table. i.e, i have to put Red colour border over the cell of the table for some rows only. Right now i have changed the background colour of the cell for required rows, but i need Red thin border rather than changing the entire background colour.
    Please guide me on achieving these functionalities..
    Thanks and Regards,
    -Shabir Rahim.

    Hi,
    The red thin lines border you are talking about comes from the framework during the exceptions. If this is the case then refer the following links, hope this will help you.
    [Re: Automatic message for inputfields with state=required]
    [Re: Validation of InputField]
    Well without exceptions, i dont think it will come.
    thanks & regards,
    Manoj
    Edited by: Manoj Kumar on Feb 7, 2008 12:09 PM

  • How to get the data from a table cell

    Could somebody suggest me how I can get the data value from a table cell if I set that cell a Double object previously.
    Thanks very much

    Thanks for camickr's information.
    And thanks uhrand,
    I haven't got it sloved. I am sick on this problem.
    I have the methods to let the table editable. My tableModel code is from Sun Tutorial.
    It has the code like this:
    public int getColumnCount() {
                return columnNames.length;
             public int getRowCount() {
                return data.length;
              public String getColumnName(int col) {
                return columnNames[col];
             public Object getValueAt(int row, int col) {
                return data[row][col];
             * JTable uses this method to determine the default renderer/
             * editor for each cell.  If we didn't implement this method,
             * then the last column would contain text ("true"/"false"),
             * rather than a check box.
            public Class getColumnClass(int c) {
                return getValueAt(0, c).getClass();
             * Don't need to implement this method unless your table's
             * editable.
            public boolean isCellEditable(int row, int col) {
                //Note that the data/cell address is constant,
                //no matter where the cell appears onscreen.
                if (col < 1) {
                    return false;
                } else {
                    return true;
             * Don't need to implement this method unless your table's
             * data can change.
            public void setValueAt(Object value, int row, int col) {
                if (DEBUG) {
                    System.out.println("Setting value at " + row + "," + col
                                       + " to " + value
                                       + " (an instance of "
                                       + value.getClass() + ")");
                data[row][col] = value;
                fireTableCellUpdated(row, col);
                if (DEBUG) {
                    System.out.println("New value of data:");
                    printDebugData();
            public void printDebugData() {
                int numRows = getRowCount();
                int numCols = getColumnCount();
                for (int i=0; i < numRows; i++) {
                    System.out.print("    row " + i + ":");
                    for (int j=0; j < numCols; j++) {
                        System.out.print("  " + data[i][j]);
                    System.out.println();
                System.out.println("--------------------------");
            }

  • Just update to Pages 5.1 - its dropped the pictures from my Pages files - 'Some features aren't supported - objects in table cells were removed' - how do I get pictures back?

    Just update to Pages 5.1 - its dropped the pictures from my old Pages files - 'Some features aren't supported - objects in table cells were removed' - how do I get the pictures back?

    Thanks Peter
    Can you just walk me through dumping Pages 5 and getting to the Applications/iWork folder - and does this mean that when I see future Pages Upgrades I should block them?
    I'm new to Apple so need a step by step
    Many thanks
    Glyptic

  • Getting text to the top of a table cell

    I'm sorry, I have asked this before but I still have nothing that works.
    In a table I want the text to start at the top of the cell. I can force it with a clear gif and the end, but surely that is not right. It often works OK in Safari and Opera, but not in Firefox or IE.
    I have copied some code below. It seems to me that the text should be aligning top, but it remain vertically centred in live view and all browsers (MAC).
    What am I not seeing?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <link href="properllers.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <table width="880" border="0" align="center" cellpadding="0" cellspacing="0" class="top">
      <tr>
        <td> </td>
        <td> </td>
        <td> </td>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td height="500"> </td>
        <td> </td>
        <td><h1 class="top">Text test header</h1>
          <p class="top">Berci accuptatet facerum, simus, quatiae pori tem arum id et exces aute erum inciumquo temquos essi nem utam, int aut harionsequo entintius solum est in consequo odi dolenimpe laborum se vel iliquo voluptas ex entorerum rest venimaxima sit am aut arumquam, tet que necererchil et mo vid ut mo ilic totaquam apitatem. Et illaboratum hilleni hillab iusaperunt landunt inctat.<br />
            Mus, ut eum ut ut omni qui aliquas peribus.<br />
        Us repudit, volupti ssequid modionseque pero consernatur? Qui que volorei umquae dem aut hilis am, cus, sequam quid ullam, idera della vent errovitis nobis minia simus et quos eum de cuptaec turiorio. Nequaspercia alis andae moluptae. Vid quunt enihit la nempores volupta alibus, occaborum ist odi volorepres que eum quo id underio tem res dolute omnienis in porro imoluptas doluptat im faccus re porem rero comnihicim e</p></td>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td> </td>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td> </td>
        <td> </td>
        <td> </td>
      </tr>
    </table>
    </body>
    </html>

    The default alignment in a table cell is LEFT MIDDLE, i.e., left horizontal and middle vertical.  If you have no specification in your code for anything other than that, then that's what you get.  I see no such specifications in your code, so your symptoms are not surprising.  To make things align to the top of a table cell (in HTML4.01) you would use <td valign="top"> or in XHTML you would use CSS to bring the content to the top of the cell, e.g., <td style="vertical-align:top"> (inline CSS shown for clarity).
    Be aware that text contained within a paragraph or an <h#> tag WILL HAVE A TOP MARGIN, so if you want that text to be flush with the top of the cell, you will have to control that top margin on the container tag, too.
    In your case, I'm assuming that this is one of your attempts to get to the top of the cell -
    <td><h1 class="top">Text test header</h1>
    But we have no idea what rule is specified by the class="top".  At any rate, you will have only affected the alignment of the text within the <h1> tag and not within the table cell by that.  Perhaps <td class="top"> would be better?  But best would be (if you wanted ALL content in the table to be at the top of the cells) to use a descendent selector like -
    table#whatever td { vertical-align:top; }
    and then give that table the id="whatever".

  • Records are getting overwritten in the internal table using Select query.

    Hi All,
    I have following query :
    Loop at i_salesplant.
           select maramatnr mvkeVKORG mvkeVTWEG maraZZCOEAFE maraZZCOEAFEUOM mvkeZZALLPOL
           into corresponding fields of table i_zallocpol from mara inner join mvke on
           mvkematnr = maramatnr
           where MARA~zzobjtype = I_ZZOBJTYPE
             and MVKE~VKORG = i_salesplant-vkorg
             and MVKE~VTWEG = T_VTWEG.
         ENDLOOP.
    My Que : For example lets say first it selects all the records for Sales Org 1000. Next when you select the records for the Sales Org 2000 the earlier records are getting overwritten.
    Please let me know your valuable inputs.
    Thanks,
    Chandravadan

    Hi,
    Thanks alot for the reply.
    I changed query using appending as follows :
          Loop at i_salesplant.
            select maramatnr mvkeVKORG mvkeVTWEG maraZZCOEAFE maraZZCOEAFEUOM mvkeZZALLPOL
             into appending corresponding fields of table i_zallocpol from mara inner join mvke on
            mvkematnr = maramatnr
            where MARA~zzobjtype = I_ZZOBJTYPE
              and MVKE~VKORG = i_salesplant-vkorg
              and MVKE~VTWEG = T_VTWEG.
          ENDLOOp.
    But it is giving error saying " Field "APPENDING" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "     
    Please suggest.
    Thanks,
    Chandravadan

  • How to get name of table cell ? Also, how to set name and label property on table itself?

    I am trying to use below API:
    PMString tableName = "myTable";
    ErrorCode error = Utils<Facade::IPageItemNameFacade>()->SetUserAssignedPageItemName(tableUIDRef, tableName);
    But this is not setting up the table name, also I am getting error = 1.
    Also, I am not getting the API to get the name of table cell(which is the read only property)

    Hello kapoor_aman27,
    a table is not a page item. The page item name is stored in the interface IPageItemName of the kDrawablePageItemBoss. So you must get the page item of your table and set the name of the page item.
    Markus

  • How to change the colour of a table cell boder?

    I have just changed from Dreamweaver MX t CS5 and cannot find how to add a colour to the borders of a table and table cells.  In the old MX it was easy just selected the colour for border in properties but in CS5 this option is not availble.  Have tried formatting with CSS but this only colurs the outer boarder can anyone help?

    Not sure what you mean by a custom class would it be possible to give me an example?

  • Find/change colour tint in table cell

    Hi everyone,
    I have a document containing a heap of tables. The tables currently have a tint of 15% black in some of the rows and I need to change this to 5% black. I also need to change the stroke weight from 0.5pt to 0.3pt.
    Since there are so many of them, I wondered if there was a way to do this with find and change. The tables aren't objects - they're just regular tables inserted into the text frames.
    Appreciate any help.
    Thanks

    Sorry to come back to this post but I'm still trying to figure out how to adapt the script suggested at this link: http://forums.adobe.com/thread/681944
    I'm assuming I need to swap out some values but  how would I adapt it so that it looks for table cells coloured with 20% black and changes them to 10% black.
    As mentioned previously, my javascript knowledge is limited so I'd need some guidance.
    Any further advice appreciated.

  • Getting rid of blank table cells

    I am currently making an address book and have had to occasionally remove names from the listings. What this means is that there are now blank cells all through out my address book. How can I remove those cells?

    I am surprised that Word would be much smarter at doing this; InDesign has had the tables feature for qutie a while now I would have thought they would have worked this out by now. 
    <cough>
    Corrupt tables are pretty much the primary cause of corrupt Word documents. I've never seen a table cause a corrupt InDesign document. Word allows a lot of table-mangling, but I'd say that giving table-manglers what they want is the exact opposite of "smart."  Tables in Word are pure hell. InDesign's table implementation (purchased from a third party plugin developer, if I recall correctly), while not as... er... flexible as that of Word, is far more stable. I guess it depends on what you think is smart.
    Anyhow, back to what you want:
    The reason I designed it using tables like this is because this is the way that my client said they wanted it to be.
    Well, I hope you bill hourly.   There is a way to automate this, I think, using InDesign's Data Merge feature. If you aren't billing hourly, then it may be worth setting up - moving all of the content into an application like Excel, a spreadsheet app where it's really easy to do address-book-entry-management the way you want, and does not induce corruption when you have to spot-delete individual cells, unlike some other apps I can think of. You can then save a file out of Excel, and InDesign can automagically fill up your tables with content from your Excel file, with no gaps. When your client wants changes, then you just tweak your Excel file a bit, export, and then run the Data Merge to get your gap-free table back.
    However, that'd be a lot of work, and I can't even guarantee that it would work, never having tried it. But it's where I'd go in your shoes if my dataset wasn't this small:
    my list of names is relatively short so cutting and pasting shouldn't take too much time.
    Lastly, I think that your client might not care about whether or not they're in table cells; they just want it to look that way, right? If so, there are many, many ways to set up your doc that don't involve tables, that still yield the desired appearance. If you want to go in that direction, I can toss out a few ideas - I think that Rik already has, although his suggestion is a little bit low on detail.

  • COLOUR TABLE CELLS

    Hello,
    I'm relatively new to the Contribute system, so apologies if
    this topic has already been raised and answered (though I couldn't
    find anything by searching).
    I'm creating a website for a new client and they want an
    editable calendar which I've created using a table with multiple
    cells - a link here...
    http://www.villapomba.com/test/availability_08.html
    - How can I set up Contribute so that my client can colour the
    cells as dates become booked?
    I would appreciate any help.
    Many thanks in advance.

    1. start Contribute, connect
    2. go to the page, Edit Page
    3. place your cursor in the cell where the background color
    has to change
    4. right mouse click, choose Table Cell properties

Maybe you are looking for

  • Apple Enterprise App Store & DPS

    We are a fairly small ad agency with a large corporate client that has an Apple Enterprise App Store they use to distribute iPad apps to their employees. The marketing rep we work with has asked us to create a brochure along with an iPad app using th

  • How do I install iCloud on Windows Vista?

    I think the current iCloud can only be installed to Windows 7 or 8, so where can I get the earlier version from?

  • Sometimes PDF mails are going without an attachment.

    Hi, I have 3 output types and the 3 custom programs. When the background job scheduled, the standard RSNAST00 will call the custom programs, 1)      The logic which added in the custom programs is once adobe form gets generated for output types, I ha

  • Excise JV Report

    Hi Friends, I want to see Excise JV entries for that I am drawing report in J1i7 w.r.t. DIEX and OTHR excise TT  but system is not showing any kind of entries i am selecting radio button for part1 and part 2 posting. Need your valuable suggestion why

  • Iterating through all Document Libraries, Folder and Item -Sharepoint 2010

    Hi I want to read all RootFolder,Subfolder along with all "items" from Document Librarie. Can anyone please advise on this Thanks