Dynamically re-render cells with event in another cell

Dear all,
I have a JTable that uses the default cellrenderer, it has two checkboxes, one of which disables the entire row, except for itself, so the row can be re-enabled.
However, I want to be able to color in the row Color.GRAY or some other suitable color. I started to create my own cell renderers for the different object types in my rows, when I realised that I had no idea how to re-render any cell in a row, once ive checked the 'disable row' cell...
there should be a way to fire this right? Also, in creating my own cell renderers, im having difficulty making them do the same thing as the normal cell renderers, apart from change color, is there any source code for the Boolean and Number cell renderers that comes with the java?
Thanks
Sam

I have a JTable that uses the default cellrenderer, it
has two checkboxes, one of which disables the entire
row, except for itself, so the row can be re-enabled.
However, I want to be able to color in the row
Color.GRAY or some other suitable color. I started to
create my own cell renderers for the different object
types in my rows, when I realised that I had no idea
how to re-render any cell in a row, once ive checked
the 'disable row' cell...you probably need to change the color first and then disable the row, from the callback of the checkbox. For example, you first call:
yourTableModel.fireTabelCellUpdated(row, other_column)
// the renderer of other_column changes color now
then disable the row.
there should be a way to fire this right? Also, in
creating my own cell renderers, im having difficulty
making them do the same thing as the normal cell
renderers, apart from change color, is there any
source code for the Boolean and Number cell renderers
that comes with the java?The complete source code comes with your JDK installation, e.g:
UNIX: /usr/j2se/src.jar
Windows: c:\Program Files\jdk1.3\src.jar
jar -xvf src.jar, and look at the code.

