Table sIngle Markable cell

Hi friends,
I got a task to find the X and Y coordinates of a table cell  using Table Single Markable cell.......
Is it possible to get X,Y coordinates  using the above API.....
Is there any alternative for this......
please code me and help me....
Thanks &Regards
Shravan kumar

Hi shravan..
Go thru this link..
Urs GS...

Similar Messages

  • How to raise on click event for Single Markable cell in WD Table

    Hi All,
        I want to raise an event when a cell is clicked on Single Markable Cell and get the row and column of that cell.
    I have tried all the events of the table and also On Enter event of input Field.
    But I am not able to trigger on click event .
    Please help me out. Points will be rewarded.

    Hi Anil,
            If the cell editor is a link to action then it triggers the ON CLICK event , Write the following code into
           the ON CLICK event handler to get the selected Row and Column ID.
          Event Properties is a node with two attributes Name and Value of type string.
    data: lr_node type ref to if_wd_context_node,
    lt_event_properties type wd_this->elements_event_properties,
    ls_event_properties type wd_this->element_event_properties.
    field-symbols: <l_value> type any.
    * fill internal table
    ls_event_properties-name = 'COLUMN_ID'.
    ls_event_properties-value = r_param->column.
    append ls_event_properties to lt_event_properties.
    ls_event_properties-name = 'INDEX'.
    ls_event_properties-value = r_param->index.
    append ls_event_properties to lt_event_properties.
    ls_event_properties-name = 'ATTRIBUTE'.
    ls_event_properties-value = r_param->attribute.
    append ls_event_properties to lt_event_properties.
    assign r_param->value->* to <l_value>.
    ls_event_properties-name = 'VALUE'.
    ls_event_properties-value = <l_value>.
    append ls_event_properties to lt_event_properties.

  • Usage of Single Markable cell - Cell Variants.

    Using Cell Variant SingleMarkable Cell, is it possible to set different colours for cell's in a single column ..
    If its possible , could someone elobarate on how it works ? And provide info on attributeToMark and attribute pointer..?
    Thanks and Regards

    Hi Bharathwaj,
    if you want to set different colors, just use the cell variant TableStandardCell.
    You can find documentation here:
    In this case it's described for a TableSingleMarkableCell, but it works in the same way for a TableStandardCell.
    Hope this helps
    Kind Regards

  • 2 combo box on a single jtable cell

    I need to add two combo box to a single jtable cell..One for selecting the number and the other for specifying whether the number specifies daily, weekly or yearly data .Please help

    hey thank you so worked..... i am adding the code .....
    this is how you add an editor to a column
               TableColumn col=jtInfo.getColumnModel().getColumn(2);
               col.setCellEditor(new ComboCellEditor());the class that extends cell editor
        public class ComboCellEditor extends JPanel implements TableCellEditor
            public Component getTableCellEditorComponent(JTable table,Object value, boolean isSelected,int row, int column)
               this.setLayout(new GridLayout(1,2));
                     jcbCombo1=new JComboBox();
                     for(int i=1;i<31;i++)
                     jcbCombo2=new JComboBox();
                return this;
            public Object getCellEditorValue()
                return this;
            public boolean isCellEditable(EventObject e)
                return true;
            public boolean shouldSelectCell(EventObject e)
                return true;
            public boolean stopCellEditing()
                return false;
            public void cancelCellEditing()
            public void addCellEditorListener(CellEditorListener e)
            public void removeCellEditorListener(CellEditorListener e)

  • How to implement Table with Common Cell Section

    I have requirement of displaying mulltiple rows in single column cell for certain columns in each row of Table.
    This has to be a read only table, with alternate design support in 7.02
    The Data Source contains all the elements to display in table as seperate columns (Data1..Data7).
    I have checked at Grouped Column design, its bit different from grouped column.
    Header1     |  Header2 | Header 3  | Header 5 | Header 7
                                     | Header 4  | Header 6 |
    Row-Data1 |     Data 2 | Data3      | Data 5     | Data 7
                                     | Data4      |  Data 6    |
    Row-Data2 |    Data22 | Data33     | Data55    | Data77   
                                        Data 44   |  Data 66  |
    Please let me know, if you have any idea of achieving this form of table in WD Java..

    I don't know how to do this with WD Java Table UI element, and you could build simple html table using webwidget UI element but that is not available on 702 as far as I know, plus this case the filtering, sorting and other features have to be done also manually using your own algorithm.
    Here is what I just built on 730 using WebWidgets:
    I checked also the grouped column, but that worked only for the header of the column, and behaved like colspan, while what you need is probably rather like rowspan.
    I know it is not a big help, maybe someone else knows how to do this with Table UI (if it is even possible).
    Still, perhaps someone else is interested who is using a higher release like 730.
    I created a webwidget UI element and bound to its "html" property a string context element that I called "widgethtml".
    After this I added this code to the wdDoModifyView() hook method:
    StringBuilder sb = new StringBuilder();
      .append("<style type=\"text/css\">")
      .append(".AlternateTable{width:100%; border-collapse:collapse;}")
      .append(".AlternateTable td ,th{padding:7px; border:black 1px solid;}")
      .append(".AlternateTable tr:nth-child(n){ background: #9BBB58;}")
      .append(".AlternateTable tr:nth-child(n+3){ background: #E9EEF4;}")
      .append(".AlternateTable tr:nth-child(n+5){ background: #558ED5;}")
      .append("<table class=\"AlternateTable\">")
      .append("<th rowspan=\"2\">Header1</th>")
      .append("<th rowspan=\"2\">Header2</th>")
      .append("<th rowspan=\"2\">Header5</th>")
      .append("<td rowspan=\"2\">Data1</td>")
      .append("<td rowspan=\"2\">Data2</td>")
      .append("<td rowspan=\"2\">Data5</td>")
      .append("<td rowspan=\"2\">Data11</td>")
      .append("<td rowspan=\"2\">Data22</td>")
      .append("<td rowspan=\"2\">Data55</td>")

  • How to allow multiple values in a single blank cell in WebI report

             I am working in BO XIR2. I have a scenario as follows.
    In a single cell (blank cell from template) i need to display multiple contact persons. When I drag the contact person name into the blank cell, I am getting an error: MULTIVALUE). Please let me know how to use a function so that I can show two or three contact person names in a single blank cell.
    I tried to use Replace and Char function as follows to bring Carriage Return functionality to the cell.
    Replace([Contact Person]; ";" ; Char(13)) but this did not work.
    Thanks in Advance.

    I know this thread has been answered. I recently came across a scenario where I happen to populate multiple values in a single blank cell(from templates). But the only catch being that if user enters multiple values for a prompt you can show them in a single cell eg: =UserResponse("Enter value(s) for Branch:"). would be the formula for the blank cell. Afetr the user selects three values say A, B,C, webi puts it in the format of A;B;C. in a single cell.
    In your case try giving that as a prompt to the user or answer that multi prompt some how and when u use the above formula it should suffice your requirement.
    Let me know if you have tried.

  • How do you have the bottom stroke of a table show up using Table Styles and Cell Styles only?

    I am using InDesign CS6, and I want to create a Table Style that has the bottom stroke show up, but does not have a table border, such as:
    However, whenever I try to change the Table or Cell strokes so that the last stroke shows up, I get the entire table border, or some strange combination of borders:
    Does anyone have any insight on how I can get the bottom stroke to show up while preserving my other stroke properties? Since I work with long documents, it's necessary to be able to control all of my tables through Table Styles and Cell Styles, and not by manually changing each and every table with the Stroke palette.
    For reference, here are the my current Table Style properties and the resulting table:

    Michael Murphy is the InDesign style-meister. He wrote "Adobe InDesign Styles" for Adobe Press, and did a great title on InDesign styling. Here's what he says in the book:
    "As mentioned at the beginning of this chapter, with all the power of table and cell styles, it is important to understand not only how they work and what they can do for you, but also to understand their limitations.
    "Two formatting features missing in table and cell styles have already been discussed: You will always have to set the column width and row height of cells when applying a table style for the first time, and you will always have to convert body rows to header and/or footer rows every time you apply a table style for first time or update the table's data....
    "But there's another kind of limitation that's important to keep in mind as you are designing tables: It is very easy to design a table that cannot be completely defined by a table style. In many cases, you'll need to define an extra cell style or two that lets you complete for formatting. [my emphasis]."
    So I think that's what you have to do: Apply another cell style on top of the cells at the bottom of the table after applying the table style.

  • How do i set the background of the table( not of cell / row / column).

    How do i set the background of the table( not of cell / row / column).
    What happens when i load the applet the table is blank and displays the background color is gray which we want to be white.
    We tried using the setBackGround but it is not working maybe we are not using it properly. Any help would be gr8.
    Thanks in advance.

    I don't understand very well, but i guess that the background is gray when the table content's empty, isn't it?
    When the table model is empty, the JTable doesn't paint, so its container displays its background (often gray).
    In this case, what you must do is force the table to paint, even if the model is empty. So, you have to create your own table and override three methods :
    public class MyTable extends JTable
    //specify the preferred and minum size when empty
    myPreferredWidth = 200;
    myPreferredHeigth =200;
    myMinimunWidth = ...;
    myMinimunHeigth = ...;
    public Dimension getPreferredSize()
    if(getModel().getRowCount() < 1)
    return new Dimension(myPreferredWidth, myPreferredHeigth);
    return super.getPreferredSize();
    public Dimension getMinimumSize()
    if( getModel().getRowCount() > 0)
    return new Dimension(myMinimunWidth, myMinimunHeigth);
    return super.getMinimumSize();
    protected void paintComponent(Graphics g)
    if (getModel().getRowCount<1 && isOpaque()) { //paint background
    g.fillRect(0, 0, getWidth(), getHeight());
    else super.paintComponent(g);

  • Tables in List Cells?

    I have been experimenting with some java swing gui components lately and I want to do the following, but have had no success thus far.
    I have a list which I want to post some information in relative to an option the user can select. I can post some numbers in there but I want the following kind of layout in each cell...
    | |__________|
    basically a table in each cell with two columns by two rows and the left most cells merged. Information is obviously going in each cell which I have no problem doing. I tried creating a Vector of tables for the list constructor with no luck.
    So any ideas on how this can be achieved would be appreciated. If I happen to be on the right track, I will post the code on what I have done, just basic steps for now please ;-)

    public class MyCellRenderer extends JPanel implements ListCellRenderer {
         public MyCellRenderer() {
         public Component getListCellRendererComponent(
             JList list,
             Object value,
             int index,
             boolean isSelected,
             boolean cellHasFocus)
             // create a set of components using a GridBagLayout or something like
             // you were making any other similar layout.
             setBackground(isSelected ? : Color.white);
             setForeground(isSelected ? Color.white :;
             return this;

  • Hi guys n girls. How do you copy a whole table to create a new table with all cell sizes in tact? Thanks for your help. Jason.

    Hi guys n girls. How do you copy a whole table to create a new table with all cell sizes in tact? Thanks for your help. Jason.
    when you copy n paste into a new table, all the cell sizes are changed.
    is there a way to put in a new table from your templates into an existing file, different to the standard very basic ones in insert table.
    I look forward to your answers.  Your help is very much appreciated.
    Also how do you search for question answers already written in this support area please.

    Hi Jason,
    In Numbers 3, you can select a whole table by clicking once in the table to make it active, then click once on the "bull's eye" at the top left.
    Now copy and paste. All formatting (and any cell content) is pasted intact. In Numbers 2.3 (Numbers '09) it is a little different for selecting a whole table. But I won't go into that unless you are using Numbers '09. Please reply.
    I don't like the look of the tables in Insert Table. I keep custom tables in My Templates. I have set Numbers > Preferences > General > For New Documents > Use template: (name of my favourite custom template)
    That opens when I launch Numbers, or ask for a new document (command n). Note that if you follow this preference setting, then Menu > File > New From Template Chooser (for another template) requires you to hold down the option key in that menu.
    Message was edited by: Yellowbox. All formatting (and any cell content) is pasted intact.

  • TextFormatter in list, table and tree cells

    Release 8u40 introduces the TextFormatter concept in the text input field area. It is currently a new property of the TextInputControl class.
    This is defintely a more elegant way to deal with validation than overriding "replaceText(...)".
    Shouldn't this property also be available in list, table and tree cells ?
    Are there plans to do this (before we make our own implementation) ?

    I've got exactly the same problem, +1.
    This shouldn't be to difficult to solve for 8u60 and definitely useful,
    giving access to the text input control in mutable cells could be a one-line workaround !
    Additionally, could a TextFormatter be made shareable between table/list rows
    by NOT using the value/valueConverter properties, but only the filter part in cases
    where the final desired output type is String ?

  • J Table - Single Cell Alignment

    Hello everyone,
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.util.Random;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.TableColumnModel;
    public class RowColorTest
        private JTable table;
        public static void main(String[] args)
            new RowColorTest();
        public RowColorTest()
            javax.swing.SwingUtilities.invokeLater(new Runnable()
                public void run()
        public void createGUI()
            JFrame frame = new JFrame();
            String[] columnNames = new String[4];
            columnNames[0] = "Name";
            columnNames[1] = "Age";
            columnNames[2] = "Value";
            columnNames[3] = "Extra";
            Object[][] data = new Object[20][4];
            Random r = new Random();
            for(int a=0; a < 4; a++)
                for(int i=0; i < 20; i++)
                    if(i == 0 || i == 5 || i == 10 || i == 15)
                        data[i][a] = 23;
                        data[i][a] = r.nextInt(50);
            DefaultTableModel model = new DefaultTableModel(data, columnNames);
            table = new JTable(model)
                public boolean isCellEditable(int rowIndex, int vColIndex)
                    return false;
                public Class getColumnClass(int column)
                    return getValueAt(0, column).getClass();
                public Component prepareRenderer(TableCellRenderer renderer, int row, int column)
                    Component c = super.prepareRenderer(renderer, row, column);
                    TableColumnModel tcm = table.getColumnModel();
                    Object result = getValueAt(row, tcm.getColumnIndex("Value"));
                    if(result instanceof Integer)
                        if(((Integer) result) == 23)
                            c.setBackground(new Color(0, 255, 153));
                            if(column == 0)
                                    // I would like to do a CELL ALIGNMENT for this particular condition.
                                    // setHorizontalAlignment() does not exist for the object c (Component).
                            if(column == 0)
                                    // I would like to do a CELL ALIGNMENT for this particular condition.
                                    // setHorizontalAlignment() does not exist for the object c (Component).
                    return c;
            JPanel panel = new JPanel();
            JScrollPane sp = new JScrollPane(table);
            panel.add(sp, BorderLayout.CENTER);
    }Sorry for bringing this up again, but I am having a hard time trying to "align" a single "cell". In the code that I have provided, I tried to find a method from the Component object for setHorizontalAlignment() hoping to make this call:
    However, it does not exist. How would I go about setting the alignment for an individual cell? I've searched the forum for "cell alignment" and found some information about using a DefaultTableCellRenderer, but I'm not sure how to merge that with the existing code that I currently have.
    In this thread: , camickr pointed out that I can use the row and column variables to find which cell to align, however once I've found the particular cell that I'd like to align, what do I do next? The component c does not have a method to set alignment in this scenario.
    Thanks again,

    You - the programmer - know that the component in question will be a label of some kind. The compiler, however, does not. As far as javac is concerned, the component could be, say, a 3D animation, in which case setHorizontalAlignement would be illegal.
    In order to share our runtime knowledge with the compiler, we have to use some explicit casting:
    (JLabel)c.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);Note that this will lead to runtime errors if our component is not an instance of JLabel, so it's a good idea to surround the code with:
    if (c instanceof JLabel){

  • Help needed with referencing single Excel cells and formatting resulting text

    In InDesign CS5 I am putting together a 20pp catalogue of about 200 products. The plan is to have the product information, SKU code, quantity etc fixed, but have the prices (there are two i.e. pack price and individual price) being linked to an Excel spreadsheet. This is so that the prices can be updated in the Excel file and the InDesign file will pull the new prices through. In case you are wondering why I don't pull the whole set of information through, this is because there are a lot of copywriting changes done to the information once it's in InDesign - it's only going to be the prices that will be updated.
    I am planning on having two single cell tables in their own text frame, duly formatted with cell style, table style and paragraph style for the two price variables. This I am then going to have to repeat 200 times making sure I link to the next row down in Excel. This is going to be a hideous task but I see know way of modifying the cell in InDesign to point it to the next row in Excel. That's my first problem.
    My second problem is this. In the Excel sheet, the prices are formatted as UK currency and are therefore like this...
    What I will require is once I import that data (and refresh the data via a newly saved Excel file) is that the prices end up like this...
    So if the value is lower than £1.00 it needs a trailing 'p' added  and the leading zero and '£' sign stripped off. If the value is lower than £0.10 it also needs the zero after the decimal point stripping off.
    Then formatting wise, the '£' sign needs to be superscripted and the same for the 'p'. This I am assuming could be done via GREP?
    In summary, can anyone help with the first task of referecing the Excel cells on a cell by cell basis, given that it is the same cell column each time, but the next row down, and also point me in the right direction of the price formattting issues.
    Any help will be gratefully received.

    I would do this:
    Create on line with the formatting.
    Export as InDesign tagged text (TXT)
    Read out these tags
    In Excel exists a function to connect text from several cells and predfined text, there connect the content from cells with the paragraph styling tags. Do it in a seperate sheet. (Better would be to use a database like Access, there you can link your Excel sheet).
    Export this sheet as txt file
    Place this sheet as tagged text (there is an option in one of the sialog boxes).
    In preferences  < file handling you can specify that Tablecalculation Sheets and text is not embedded but linked, turn it on.

  • Freely-programmed value help for a single ALV cell

    Greetings everyone,
    I have a freely-programmed value help that works beautifully when attached to the context element of a single field, but now I'm needing to use it in an ALV for a specific cell.  Is there a way to shut off the dropdown for all of the rows (cells) in the column where I don't need it?  Or, is there an appropriate workaround that can deliver the same results?
    I've found several posts that address similar issues, but nothing for this exact problem.
    Jason Block

    I take it from reading your description what you want is a little more complicated than just controlling the read-only property on the input field. If I read you properly you still want to have all the cells in a column to be open for input, just on some of them you want to disable the value help.  Is that correct?  See these screen shots for clarification:
    If you focus on the the input field in the first row, you get the value help:
    However if you go to the second row and focus on the same input field in this column, you don't get the value help:
    If this is what you want, then buckel up because this was a challenging one.  The problem is that the value help specification is not done at the UI element level, but instead at the context attribute level.  Therefore it can't be as simple as controlling a property on the inputField itself.  What you will need to do is extend the context node that you have bound to the ALV.  You need to add a second version of the attribute that is bound to your input field.  In this second version you can set the value help specification to Disabled:
    Notice from the screen shot that I also added another attirbute called CVAR (type STRING).  We will need that later.  It will be used to store which cell variant show be used on a particular row.
    Now we must go to the place in your code where you fill the context node with data.  You will need to copy the data from your primary attribute to your secondary one.  In my case I was copying the values from CARRID to CARRID2.  Of course for update, you would need to merge the data back together before saving it back to the database.  I also set a simple odd/even pattern of controller in the cell variant.  I assume you will have some actual business logic that controls this:
    data odd type boolean value abap_true.
       loop at lt_f_r_sflight[] assigning <ls_f_r_sflight>.
        clear ls_c_r_sflight.
        move-corresponding <ls_f_r_sflight> to ls_c_r_sflight.
        move <ls_f_r_sflight>-carrid to ls_c_r_sflight-carrid2.
        if odd = abap_true.
          odd = abap_false.
          odd = abap_true.
          ls_c_r_sflight-cvar = 'NOVH'.
        insert ls_c_r_sflight into table lt_c_r_sflight[].
      lo_r_sflight->bind_table( lt_c_r_sflight[] ).
    Next is the logic in the initialization of the ALV.  We will need to create two input fields - each bound to the different context attributes. We will make the one the primary cell editor.  The other will become the cell editor of the cell variant.  We then tell the column where it can get its cell variant value from:
    DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
      lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
      IF lo_cmp_usage->has_active_component( ) IS INITIAL.
        lo_cmp_usage->create_component( ).
      DATA l_salv_wd_table TYPE REF TO iwci_salv_wd_table.
      l_salv_wd_table = wd_this->wd_cpifc_alv( ).
      DATA l_table TYPE REF TO cl_salv_wd_config_table.
      l_table = l_salv_wd_table->get_model( ).
      l_table->if_salv_wd_table_settings~set_read_only( abap_false ).
      DATA input1 TYPE REF TO cl_salv_wd_uie_input_field.
      DATA l_column TYPE REF TO cl_salv_wd_column.
      l_column = l_table->if_salv_wd_column_settings~get_column( 'CARRID' ).
      CREATE OBJECT input1
          value_fieldname = 'CARRID'.
      l_column->set_cell_editor( input1 ).
      DATA input2 TYPE REF TO cl_salv_wd_uie_input_field.
      CREATE OBJECT input2
          value_fieldname = 'CARRID2'.
      DATA l_cv TYPE REF TO cl_salv_wd_cv_standard.
      CREATE OBJECT l_cv.
      l_cv->set_key( 'NOVH' ).
      l_cv->set_editor(  input2 ).
      l_column->add_cell_variant( l_cv ).
      l_column->set_sel_cell_variant_fieldname( 'CVAR' ).

  • Deactivated imput-ready feature for a single line/cell

    Hello to everybody.
    I've looking for a possibility to deactivate the input-ready feature for just a single cell.
    My table shows a collection of accounts from an object.
    There's a column for the actual value and right of it the input-ready column for the planning value that should be typed in by the user.
    One row of it contains a value that shouldn't be planned.
    The problem is, I want to have them in the table but as I said not input ready.
    Is this possible? If so, how?
    Thanks in advance.

    Yes you can do this. If you do not want the user to change some accounts then you can make freeze this by applying data slices. 
    In the planninh modeler goto the info provider tab , there you can see data slice tab.
    There are two types of data slices;
    Data slice based on selection:
    If you want to freeze any data then you can either hard code the values or you can do it through an customer exit variable for a characteristic.
    Data slice based on exit class:
    You can create a custom class and put your code in that and inlcude this class in the data slice tab under exit class.
    Edited by: tilak marrapu on Jul 31, 2009 4:03 PM

Maybe you are looking for

  • Adobe ELEMENTS 9 deaktivieren, nicht löschen

    Ich habe 2 Macs und auf denen vorgenanntes Adobe aufgespielt und den Schlüssel eingeben. Rufe ich mein Laptop auf, auf das ich als zweites den Schlüssel eingegeben habe, dann erhalte ich den Hinweis, das ich iaf dem anderen  Computer die Software dea

  • Availability of the iPad Store for Colombia

    Hi, Recently i purchase an iPad in the US, but i live in Colombia. Right now i need to purchase the iwork suit for my iPad but as i understand it is not possible to do so because the iPad Store is not ye available for Colombia. I need to know when it

  • Dynamic destination for selectors

    Hi, I am wondering if it is possible to change dynamically the destination where a selector inserts the selected data? I use a List Box in which you can select a task (corresponding to a row in the Worksheet). Choosing one of the tasks inserts the co

  • After following the instructions, in the bookmark, still cannot find the history on my ipad

    Still could not locate the browsing history in the bookmark. Please help

  • Need validation that ensures only one item has a value.

    Hello, I need a validation that ensures that only one item has a value. I want to allow a person entering information into a form to have the option to either select from a drop-down or enter something into a text box but not both. I have found some