Coloring of selected table cells: Ideas wanted

Hi there,
for a WD ABAP component to be re-used in various scenarios my customer seek the most comfortable and fency way to color table cells which have been selected first.
I am almost sure that there is no UI Control in ABAP WD which allows the selction of cells in a grid, pane, table whatever, right?
Most suitable would be if the cell itself can be selected and then some image within is beeing displayed or even a background color is set.
I looked into placing a button and image in UI Pane or table/ALV cells but not 100% statisfied with it.
Is there a better way in order to "simulate" the described requirement?
As always, the best idea will get the point
Regards
Carsten

Thanks for the tips. Both helped very much.
I implemented the simple  Table UI because which was sufficient for us but the ALV example is very useful also.
But related to this I have another question:
My first the coding didn't work because my Table UI already had a (static) value assigned to it's design property.
In this case, although I have assigned a dynamic WD_UI_CELL_DESIGN context attribute to the cellDesign property of it didn't show the color.
Only after the Table design property was set to 'standard' the cell displayed the color.
Does anyone know what the reason for this is?
In my opinion any design value applied to the cellDesign property should overrie the inherited table design property. My release already is NW 7.01 so it not seems to be fixed via EhP.
Regards
Carsten

Similar Messages

  • Color transparency in table cells

    Hi;
    Is there any way to adjust the opacity of the background
    color of a table
    cell ?
    Thanks;
    Pat

    Thanks Murray. I'll give it a try.
    Pat
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:fb44ib$6r1$[email protected]..
    > No - not background color. But you can make a PNG image
    with adjusted
    > opacity and use that image as a cell background - be
    aware that unadjusted
    > IE6 and earlier doesn't support PNG transparency. A
    google search will
    > reveal workarounds for you, though.
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "Pat Jones" <[email protected]> wrote in
    message
    > news:fb447e$6cf$[email protected]..
    >> Hi;
    >>
    >> Is there any way to adjust the opacity of the
    background color of a table
    >> cell ?
    >>
    >> Thanks;
    >>
    >> Pat
    >>
    >
    >

  • Color of single table cell

    Hi,
    I have created a Web Dynpro table. Now I want to set the color of a single cell depending on its value and the row number.
    Is it possible? Are there any examples or tutorials for CE 7.11?
    Thanks ahead,
    Bernd

    Ok,
    situation is as follows:
    Context:
    --> Table1 (table data source)
    attr1
    attr2
    attr3
    attr4
    In wdDoModifyView (the relevant things - short form):
    table = (IWDTable) view.createElement(IWDTable.class, "Table1");
    WDNodeInfo table_node = wdContext.getChildNode("Table1",0).getNodeInfo();               
    table.bindDataSource(table_node);
    editor = (IWDTextView) view.createElement(IWDTextView.class, editor_id);               
    column = (IWDTableColumn) view.createElement(IWDTableColumn.class, column_id);
    column.setTableCellEditor(editor);
    table.addGroupedColumn(column);
    Now I want to set the TableCellDesign of a single cell depending on its value.
    Regards, Bernd

  • Can't select table cell with big css table border

    Hi
    When I create a table with a border in css, bigger than 6px,
    I can't select a cell or even put text in it, other than in the
    code window. Can you explain or help ?

    Yeah? Sure .. I will .. thanks!
    Nancy
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:ea56v5$3gc$[email protected]..
    > Try it Nancy. The OP is correct. It's a bug.
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "Nancy *Adobe Community Expert*"
    <[email protected]> wrote in message
    > news:ea56t5$3d3$[email protected]..
    >> Have you tried clicking within the area and then
    selecting the tag you
    >> want in the tag selector at the bottom of the
    document window?
    >>
    >>
    >> --
    >> Nancy Gill
    >> Adobe Community Expert
    >> BLOG:
    http://www.dmxwishes.com/blog.asp
    >> Author: Dreamweaver 8 e-book for the DMX Zone
    >> Co-Author: Dreamweaver MX: Instant Troubleshooter
    (August, 2003)
    >> Technical Editor: DMX 2004: The Complete Reference,
    DMX 2004: A
    >> Beginner's
    >> Guide, Mastering Macromedia Contribute
    >> Technical Reviewer: Dynamic Dreamweaver MX/DMX:
    Advanced PHP Web
    >> Development
    >>
    >>
    >> "mchb" <[email protected]> wrote
    in message
    >> news:ea56dd$2q2$[email protected]..
    >>> Hi
    >>>
    >>> When I create a table with a border in css,
    bigger than 6px, I can't
    >>> select a cell or even put text in it, other than
    in the code window. Can
    >>> you explain or help ?
    >>
    >>
    >
    >

  • What is the trick to selecting table cells?

    I have a table whose construction and styling is underway; it is very hit or miss to select all or part of that table. Can anyone suggest a trick to make table cel selection more certain?
    Sometimes I get the little fat arrow and sometimes I don't..
    thank you!

    If on windows, use the "esc" button to select the cell or the text. If you select a cell, use the arrow keys to select more cells. Whole table, select one cell then "Ctrl A" to select all the table. The fat arrow is the same as the one in Word, it's sometimes driving me crazy too.

  • Selected Table Cell Border in 1.4.2

    Hi All!!
    I am facing a problem with JDK 1.4.2_01 & Windows L&F. I am unable to see the yellow border around the selected cell in JTable. Was working fine with 1.4.1_03.
    A bug with id: 4674205 was reported with 1.4.0 stating :
    " In the Windows Look and Feel, the selected cell in a JTree or JTable is framed with a yellow rectangle. To accurately match the real Windows UI, it should be a black and white dotted rectangle instead. (This was part of bug 4268204,which was marked fixed, but this part hasn't been fixed.) This behavior was fixed for JList, but not JTree or JTable. "
    Now it has been fixed and closed.
    May be they might have removed setting of yellow border for the selected cell to match with native windows UI.
    But selected cell border is very much necessary for my project. Can any one please suggest me a workaround.
    With Regards,
    LRK

    Hi Sai!
    Thanks for your reply. It will not be feasible in my application as it already has huge number of tables with some of them already having complex renderers and editors.
    I was looking at something which i can set globally so that it will reflect to all of the tables in the application in a particular L&F.
    I tried setting
    UIManager.getDefaults().put("Table.focusCellHighlightBorder",Color.yellow);
    and
    UIManager.put("Table.focusCellHighlightBorder",Color.yellow);
    But no luck.
    Any other inputs are most welcome.
    With Regards,
    LRK

  • Coloring text in table cells depending on what text appears

    I have a table where some entries say 'success' and others say 'failure.' I want the 'success' to appear in green and the 'failure' to appear in red.
    This code doesn't work:
            model = new JTTableModel();
            JTable resultsTable = new JTable(model);
            resultsTable.setDefaultRenderer(Object.class,
                    new ColorRenderer());
        public class ColorRenderer extends JLabel implements TableCellRenderer {
            public java.awt.Component getTableCellRendererComponent(JTable table, Object value,
                    boolean isSelected, boolean hasFocus,
                    int row, int column) {
                System.out.println("value " +value+ " class of value "+value.getClass().getName());
                if (value.equals("success")){
                    setForeground(new Color(0,255,0));
                }else if (value.equals("failed")){
                    setForeground(new Color(255,0,0));
                return this;
        }What am I doing wrong?

    But lmgtfy is rude, No it isn't. Most posters are too lazy to search for themselves. There are hundreds of examples of renderers to be found in the forums here. Many times is it faster for us to point to links that have the answser rather then spend time explaining everything you have done wrong. You are not the only person we help.Then why not post the link to the Google search directly? No, lmgtfy is not about simply posting a link, it's about posting a link in a way that says, 'You're too stupid to use Google, so I'll do it for you.' Which is rude. No Duke points, sorry.
    As for searching this forum, the quality of search results here is definitely poor. How many screens of results should I search to find an example of what I need? Maybe I'm spoiled by Google, or maybe they should open this forum to Google search, and make the wisdom here accumulated more available.
    but if you note the time this was posted,We have no idea where you live or what time of day it is for you.Yes you do, if I set the time zone on my profile.
    This is my last post on this thread. I'm not going to bicker with you.

  • Matching table cell colors?

    Using 5.2 (1860) I have a table and I can not match the colors of some of my cells. Is there an easy way to select the formatting of a cell and just copy it to another cell? When I select the color options for the cells I want to change, the light grey option is not there. See the attached image. I want to simply copy the lighter grey cell color so it spans the entire 2nd and 4th rows.
    Thanks in advance!

    Once you have a cell color set, you can make adjacent cells the same color by clicking in the cell with the color, and then roll your mouse pointer over the edge of the cell in the direction you want to propagate the cell color. When you see a yellow dot appear on the cell boundary, click and drag in the direction of the cells whose color are to match the original cell color.
    For non-adjacent cells, click in the cell with the color you want to replicate. In the Format > Cell panel, click Fill, and choose Color Fill. Click on the color globe, and use the hand lens icon to capture the original color into the color chooser. This is now the fill color. Click on the non-adjacent cell you want to color, and reselect Color Fill from the Cell panel. The cell will fill with the specified color. Repeat paragraph one as needed.
    If you want to fill an entire row with the same color, click on the row number (or range of cells using the shift key) so that the entire row is selected. Then choose Cell > Color Fill and the row will be set to the specified color.

  • Table cell selection border

    hi,
    how can you find out the default color of the table cell renderer border?
    when you select a cell in a JTable, there's (by default) a thin border drawn around it. since i use my own renderer for some columns, i need to find out the color of this border (it is differnt for different look & feels).
    thanksout the default

    you were right. thank you.
    just one more thing: where can i find the names of all those properties that the UIManager uses? like the one you used "Table.focusCellHighlightBorder"...

  • Theme Editor: where to change backgroundcolor of editable table cells?

    Hi all,
    I need to change the color of an editable table cell.
    I navigated to the theme editor --> tables.There is a section "Editable Tables". The preview shows an example with three columns and tree rows. I want to change the backgroundcolor of the cell in the first row, third column (in SAP standard it is lightgrey).
    The backgroundcolor of the rows beneath can be changed in section "Selected Cells", the backgroundcolor of the first two columns in the first row can be changed by "Background Color of Standard Table Cell" but I can't find the field where I can change the color of the last cell.
    Best regards,
    Sandra

    Hi,
    The blue color come from your definitions on "Labels and Fields" to read-only color of input field.
    Regards,
    F.F

  • Change the background color in a report cell - td bgcolor

    Hi.
    I have a report in which I would like to change the background color of a table cell based on some values in the underlying query
    If Column A > Column B and Column C > 10, I want to color the background green. In my cgi , this was easy, but in apex, even if I write the query to output html, won't everything already be wrapped in the <td></td> tags? Is there any way around this?
    Thanks

    Mike ,
    With the above solution you can conditionally fill the report cell with a particular color and not the entire row set. If you want to highlight entire row, you have to do something different. Take a look at this jQuery function
    Step 1 . Download jquery http://code.jquery.com/jquery-1.4.2.min.js
    Step 2. Upload it to apex image folder using shared component.
    Step 3. In the page header put the following code
    <script src="#WORKSPACE_IMAGES#jquery-1.4.js" type="text/javascript" ></script>
    <script type="text/javascript">
    $(document).ready(function(){
         if ($('.apexir_WORKSHEET_DATA').length > 0) {
              function HighLightRows(){
                                       $("table.apexir_WORKSHEET_DATA tbody td:has(COLOR_GRAY)").siblings().addClass('greentd');
                                       $("table.apexir_WORKSHEET_DATA tbody td:has(COLOR_GRAY)").addClass('greentd');
                                       $("table.apexir_WORKSHEET_DATA tbody td:has(COLOR_GREEN)").siblings().addClass('graytd');
                                       $("table.apexir_WORKSHEET_DATA tbody td:has(COLOR_GREEN)").addClass('graytd');
         // This time out is required since after the report is refreshed via AJAX,
                                  setTimeout(function(){HighLightRows();},1000);
         }//if
    HighLightRows();
    </script>
    <style type="text/css">
    .apexir_WORKSHEET_DATA td.greentd
    background-color: green !important;
    .apexir_WORKSHEET_DATA td.graytd
    background-color: gray !important;
    </style>
    Step 4. Change the SQL Query to
    SELECT
         SALE_DATE
         ,PRODUCT_NAME
         ,PRODUCT_ID
         , CASE WHEN SALE_DATE > ADD_MONTHS(SYSDATE,-2) THEN
                     '<COLOR_GREEN>&#38;nbsp;</COLOR_GREEN>'
              ELSE
                      '<COLOR_GRAY>&#38;nbsp;</COLOR_GRAY>'
         PRODUCT_NAME_COLOR
    FROM SALES;
    Step 5. Make this new column PRODUCT_NAME_COLOR visible and in the column heading u can just put &#38;nbsp;.
    As long as this column will be available for display you will see the conditional highlighting.Thanks,
    Manish

  • Margin in Table cell is way too big

    First off, thanks again to Apple for Pages 2. I like having all the different functions, that is -- word processing, page layout, spreadsheet, charts, basic graphics, photo manipulation in one window. I mean, why open up a bunch of windows when it can all be done in one. Less real estate and less clicks. I like it.
    But, there is a problem I hope Apple will fix in the next update of Pages.
    I was experimenting. Trying to make a Table look more like a standard spreadsheet. I wanted to size the cells more in keeping with what you have in Appleworks or Excel. Problem is, you can't FILL UP the cell with text, that is, text from line to line of cell. A font sized to fill the cell gets chopped off. There is some kind of a margin between the cell boarder lines and the text. It would be great if Apple took away this margin that clips my text.
      Mac OS X (10.4.4)  

    Hello How Goes It,
    select the cells you want to have no margin and choose the text inspector of the infopalette and the text tab button. At the bottom is a slider and a number field. There you can adjust the margin thickness.
    Frank.

  • Semi-transparent table cell

    I know that table cells can be filled with a color or not have a fill (in which case they are transparent. However, is it possible to have a semi-transparent color in a table cell. I'm not referring to a tint, but a color that you can see through to objects that are underneath it.

    Hi Jay,
    The only way I can think of is by cheating, you could put a transparent rectangle shape into the actual cell, make sure you set the cell insets to 0 though. However if you want text in the cell as well this text will be transparent.

  • Link to Table cell content...

    Hi,
    I am Prashant.i am developing SDAP Portal.In that,I am populating data to the .NET SAP NwtWieaver Table control dynamically.I am also adding LinkToAction control to the table cell.I want some action should be carried out on clicking on that link.For that i am using LeadSelect event.
    Actually it works fine when i am putting data at design time by editing rows.But it does not work when i gather data from at run time.When i gather data at run time and when i click on some link,all the table data disappears.
    I can not understand why this is happened?. What properties should i set for the same.If any one knows, Please help me.
    Regards,
    Prashant J.

    Soory it is not SDAP.It is SAP....

  • I am having problems using Numbers package, unable to add specific cells in a column, when I tap "sum" it totals the whole column, rather than the specific cells I want. Would appreciate any help. Thank You Francis

    I am having a problem with adding selected numbers in a column. When I select "sum" the whole column is added, not just the selected cells. I would appreciate any help how to rectify? Many thanks. Francis Anthony

    I don't know if this is the best way but it's pretty easy.
    1.) Select the cell you want the sum in.
    2.) Select the sum function
    3.) In the line where you see =sum(B2:B8) using your finger tap the B2:B8
    4.) Use the backspace key to delete the B2:B8 and it will then show "value"
    5.) You can now tap any cell you want in the sum
    6.) When finished tap the green check mark button at the end of the sum line.
    That pretty much sums it up.
    Good luck.
    Steve

