Skip to Content
author's profile photo Former Member
Former Member

Table view Event handling

Hi Experts,

Im using MVC. I get the data's from MBEW and displays in to one Table view. My table view displays the data's like,

-


MATNO DESCRIPTION QUANTITY PRICE

M-10 PENCIL 1 10.00

-


The Quantity field is in Edit mode. Now user change the Quantity from 1 to 5. So,

-


MATNO DESCRIPTION QUANTITY PRICE

M-10 PENCIL 5 10.00

-


I want to catch these changed Table view data's in to my Internal Table. Please

Any body give me the idea.

Thanks,

Points Assured.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Nov 23, 2007 at 10:09 AM

    Hello Jasmin,

    when you use MVC it's easy to use data-binding (model-Bindung). When you already use a model you just need to keep your internal Table as attribute in your model. Now just modify the table-parameter of your htmlb:tableView tag within your View to something like this:

    table           = "//model/mytable"

    the //-syntax indicates the data-binding.

    ....so with the following server event after a field is changed the value is also updated in your model.

    hope this helps...

    stefan.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      use this HTMLB Tag

      <htmlb:tableView id              = "ID"
                       table           = "//model/gt_vac"
                       filter          = "SERVER"
                       keyColumn       = "MATNR"
                       sort            = "SERVER"
                       selectionMode   = "SINGLESELECT"
                       visibleRowCount = "20"/>

      Hope this helps.

      donot forget to include extension names on top of the view.

      <%@page language="abap" %>
      <%@extension name="htmlb" prefix="htmlb" %>
      <%@extension name="phtmlb" prefix="phtmlb" %>

      Amandeep

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.