Similar Messages

  • In NUMBERS, on a iPad3, how do I get 1 cell to transfer to another cell on a different sheet?

    In NUMBERS, on a iPad3, how do I get 1 cell to transfer to another cell on a different sheet? Exm... Van 1, Auto Log, C7 to transfer over to Monthly report, April, C3

    Right-click on one of the other section headers. In the context menu that appears, make sure there is a checkmark in File Handling.

  • Table Cell - On change updates another Cell using SQL

    Hello All,
    Tried to search the forums with no luck.
    I am looking for a solution similiar to Denes's solution on his APEX demo page
    http://htmldb.oracle.com/pls/otn/f?p=31517:160
    (Javascript Set Display Item I)
    I have a table with a drop down list showing a list of staff members
    When the user selects a staff member I want an Onchange command that
    populates another tablle cell with the managers name
    the SQL to obtain the manager would be somehting like this
    Select staff.Manager From from STAFF where staff.userid = staffmembers
    I know I need to create a onchange command and pass the value to the called function.
    I just need help to create the javascript that obtains the data and passes the info back
    Hope this is a simple question for someone (not me lol!)
    Frank

    dear frank,
    i also had similar requirement. I had one page item and one button. based on some page item value the color of button need to be changed. For example, in a hotel when one of the room is occupied based on the occupatiuon status, the button labeled room no need to be displayed either as green or red. This was met by writing some ajax code on the button attributes. Later he himself written using simple display attributes html code on the button. I am not good at ajax, html and good only at sql. Since my need was met, i did not penetrate the issue of how it was done. i will try to locate the coding to alter conditional border display issue.
    yours
    dr.s.raghu

  • How do I use the formula = to enter one cell as a % of another cell

    I wish to enter into a seperate cell what one cell is as a % of another cell in numbers. How do I enter this % formula into the required cell.
    Peter

    Jalna,
    In "a separate cell" write: one-cell's-address / another-cells-address.
    Format separate-cell to %.
    Jerry
    Edit: I just noticed that your question is about iOS Numbers. So, the answer for iOS Numbers would probably be something like:
    Click in "a separate cell". Enter formula mode. Click on "one-cell", select  "/" operator, click on "another-cell". Exit formula mode. Format as %.
    Can you tell I'm just guessing?
    J.

  • Fill table cells with color % depending on cell content

    Hi.
    I'm working on a document with a lot of tables filled with percentages. The tables are originally on a Word document and the table cells are tinted according to their content: a value of 20% on the cell corresponds to a tint of 20%. This is done automatically on the Word document through a conditional formatting option that applies a graded color scale. Is there any way to do this in InDesign? I tried placing the tables and tried all options, but the color is not imported. Perhaps a script or a GREP style?
    Thank you.

    Conditional formatting in Word is done via formula, but in Excel it is handled more "on the surface" and Excel's conditional formatting carries into InDesign nicely via Place or Paste. It could be worth considering moving those tables into Excel.
    InDesign doesn't do this kind of formatting as a native function, but it couldn't hurt to ask about possible scripted solutions in the Scripting Forum.

  • With one cell with text, make 2 cells with 2 texts

    Hi,
    I have one column with first name and last name in a same cell (like 'Laurent Didden')
    I would like to transform automatically one column in 2 columns where one column will be with the first name, and the second column with the last name.
    How can I do that?
    Thank you for your help...
    Pat.

    Pat,
    Excel may have that function, I'm quite sure that Numbers does not. Numbers is in its first version and is not a clone of Excel in any case. The functions are not so complicated as they may seem.
    FirstName function translated into English is:
    If the WholeName is blank, Then leave the FirstName cell blank; Else put here the Left portion of WholeName, up to one character less than the position of the first Space Character you find in WholeName.
    The LastName function translated into English is:
    If WholeName is blank, Then leave the LastName cell blank; Else put here the Right portion of WholeName, the number of characters equal to the total length of WholeName minus the position of the first Space Character in WholeName.
    Hope this helps. Good luck.
    Jerry

  • How can I get an image in a cell to copy to another cell using formula?

    I have an jpeg image in a table that I want to be copied to 2 other tables automatically?
    Thanks for any help provided

    This is not possible in Numbers as-is.  Perhaps with an Applescript.

  • Is it possible to populate cell A with the formula in cell B as opposed to the value of the formula in cell B dynamically?

    Hello,
    I am wondering if the following scenario is possible:
    Cell B contains a formula which refers to a number of other cells.
    Cell A refers to Cell B such that the formula in Cell B is applied in Cell A.
    I am aware that I can copy and paste, but I am wanting to do this dynamically, for the following reason.
    In order to avoid constructing a very complicated formula which involves lots of tricky IF functions, I use a formula with a chain of simpler IF functions, such as follows:
    =IF(A1=1,B1,IF(A1=2,B2,IF(A1=3,B3,IF(A1=4,B4,IF(A1=5,B5,IF(A1=6,B6,IF(A1=7,B7,"" )))))))
    Then in B1-B7 I include the complicated formulas, and depending on which value is actually in cell A1 that particular formula is applied in the cell (i.e the cell is populated with the respective formula).
    Is it possible to use Numbers in this way, or if not, is there another way of achieving my goal (i.e. to avoid having to construct one very long and complicated formula)?
    Thanks,
    Nick.

    It depend of what you want to achieve.
    Here, in standard cells of column B the formula is :
    =IF($A=1,C,IF($A=2,D,IF($A=3,E,IF($A=4,F,IF($A=5,G,"")))))
    Here, in standard cells of column C the formula is :
    =$A*10
    Here, in standard cells of column D the formula is :
    =$A^2
    Here, in standard cells of column E the formula is :
    =$A*12345
    Here, in standard cells of column F the formula is :
    =$A+10000
    Here, in standard cells of column G the formula is :
    =20000-$A
    Here, in standard cells of column H the formula is :
    =OFFSET($A$1,ROW()-1,A+1)
    Here, in standard cells of column I the formula is :
    =CHOOSE($A,C,D,E,F,G)
    Here, in standard cells of column J the formula is :
    =IF($A=1,$A*10,IF($A=2,$A^2,IF($A=3,$A*12345,IF($A=4,$A+10000,IF($A=5,20000-$A," ")))))
    As you see, the formulas used in column B,H, I, require the use of the columns C, D, E, F, G
    The one used in column I doesn't require these columns.
    When a task requires a complex formula, I often used the columna A thru G
    then when I'm sure that the formula in column B return behave exactly what I want, I replace in the formula of column B the references to columns C thru G by the formula embedde in the pointed columns minus the equal symbol.
    It's what I did to build the formula of column J.
    If you build the sample table, you will see that the formula in column I isn't perfect because it return a red triangle when the cell in column A is empty.
    I decided to leave it as is and created an enhanced synthetic formula for column K:
    =IFERROR(CHOOSE(A,$A*10,$A^2,$A*12345,$A+10000,20000-$A),"")
    As you see a single problem may receive different answers.
    Sometimes, one is clearly the best, sometimes it's matter of taste.
    Here my best choice would be the very last one which I added for column K.
    Yvan KOENIG (VALLAURIS, France) mardi 23 août 2011 16:44:11
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Another JTable/buttons in cells query - event forwarding

    Hi Everyone.
    Apologies in advance for yet another thread on this subject. I realise this has been discussed a number of times but I can't find what seems like a definitive solution.
    I understand what the fundamental issue is with putting JComponents in table cells - i.e. that the cells are rendered essentially as static visual entities, that they're not "components" as such and will not receive events.
    I'd like to implement JButtons in table cells so that they behave as "normally" as possible - i.e. handle their own roll-over appearance, handle their own pressed appearance, and fire action events when pressed, with as little manual intervention in these mechanisms (e.g. in mouse listener code) as possible. I'm trying to do this by forwarding mouse events from the table to the button, but this doesn't seem to work as I'd hoped and I have various questions...
    (Background: I have implemented JButton objects in the data model, and the getTableCellRendererComponent() method returns *(JButton)value*.)
    My first question concerns the interception of mouse events. The usual technique would be to add a mouse listener and/or mouse motion listener to the table, and implement mouseClicked(), mousePressed() etc. However, can I override the table's processMouseEvent() and processMouseMotionEvent() methods instead, and from here forward events to buttons where appropriate, or process normally with super.processMouseEvent()? My motivation for doing this would be specifically not to invoke the super methods where events were forwarded to buttons - effectively consuming the event. Is this correct technique?
    My second question concerns attempts to reproduce button roll-over appearances. The JTable is of course considered a single entity as far as mouse events are concerned, and MOUSE_ENTERED and MOUSE_EXITED events aren't generated as the pointer moves from cell to cell. Merely forwarding mouse events to buttons - which will mostly be MOUSE_MOVED events - seems to be insufficient and presumably the roll-over appearance change relies upon ENTERED and EXITED events occurring at the proper times.
    I mimicked this behaviour in my override of processMouseMotionEvent() by calculating the value (i.e. JButton reference) of the cell under the mouse pointer, and if it wasn't the same as for the previous event, manually creating a MOUSE_ENTERED event and forwarding it to the new button. This seemed to work - the rollovers were happening (provided a table repaint() was performed), but it seemed to work without needing to explicitly sending a MOUSE_EXITED to the previous button before sending MOUSE_ENTERED to the new. I'm unclear why this is so - I was half-expecting both buttons to acquire the roll-over state, and they didn't.
    Also, I had assumed that having taken care of this, I should forward MOUSE_MOVED events occurring within the confines of a cell's area to the button verbatim, but this seems to instantly cancel out any roll-over (visually the button would briefly flash a roll-over appearance as the pointer moved into its cell bounds). Why might this be so?
    My last question is about the actual pressing of the button. I had hoped that forwarding MOUSE_CLICKED, MOUSE_PRESSED and MOUSE_RELEASED would cause the button to (a) acquire the button-pressed state, and (b) fire an action event to its action listeners. Neither of these things occur, and I don't understand why not.
    In summary, is interception and forwarding of events like this a viable technique for implementing table cell buttons? The various solutions that a Google trawl throws up all reproduce button-pressing mechanics in varying degrees, some just detecting a click and calling some user function, others manually manipulating the button model in the mouse handler etc. If possible I'd like to avoid this, and leave as much processing as possible to the button's native code.
    Thanks in advance for any suggestions received.
    Regards,
    A.

    try to look on this
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#editrender

  • How do I locate another cell phone with my iphone?

    how do I locate another cell phone with my iphone?

    you can't unless it's an AirPrint enabled printer or you purchase a 3rd party app like printopia.

  • Dynamic Table UI Element with different data type for each cell

    Hi Experts,
    I have a problem with a dynamic Table UI Element in Web Dynpro ABAP. I have the following coding:
    METHOD set_col_row .
      TYPE-POOLS: icon.
      DATA:
        lv_node         TYPE REF TO if_wd_context_node,
        lv_node_info    TYPE REF TO if_wd_context_node_info,
        lv_element      TYPE REF TO if_wd_context_element,
        lt_attributes   TYPE wdr_context_attr_info_map,
        lv_table        TYPE REF TO cl_wd_table,
        lv_table_column TYPE REF TO cl_wd_table_column,
        lv_text_view    TYPE REF TO cl_wd_text_view,
        lv_image TYPE REF TO cl_wd_image,
        lv_text_edit TYPE REF TO cl_wd_text_edit,
        lv_header       TYPE REF TO cl_wd_caption,
        attribute       LIKE LINE OF lt_attributes,
        lv_index       TYPE string,
        lv_cur_row         TYPE i,
        path            TYPE string,
        lv_value           TYPE string,
        attr_name       TYPE string,
        l_trc_point_id  TYPE string,
        l_num_cols      TYPE string,
        l_num_rows      TYPE string,
        lv_text         TYPE string,
        lv_index2 TYPE i,
        lr_ress_selections TYPE REF TO /its/di_2_cpr_ress_selections,
        lt_comp_tab TYPE cl_abap_structdescr=>component_table,
        ls_comp_tab LIKE LINE OF lt_comp_tab,
        lv_count TYPE i,
        lv_col_count TYPE i,
        lv_col_count_read TYPE i,
        lv_index_read TYPE i,
        lv_num_cols_minus_1 TYPE i,
        lv_bind_lv_value TYPE string,
        wd_standard_cell TYPE REF TO cl_wd_table_standard_cell,
        lv_data_count TYPE i,
        lv_data_count_str TYPE string,
        wd_table_column TYPE REF TO cl_wd_table_column,
        lv_column_id TYPE string.
      FIELD-SYMBOLS:
         TYPE ANY.
    Instanz der Klasse /ITS/DI_2_CPR_RESS_SELECTIONS
      lr_ress_selections = /its/di_2_cpr_ress_selections=>factory( ).
      ASSIGN lr_ress_selections->gr_table->* TO gt_comp_tab.
      ls_comp_tab-name = 'SUMME'.
    APPEND ls_comp_tab TO lt_comp_tab.
    ls_comp_tab-name = 'CELL_VARIANT'.
      APPEND ls_comp_tab TO lt_comp_tab.
      CLEAR ls_comp_tab.
      l_num_rows = num_rows + 1.
      CONDENSE l_num_rows.
      l_num_cols = num_columns + 1.
      CONDENSE l_num_cols.
    UI-Element 'TABLE'
      lv_table ?= wd_this->m_view->get_element( 'TBL_TABLE' ).
      lv_table->remove_all_columns( ).
    Kontext-Knoten 'TABLE'
      lv_node = wd_context->get_child_node( 'TABLE' ).
      lv_node_info = lv_node->get_node_info( ).
      lv_node_info->remove_dynamic_attributes( ).
      attribute-type_name = 'STRING'.
      lv_num_cols_minus_1 = num_columns - 1.
    Für jede Spalte einmal tun
      DO lv_num_cols_minus_1 TIMES.
        lv_index = sy-index + 1.
        CONDENSE lv_index.
        lv_table_column = cl_wd_table_column=>new_table_column( ).
        lv_column_id = lv_table_column->id.
    Spaltenüberschriften setzen
        IF lv_index EQ 1. "Beim ersten Durchlauf --> erste Spalte = "Ressourcen"
          lv_text = text-010.
          sy-index = 0.
        ELSE. "Danach für jede weitere Spalte eine Zeile aus der gt_comp_tab nehmen
          lv_index_read = lv_index - 1.
          READ TABLE lt_comp_tab INDEX lv_index_read INTO ls_comp_tab.
          lv_text = ls_comp_tab-name.
          lv_header = cl_wd_caption=>new_caption( text = lv_text ).
          lv_table_column->set_header( lv_header ).
        ENDIF.
        CONCATENATE 'TABLE.A' lv_index INTO path.
        lv_text_view = cl_wd_text_view=>new_text_view( bind_text = path ).
        lv_table_column->set_table_cell_editor( lv_text_view ).
        lv_table_column->bind_selected_cell_variant( 'TABLE.CELL_VARIANT' ).
        lv_table->add_column( lv_table_column ).
        wd_table_column ?= wd_this->m_view->get_element( lv_column_id ).
    *****************Test Cell Variant*************************************************
        IF lv_index GT 1.
          LOOP AT .
              IF sy-tabix EQ lv_cur_row.
              Name zuweisen
                ASSIGN COMPONENT 'NAME' OF STRUCTURE .
              Zuweisen ob Blatt oder nicht
                lv_element->set_attribute( name = 'NAME' value = lv_value ).
                ASSIGN COMPONENT 'IS_LEAF' OF STRUCTURE set_attribute( name = attr_name value = lv_value ).
              ENDIF.
        ENDLOOP.
    Now my problem is, that I need for every ROW of my table UI Element a different cell editor. I know how to change it for the column. But is not my issue. I want to have images (traffic lights red and green) in some rows. The other rows should have numbers. The coding works, so that I have all the data at the right place in my table, only the images are shown as a string, because the cells of these rows have the cell editor Text_View. I tried something with cell variants (with cl_wd_table_standard_cell), but it was not possible for me to get a cell variant "image" in these cells/rows were I need it. 
    I hope you understand my problem and now what to do here.
    Thanks a lot in advance.
    Best Regards,
    Ingmar

    Hi Experts, I have a problem with a dynamic Table UI Element in Web Dynpro ABAP. I have the following coding: METHOD set_col_row . TYPE-POOLS: icon. DATA: lv_node TYPE REF TO if_wd_context_node, lv_node_info TYPE REF TO if_wd_context_node_info, lv_element TYPE REF TO if_wd_context_element, lt_attributes TYPE wdr_context_attr_info_map, lv_table TYPE REF TO cl_wd_table, lv_table_column TYPE REF TO cl_wd_table_column, lv_text_view TYPE REF TO cl_wd_text_view, lv_image TYPE REF TO cl_wd_image, lv_text_edit TYPE REF TO cl_wd_text_edit, lv_header TYPE REF TO cl_wd_caption, attribute LIKE LINE OF lt_attributes, lv_index TYPE string, lv_cur_row TYPE i, path TYPE string, lv_value TYPE string, attr_name TYPE string, l_trc_point_id TYPE string, l_num_cols TYPE string, l_num_rows TYPE string, lv_text TYPE string, lv_index2 TYPE i, lr_ress_selections TYPE REF TO /its/di_2_cpr_ress_selections, lt_comp_tab TYPE cl_abap_structdescr=>component_table, ls_comp_tab LIKE LINE OF lt_comp_tab, lv_count TYPE i, lv_col_count TYPE i, lv_col_count_read TYPE i, lv_index_read TYPE i, lv_num_cols_minus_1 TYPE i, lv_bind_lv_value TYPE string, wd_standard_cell TYPE REF TO cl_wd_table_standard_cell, lv_data_count TYPE i, lv_data_count_str TYPE string, wd_table_column TYPE REF TO cl_wd_table_column, lv_column_id TYPE string. FIELD-SYMBOLS:  LIKE LINE OF lt_attributes,  TYPE ANY TABLE,  TYPE ANY,  TYPE ANY,  TYPE ANY. * Instanz der Klasse /ITS/DI_2_CPR_RESS_SELECTIONS lr_ress_selections = /its/di_2_cpr_ress_selections=>factory( ). ASSIGN lr_ress_selections->gr_table->* TO . lt_comp_tab = lr_ress_selections->gt_comp_tab. ls_comp_tab-name = 'SUMME'. * APPEND ls_comp_tab TO lt_comp_tab. * ls_comp_tab-name = 'CELL_VARIANT'. APPEND ls_comp_tab TO lt_comp_tab. CLEAR ls_comp_tab. l_num_rows = num_rows + 1. CONDENSE l_num_rows. l_num_cols = num_columns + 1. CONDENSE l_num_cols. * UI-Element 'TABLE' lv_table ?= wd_this->m_view->get_element( 'TBL_TABLE' ). lv_table->remove_all_columns( ). * Kontext-Knoten 'TABLE' lv_node = wd_context->get_child_node( 'TABLE' ). lv_node_info = lv_node->get_node_info( ). lv_node_info->remove_dynamic_attributes( ). attribute-type_name = 'STRING'. lv_num_cols_minus_1 = num_columns - 1. * Für jede Spalte einmal tun DO lv_num_cols_minus_1 TIMES. lv_index = sy-index + 1. CONDENSE lv_index. lv_table_column = cl_wd_table_column=>new_table_column( ). lv_column_id = lv_table_column->id. * Spaltenüberschriften setzen IF lv_index EQ 1. "Beim ersten Durchlauf --> erste Spalte = "Ressourcen" lv_text = text-010. sy-index = 0. ELSE. "Danach für jede weitere Spalte eine Zeile aus der gt_comp_tab nehmen lv_index_read = lv_index - 1. READ TABLE lt_comp_tab INDEX lv_index_read INTO ls_comp_tab. lv_text = ls_comp_tab-name. lv_header = cl_wd_caption=>new_caption( text = lv_text ). lv_table_column->set_header( lv_header ). ENDIF. CONCATENATE 'TABLE.A' lv_index INTO path. lv_text_view = cl_wd_text_view=>new_text_view( bind_text = path ). lv_table_column->set_table_cell_editor( lv_text_view ). lv_table_column->bind_selected_cell_variant( 'TABLE.CELL_VARIANT' ). lv_table->add_column( lv_table_column ). wd_table_column ?= wd_this->m_view->get_element( lv_column_id ). ******************Test Cell Variant************************************************** IF lv_index GT 1. LOOP AT  ASSIGNING . ASSIGN COMPONENT 'TYPE' OF STRUCTURE  TO . ADD 1 TO lv_data_count. lv_data_count_str = lv_data_count. CONCATENATE 'A' lv_index lv_data_count_str INTO path. wd_standard_cell = cl_wd_table_standard_cell=>new_table_standard_cell( view = wd_this->m_view variant_key = 'FLDATE' ). IF  = '01' OR  = '04'. lv_image = cl_wd_image=>new_image( bind_source = path view = wd_this->m_view ). wd_standard_cell->set_editor( lv_image ). wd_standard_cell->set_cell_design( '01' ). ELSE. lv_text_view = cl_wd_text_view=>new_text_view( bind_text = path view = wd_this->m_view ). wd_standard_cell->set_editor( lv_text_view ). wd_standard_cell->set_cell_design( '02' ). ENDIF. wd_table_column->add_cell_variant( wd_standard_cell ). ENDLOOP. ENDIF. ************************************************************************************* CONCATENATE 'A' lv_index INTO attribute-name. lv_node_info->add_attribute( attribute ). ENDDO. DO num_rows TIMES." Für jede Zeile einmal tun lv_cur_row = sy-index. lv_element = lv_node->create_element( ). lv_node->bind_element( new_item = lv_element set_initial_elements = abap_false ). DO l_num_cols TIMES. ADD 1 TO lv_col_count. IF lv_count LT 1. LOOP AT  ASSIGNING . IF sy-tabix EQ lv_cur_row. * Name zuweisen ASSIGN COMPONENT 'NAME' OF STRUCTURE  TO . "NAME lv_value = . * Zuweisen ob Blatt oder nicht lv_element->set_attribute( name = 'NAME' value = lv_value ). ASSIGN COMPONENT 'IS_LEAF' OF STRUCTURE  TO . "NAME lv_value = . lv_element->set_attribute( name = 'IS_LEAF' value = lv_value ). ENDIF. ENDLOOP. ENDIF. IF lv_count GT 0. lv_col_count_read = lv_col_count - 1. lv_index = sy-index. LOOP AT  ASSIGNING . IF sy-tabix EQ lv_cur_row. CLEAR ls_comp_tab. READ TABLE lt_comp_tab INDEX lv_col_count_read INTO ls_comp_tab. ASSIGN COMPONENT ls_comp_tab-name OF STRUCTURE  TO . lv_value = . CONDENSE lv_index. CONCATENATE 'A' lv_index INTO attr_name. lv_element->set_attribute( name = attr_name value = lv_value ). ENDIF. ENDLOOP. ENDIF. lv_count = lv_count + 1. ENDDO. CLEAR lv_col_count. CLEAR lv_count. ENDDO. ENDMETHOD. I definied my table in Layout Tab of the View and create here in thos method dynamicly my columns. lv_table_column = cl_wd_table_column=>new_table_column( ). . . lv_table->add_column( lv_table_column ). In  I have my data that should be shown later in my table. So I create for each row in this fieldsymbol in a loop: lv_element = lv_node->create_element( ). lv_node->bind_element( new_item = lv_element set_initial_elements = abap_false ). Later I fill every cell in my table with a different value with this loop: LOOP AT  ASSIGNING . IF sy-tabix EQ lv_cur_row. CLEAR ls_comp_tab. READ TABLE lt_comp_tab INDEX lv_col_count_read INTO ls_comp_tab. ASSIGN COMPONENT ls_comp_tab-name OF STRUCTURE  TO . lv_value = . CONDENSE lv_index. CONCATENATE 'A' lv_index INTO attr_name. lv_element->set_attribute( name = attr_name value = lv_value ). ENDIF. ENDLOOP. Now my problem is, that I need for every ROW of my table UI Element a different cell editor. I know how to change it for the column. But is not my issue. I want to have images (traffic lights red and green) in some rows. The other rows should have numbers. The coding works, so that I have all the data at the right place in my table, only the images are shown as a string, because the cells of these rows have the cell editor Text_View. I tried something with cell variants (with cl_wd_table_standard_cell), but it was not possible for me to get a cell variant "image" in these cells/rows were I need it. I hope you understand my problem and now what to do here. Thanks a lot in advance. Best Regards, Ingmar

  • I format a cell with a double line at the bottom and it appears until I move to another cell and the formatting is lost.

    In Numbers, I format a cell with a double line at the bottom and it appears until I clik on another cell and then it disappears.

    When you describe the "double" line are you talking about something like this?
    If so this is only selecting an edge of a cell.  You still have to select:
    1) Line style using the menu to the right of the one I have circled (currently  "Thin")
    2) Line width using the menu to the right of the previous one and, finally,
    3) the line color using the menu to the right of the previous one
    Even so I have not found a way to copy cell border formatting so I ALWAYS wait until the very end to add border formatting.

  • Conditional Formatting in one cell with a dates in another cell

    I have a simple spreadsheet that will gauge a project's progress.  I wish to have individual cells change color based on another cell.  I can't get the right syntax in order - groan
    E2 has today's date, =NOW()
    G2 (not started) would change from a color to no color when the start date, F27,  has arrived then
    H2 (started) would change to a color when the date is met, F27, (may be change color as the completed date arrives) then no color when the completed date arrives, F28.
    I2 (completed) would change to a color when the date is met, F28
    When the spread sheet is opened or if I need to change the dates in either of the cells the cells with color gauges will update.
    I am using conditional formating through the ribbon.
    Please help!

    Hi,
    Thank you for posting in the MSDN Forum.
    Since the issue is more relate to the end-user, I'd like to move it to Excel IT pro forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    Best regards
    Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Transform a cell with avalue of mintues to another cell to show hours:minutes

    I would like to use be able to fill out one cell in plain mintues(for example 75 min) which I want to be shown in another cell as hours:minutes( 1hrs:15min).

    HI Micke,
    What you use in column D depends on what you actually want or need the result to be—a duration value, including units (h and m), a number representing the number of hours and fraction of hour with the unit label in the next column, or a text value showing the number of hours and the number of 'extra; minutes including unit labels.
    The value in column B is a number, which, according to your original question, you want to display in column D as a duration in hours and minutes.
    The English language function to do that is DURATION. Here's the syntax for regions where the decimal separator is a period.
    DURATION(weeks, days, hours, minutes, seconds, milliseconds)
    In my localization, the formula in D would be =DURATION(,,,B)
    In your localization DURATION would be replaced by the Swedish name for this function, and the three commas would be replaced by semi colons:
    =FUNCTIONNAME(;;;B)
    Format the cell in column D as DURATION with hours and minutes as the units to include in the display.
    Although that will convert the number in B to a duration in D, the labels "Min" and "Hrs" in the cells to the right of theseclls in the image of your table implies that what should be in both of these cells should be a number value representing the number of minutes (B) and the number of hours, including (decimal) fractional hours (D) with the unit shown by the label in the adjacent column.
    =B/60
    Formatted to show two places after the dcimal will show the number representing hours and hundredths of hours equivalent to the number of minutes shown in column B.
    If you are using this value in further calculations, this may be the best type of value to place in this cell.
    If the cell is for display only, you can build a text string displaying the number of hours and minutes (with whatever labels you wish to put in for Hrs and Min using QUOTIENT and MOD
    =QUOTIENT(B,60)&" Hrs "&MOD(B,60)&" Min"
    This is a text value, and can't be used in further calculations. (but the calculations could probably be revised to use the value in B.
    Regards,
    Barry

  • I wish to link a  cell from one file or "shell" with a specific quantity to another cell in another file or "shell".

    I wish to link or send a  cell from one file or "shell" with a specific quantity or text to another cell in another file or "shell".  For example.  I wish to  send all general ledger (one data enty File or "sheet")  entries into their specific individual accounts. (in seperate files or "sheets").   Is this possible in Numbers?

    Hi cochise0011;
    A picture of tables would be much easier to comprehend the querry.
    Regards,

Maybe you are looking for

  • Push Notifications not working on any app (Whatsapp, Beejive, Mail) after update 5.1.1, Help!

    I'm gonna try to be clear with my problem. I have a Gmail Account working on Microsoft Exchange, for IM messaging I'm using Beejive IM with Push and I'm also using Whatsapp.  Before Updating it to iOS 5.1.1 all Push notifications were working flawles

  • Shuffle (2nd Gen) not been used for a few years - not working at all - any ideas?

    My Ipod Shuffle (2nd Gen) has not been used for a long time and now will not give any reponse at all. It won't charge and it is not recognised by ITunes - is there anything I should do?

  • File data transformation

    Hello, Looking for some advise... We have text file as a source and one of the column "Period" has data in Q1FY10 format. And in the ODI interface this text source file column needs to be parsed to map two columns in the target (Time & Year) Ex: Q1 -

  • Issues in IE with horizontal spry menu

    Hi there, My horizontal menu is not working in IE(6 and up), but works perfect in Safari, Firefox, Opera.  In IE, the menu shifts to the right and shuffles everything along with it. Here is a sample page.  Can anyone help me??? http://www.tmnevents.c

  • IBook G4 / 800 - Sleep = Off ??

    I had to replace the hard drive in my iBook. After reinstalling Tiger, the machine has developed an issue where it does not sleep correctly - instead it completely powers off. Whether I choose "Sleep" or close the lid, the machine appears to go to sl