Maybe you are looking for

  • K8N Neo4 and Memory

    Hi.  I'm running 32-bit XP Pro and I need more memory but my K8N Neo4 is fully populated with 4 x PC2700 512Mb dimms.  I'm planning to buy 2 x 1Gb PC2700 dimms and use two of the existing 512Mb dimms.  I've looked at the manual for my m/b and it leav

  • Problem with adobe CC 2014 unstable in print mode

    I installed the "new and wonderful" Adobe Photoshop 2014.2 I am running win 7 on one computer and Win 8.1 on the other. BOTH computers shut down when I try to print almost any file I created with Adobe Photoshop CC and earlier. I have "re-set" the pr

  • POSTING DATE RANGE INCLUDED IN CUSTOMER RECEIVABLE AGEING REPORT PLD

    Dear All, Please can you tell me how to print the posting date range selected in the parameter selection for Customer Receivable Ageing Report PLD. Thanks Gary

  • Mail won't open inbox after upgrade

    After upgrading my dads macbook from 10.4.11 to 10.5.6, mail would open but nothing would pop-up. and when he opened the inbox manually, the account doesnt show up even though it is set correctly in the preferences. also when he goes to quit the appl

  • Can we call a  webservice  to   insert a value to r3 table  - using XI ?

    Hi friends  ,                    At present we are directly going to the r3 screen and   we are giving input to the particular  table.After succcesfull insertion  that will return a status as 's' .                        Can we do it through weservic