Node info of a table cell

Dear All,
I am creating a web dynpro view for sales order, I have to apply a front end check using message pool.
How to apply any validation on a table cell? I tried it on my side I am getting the message for the validation for each row but the corresponding filed is not being focused after message, but the same thing I am applying on header data then corresponding field is been focused if validation goes true.
How to send the correct cell node info to the message manager, if any one has done it then please solve this issue.
Thanks in Advance..

If you are comfortable in ALV (in WD) then you can use that option, here you have different events and method to read the selected cell.
You want row or cell.
why you need that in WDDOMODIFYVIEW. Are you familiar with leadselection or not..?

Similar Messages

  • Table cell shifting issue

    Getting a wierd within-cell selection indicator shift effect when using tables in LV 2013(32) on Win 7 (64).   Hestitate to call it a "scroll" 'cause that has other meanings in the table context.
    Click on the letters in the attached VI to see it -- same effects if the table is in a running VI or not.
              + clicking on "A" does nothing.  Deleting "A" causes the cell to shift.
              + clicking on any of the cells below "A" act like the above
              + clicking on header cell "x" causes a big sideways shift.  Putting other values in the cell has other effects (some shift a lot, some not at all)
              + clicking on table cell "y" causes a big sideways shift.  Putting other values in the cell has other effects (some shift a lot, some not at all)
              + clicking on table cell "z" does not shift.  Deleting "z" causes a big sideways shift
              + I noticed the shift that happens when you delete "A" stops at the same horizontal location as if you 
    Observations:
              + Appears to be tied to cell's justify=center. 
              + Shifting is always is right-to-left.
              + I noticed the shift that happens when you delete "A" stops at the same horizontal location as if you click on "y"
              + occurs on at least two different machines from different mfg's.  Both running 2013-32 on Win7-64.
    Solved!
    Go to Solution.
    Attachments:
    table_issue.vi ‏8 KB

    That's it!  Thanks for tying up a loose end on an old thread.
    With this information I was able to recreate this in LV2014-32 on Win7-64 so it's still a bug. 
    The key is the table has to span quadrant 3&4 of the front panel. 
    Drop a table control with (left,top)=(-108,185) for instance and (width,height)=(250,169).  Select the entire table and set justification=center.  The first column whose center is to the right of the front panel's "y axis" will have centering issues.  Move the table off the y axis and the issue goes away.  Move it back and issue comes back.
    Having left or right justified prevents the issue but this is a Band-aid, not a fix, and was not applicable in my case as my UI needed centered text or it would look funny.  I was using the table to display info and allowing the user to click on a cell to select it, at which point I would change the color via property node.  My workaround was to change control focus immediately after the mouse click to minimize the time the drifting cell was noticeable. 

  • Invoice: How to use more than one Internal Table's info in one Table

    Hi ,
    I am doing an invoice, and have the info from internal table wa_itgen showing - Matnr, material description and quantity.
    I want to also invlude the info Unit Price and Total price on the table line, but can't seem to do it.
    I know that someone I must fill an internal table as I did on the Table itself : is_bil_invoice-it_gen INTO wa_ITGEN.
                     ( TYPE IBBIL_INVOICE).
    So now I need to insert:
    IS_BIL_INVOICE-IT_PRICE    INTO      WA_ITPRICE.
    Do I insert Program Lines, or do it via a LOOP.  Obviously it needs to go under the same Table's cells to incluce it.
    I tried a LOOP, Program lines under the CELL of the table where I want it displayed, and even a Second table.
    If I have the first table's info, the page displays under VF03, but as soon as I try to insert the 2nd Table's info, under VF03 the screen just not show anymore.
    Please help - I've started looking at local maps for bridges... yes, to jump from...

    Hi try this,
    in the program lines fetch unit price and total price based on ur invoice number(as u are already in main loop which fetches invoice no material no etc).
    now loop that internal table with condition inv no = current invoice no and item no = item number
    and display those values on a new text field accordingly.
    sample code...
    select vbeln
           posnr
           j_3asize
           FKIMG
           KZWI1
           from vbrp
           into table itab
           where vbeln = GS_IT_GEN-BIL_NUMBER.
    loop at itab into wa where vbeln = GS_IT_GEN-BIL_NUMBER and
                               posnr = GS_IT_GEN-ITM_NUMBER .
    move : wa-j_3asize to v_grid,
           WA-FKIMG TO V_QTY,
           wa-KZWI1 to v_val.
           v_up = v_val / v_qty.
    endloop.---->like this

  • How to print global variable in smart form table cell

    hi,
    i have smartform and i insert table in it, i also have set global variable, i want to show variable in table cell.
    regards
    shahid rais

    Hi Shahid Rais 
    You can use this global variable that has been declared in anywhere as you like.
    For displaying global variable in table lines, You can first set the column and row of the table by using the table tab in table node . Then, u can decide either the variable u want to used will be placed on header, main, or footer. After that, right click on one of the table part, and choose create table line. After choosing the correct line type as already been declared in the table painter, just simply right click on the table cell, and then create text node.
    You can now enter your variable by using "insert field".
    And don't forget the & & signs before and after your variable name.
    Regards,
    William Prawira

  • Placing text beside image in a table cell?

    I'm creating business cards (using a Printworks template), and I want to place text to the right of the inserted picture.
    I've copied and pasted the jpg fine onto the left side of the cell, yet when I try to type text, the cursor only lets me begin typing at the bottom right side of the photo, not up at the top right side, where I want the info to start.
    Further, when I try to insert a Text Box into the cell, it won't go inside.
    So, my question: *How do I get image and text together inside a table cell?*

    I made an ultimate test.
    I grouped a jpeg picture and a shape in which I inserted a piece of text. You may see it on the screenshot.
    I inserting the group in the cell hoping that the group will be correctly displayed.
    Nada, only the picture appears.
    If I select the object embedded in the cell, copy it, paste it in an other location, I may ungroup it but the now separated shape no longer contains the original text
    Yvan KOENIG (VALLAURIS, France) lundi 7 juin 2010 17:55:18

  • Small issue with custom table cell editor and unwanted table row selection

    I'm using a custom table cell editor to display a JTree. Thing i notice is that when i select a value in the tree pop-up, the pop-up closes (as it should) but then every table row, from the editing row to the row behind the pop-up when i selected the value becomes highlighted. I'm thinking this is a focus issue, but it thought i took care of that. To clairfy, look at this: Before . Notice how the "Straightening" tree item is roughly above the "Stock Thickness" table row? When i select Straightening, this is what happens to my table: After .
    My TreeComboBox component:
    public class TreeComboBox extends JPanel implements MouseListener {
        private JTextField itemField;
        private TreeModel treeModel;
        private ArrayList<ActionListener> actionListeners = new ArrayList<ActionListener>();
        private Object selectedItem;
         * Creates a new <code>TreeComboBox</code> instance.
         * @param treeModel the tree model to be used in the drop-down selector.
        public TreeComboBox(TreeModel treeModel) {
            this(treeModel, null);
         * Creates a new <code>TreeComboBox</code> instance.
         * @param treeModel the tree model to be used in the drop-down selector.
         * @param selectedItem tree will expand and highlight this item.
        public TreeComboBox(TreeModel treeModel, Object selectedItem) {
            this.treeModel = treeModel;
            this.selectedItem = selectedItem;
            initComponents();
         * Returns the current drop-down tree model.
         * @return the current <code>TreeModel</code> instance.
        public TreeModel getTreeModel() {
            return treeModel;
         * Sets the tree model.
         * @param treeModel a <code>TreeModel</code> instance.
        public void setTreeModel(TreeModel treeModel) {
            this.treeModel = treeModel;
         * Returns the selected item from the drop-down selector.
         * @return the selected tree object.
        public Object getSelectedItem() {
            return selectedItem;
         * Sets the selected item in the drop-down selector.
         * @param selectedItem tree will expand and highlight this item.
        public void setSelectedItem(Object selectedItem) {
            this.selectedItem = selectedItem;
            String text = selectedItem != null ? selectedItem.toString() : "";
            itemField.setText(text);
            setToolTipText(text);
         * Overridden to enable/disable all child components.
         * @param enabled flat to enable or disable this component.
        public void setEnabled(boolean enabled) {
            itemField.setEnabled(enabled);
            super.setEnabled(enabled);
        public void addActionListener(ActionListener listener) {
            actionListeners.add(listener);
        public void removeActionListener(ActionListener listener) {
            actionListeners.remove(listener);
        // MouseListener implementation
        public void mouseClicked(MouseEvent e) {
        public void mouseEntered(MouseEvent e) {
        public void mouseExited(MouseEvent e) {
        public void mousePressed(MouseEvent e) {
        public void mouseReleased(MouseEvent e) {
            showPopup();
        private void initComponents() {
            setLayout(new GridBagLayout());
            itemField = new JTextField();
            itemField.setEditable(false);
            itemField.setText(selectedItem != null ? selectedItem.toString() : "");
            itemField.addMouseListener(this);
            add(itemField, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0,
                    GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
        private void showPopup() {
            final TreePopup popup = new TreePopup();
            final TreeComboBox tcb = this;
            final int x = itemField.getX();
            final int y = itemField.getY() + itemField.getHeight();
            int width = itemField.getWidth() + popupButton.getWidth();
            Dimension prefSize = popup.getPreferredSize();
            prefSize.width = width;
            popup.setPreferredSize(prefSize);
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    popup.show(tcb, x, y);
                    popup.requestFocusInWindow();
        private void fireActionPerformed() {
            ActionEvent e = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "TreeComboBoxSelection");
            for (ActionListener listener : actionListeners) {
                listener.actionPerformed(e);
        private class TreePopup extends JPopupMenu {
            private JTree tree;
            private JScrollPane scrollPane;
            public TreePopup() {
                initComponents();
                initData();
            private void initData() {
                if (treeModel != null) {
                    tree.setModel(treeModel);
            private void initComponents() {
                setFocusable(true);
                setFocusCycleRoot(true);
                tree = new JTree();
                tree.setRootVisible(false);
                tree.setShowsRootHandles(true);
                tree.setFocusable(true);
                tree.setFocusCycleRoot(true);
                tree.addTreeSelectionListener(new TreeSelectionListener() {
                    public void valueChanged(TreeSelectionEvent e) {
                        tree_valueChanged(e);
                scrollPane = new JScrollPane(tree);
                add(scrollPane);
            private void tree_valueChanged(TreeSelectionEvent e) {
                DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
                setSelectedItem(node.getUserObject());
                fireActionPerformed();
                this.setVisible(false);
    }My TreeComboBoxTableCellEditor:
    public class TreeComboBoxTableCellEditor extends AbstractCellEditor implements TableCellEditor, ActionListener {
        protected TreeComboBox treeComboBox;
        protected ArrayList<CellEditorListener> cellEditorListeners = new ArrayList<CellEditorListener>();
        public TreeComboBoxTableCellEditor(TreeComboBox treeComboBox) {
            this.treeComboBox = treeComboBox;
            treeComboBox.addActionListener(this);
        public Object getCellEditorValue() {
            return treeComboBox.getSelectedItem();
        public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
            treeComboBox.setSelectedItem(value);
            return treeComboBox;
        public void actionPerformed(ActionEvent e) {
            stopCellEditing();
    }Any thoughts?
    Edited by: MiseryMachine on Apr 3, 2008 1:21 PM
    Edited by: MiseryMachine on Apr 3, 2008 1:27 PM

    As I said, you have to have empty context elements before additional rows will be open for input.
    For instance if you want to start with 5 rows available for input do the following to your internal table that you will bind:
    data itab type standard table of sflight.
    do 5 times.
      append initial line to itab.
    enddo.
    context_node->bind_table( itab ).
    The other option if you need n number of rows is to add a button to the table toolbar for adding more rows. When this button is pressed, you add a new context element to the node - thereby creating a new empty row in the table.

  • Table cell scroll bar overflow- why doesnt it work?

    Hi everyone.
    Ok, im have an existing document/site:
    http://www.helenbwilson.com/helen-portfolio-1.html
    I want the table cell in the left to have a scroll bar (only
    with the height part). I want the "block" of the images to have a
    height of 400px. Now, I have tried to do this, and for the most
    part got it to work-in another document:
    http://www.helenbwilson.com/CSS-test-01.html
    I am trying to replicate, but I have absolutely no idea why
    its not working now.
    I applied a css style and I want the same type of scroll, so
    when there are more images, it can have a scroll bar.
    Can anyone tell me what Im doing wrong? If I am not being
    clear, please let me know.
    Any info would be appreciated.
    Thanks
    -psy

    I think you mean something like this:
    Put this in your head:
    <style type="text/css">
    <!--
    .imageBlock {
    display: block;
    float: left;
    height: 400px;
    width: 250px;
    overflow: auto;
    background-color: #FF0000;
    -->
    </style>
    put this in your body:
    <div class="imageBlock">
    </div>
    If the table or other content you place inside your
    'imageBlock' div, is higher than 400 px, you'll get a vertical
    scrollbar.

  • Text Field over Text in Table Cell

    When I drag a new text field to a table cell that contains text the field automatically fills the cell and overwrites the text.  Can I put a field over the text in a specific position and how do I do it?  (See Screen shot)

    Thank you for the idea bruce.  I did try that and tried it again just now.  I've attached a screenshot of the result.  It fills the cell and gives me a blue outline with no resizing nodes.  I must be missing something on how to resize the subform.  Any more ideas?

  • Problem in table cell editor

    Hai,
    I inserted as a dropdownkey in table, Parent node ABc is bind to table , the child node DEf bind to coloumn dropdownbyindex. i set child node singleton as false, but its giving null pointer exception.
    IXXXView.IABCNode iu=wdContext.nodeABC();
    IXXXView.IDEFElement c=iu.nodeDEF().createDEFElement();
    How to Solve this.
    Hope  Anil and Piyush will help me they already know about this problem.
    regards,

    Hai Bharadwaj,
          happy to see you again, I think I am in wrong with creating table cell editor.
    i will say my requirement please help me to do:
    in the table the first coloumn is number, second one is name, third one is *** ,this coloumn contains two standard Strings male and female, the can select from dropdown index.
    what i did is I created context node parent ABC
    in that attributes name , age and another node DEF having attribute S.
    I created a table and bind the node ABC(its not allow me to check DEF node).
    i deleted table cell editor of column *** and created new editor dropdownindex. and binded texts is node DEF
    DEF is set to singleton false.
    Give me the suggetion.
    regrds,

  • Creating 2 separate buttons instead of table cell

    Hi,
    I wonder how can I create a custom table cell like in contacts applications where instead of one cell you see 2 separate buttons on the same row? In my case I need to create 2 buttons instead of single row in the state of editing.
    Thanks for help,
    Nava

    Get to the end of the info of some contact. You will see in the end 2 separate buttons on the cell row:
    Text Message and Add To Favorites. Or you can see it on the top of the contact info when you press edit, you will see, that the icon on the top become to be a button, which when pressed brings you to an image picker and alongside lays a what seems to be a cell, which when pressed brings you to a screen, where you can edit the contact name... I can't figure out how do they do that. No sample gives a clue...

  • Populating drop down list in a table cell-urgent

    Hi all
    I have a problem. I want to populate a dropdown list in a table cell. can anybody tell me the step by step procedure for that.
    I am doing it generally. not using R/3
    I am creating sub node like u have mentioned. I haven't done it using wizard.
    Is there any difference in the way we populate this list?
    My root node is expense. Inside that some value attributes are there. For the drop down list i've created a sub node 'extype'.
    I am getting error.
    it is:
    com.sap.tc.webdynpro.progmodel.context.ContextException: Node(EREmpHomeView.expense.extype): cannot bind or add elements because the node has no valid parent
    Following is the code i've written.
    IPrivateEREmpHomeView.IExtypeElement el;
              IPrivateEREmpHomeView.IExtypeNode nd=wdContext.nodeExpense().nodeExtype();
              el=wdContext.nodeExpense().nodeExtype().createExtypeElement();
              el.setEtype("Travel");
              nd.addElement(el);
    Sill i'm getting the same error
    Hi Nidhideep
    Error has gone with the code that Mr Anil has given. But there is no value in the List. Dropdown list is coming as a blank list.
    Thanks and Regards
    Aparnna
    Message was edited by:
            aparnna prasad

    hi
    Aparna try this code:
    1. Context description at design time:
    Value-Node "myNode", collection type=list, cardinality=0..n, selection=0..n
    and the attribute:
    Value attributes “myValue”, type="String".
    2. The corresponding Java source code example that you create in the wdDoInit method of the controller implementation:
    // The ISimpleTypeModifiable interface enables access to
    //a data type instance that can be modified at runtime:
    ISimpleTypeModifiable myType =
       wdThis.wdGetAPI().getContext.getModifiableTypeOf(“.myNode.myValue”);
    //Sets the label text for this data type.
    myType.setFieldLabel(“New label”)
    //Sets the valid values of this data type. The individual elements are inserted
    //when the put method is called and
    //and the value set is filled with the appropriate
    //key value pair.
    IModifiableSimpleValueSet values =
       getSVService().myType.getModifiableValueSet();
    values.put(“key_1”,”Mister”);
    values.put(“key_2”,”Mistress”);
    values.put(“key_3”,”Miss”);
    Regards
    Nidhideep

  • Displaying of image in table cells

    Hi,
    I have a requirement where i need to display an image in table cell editor. Can anyone please tell how to do this.
    Thank You,
    Madhavi

    Hi
    The link is related to the same code as well..
    First copy all your images into "project/src/mimes/components/<packagename>"
    1) First create a new column for image and insert Child "Image" UI Element
    2) Create a Context in a view in which you are using Image UI Element
    3) Value Node
    Name : Image
    Cardidality : 1..1
    4) create 2 Value Attributes
    4)a ImageAlt (Calculate property - true)
    4)b ImageSrc (Calculate property - true)
    5)Bind the properties of Image
    alt - Image.ImageAlt
    source - Image.ImageSrc
    6) in getImageSrc()
    //according to your condition use your image
    retrun "XX.gif"
    7) in getImageAlt()
    return "Image Not Available"
    Case 2 :
    1) Add a new String attribute to your existing context
    2) Right click on your table in RootUIElememntContainer
    3) Edit Sturcture Binding
    4) Select the context which you modified , Select next
    5) in the next step for the newly created attribute select imageUIElement as type
    If you want to use that in wdDoinit()
    bind the two string value attributes to alt and source properties of ImageUIElement and write the following code
    in doinit
    wdContext.currentContextElement.set<src>("img1.gif") ;
    wdContext.currentContextElement.set<alt>("Image not found") ;
    Best Regards
    Chaitanya.A

  • Setting Visibility to Table cell editor

    Hi
    I created a table and added a colomn to the table in view layout. Cell editor of that colomn contains an image. Based on some conditions , I need to make image invisible in table cell editor of custom colomn.
    How can I do it.

    Example:
    Context:
    Rows (model node)
    -- Name (attribute, string)
    -- Additional (value node, card=1:1, selection=1:1, singleton=false)
    ---- EditorVisibility (attribute, type=Visibility)
    Data binding:
    LinkToAction.visible -> Rows.Additional.EditorVisibility
    Make editor in row at index 4 visible if name is not empty:
    IRowsElement row = wdContext.nodeRows().getRowsElementAt(4);
    row.currentAdditionalElement().setEditorVisibility(row.getName() != null && row.getName().length() > 0
      ? WDVisibility.VISIBLE
      : WDVisibility.NONE);
    Ok?
    Armin

  • 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

  • Insert shape over image in table cell

    Want to use circles, ovals, lines with arrows to point to some part (text or image) of a cell in a table.
    Need to emphasize certain areas of graphics in a document used as a step by step type document.
    If I add the shape outside the table and then try to drag/drop on to the image in the cell, the entire cell jumps to a new empty cell.
    Can nod get image to appear over the image in the table cell.

    Hello,
    do you think about this, please have a look here: http://help.adobe.com/en_US/dreamweaver/cs/using/WSc78c5058ca073340dcda9110b1f693f21-7b86a .html.
    Another way, to add text over an image uses Nancy O.'s Demo here (I would prefer by using PS or similar):
    http://alt-web.com/DEMOS/CSS-Sold-Out-Text-over-image.shtml
    Hans-Günter

Maybe you are looking for

  • ITunes missing from Media Browser -- "open itunes to populate list"

    I am on a MacBook Pro 10.7.3 running GarageBand '11 6.0.4 and all of the sudden no tracks will display under Audio in the Media Browser (Photos and Movies still appear). No tracks from either iTunes or GB show up. This is confusing as I have been usi

  • Mac Mini Incompatible With Philips 30PW9100D/37

    I picked up this TV from Target a few months ago at the very affordable price of $699. At that price this is probably the least expensive way to get started with HDTV. The default resolution is 1280 x 720 which looks pretty good using the built in ov

  • Error in Purchasing tab of Material Master (MM02)

    When we select views, Basic Data 1, 2 & Purchasing in MM02, it is giving an error "Maintenance status of field MARA-LABOR does not correspond to status of screen E Message no. M3826 " One point, which we want to highlight, that this error is coming o

  • Want to delete adverts that came with updated Firefox

    When I go onto Jacquie Lawson web page adeverts appear at the top of the page and it has happed on another site too. How can I stop this happening as they are a distraction. If the mouse hovers near the advert it then fills the page. Many thanks Jane

  • Getting the required property of an item in a bean

    Hello all, is it possible to get the required property of e.g. a VTextField inside a PJC? I am trying to write a bean that iterates through all the components of a form a puts a red border on all fields marked as required in Forms. I cannot find an a