Skip to Content
0
Former Member
Oct 23, 2006 at 12:34 PM

TableView

82 Views

Hello expert,

I try to select data with a method <b>getdata()</b> in my <u>model</u> and then the the <u>result into my tableView</u>.

the Problem how cann bind my model with my tableView.

<b>The Model- method is:</b>

  METHOD getdata .

  lfld_tabname = 'SFLIGHT'.

  FIELD-SYMBOLS:
  <fstable> TYPE ANY TABLE.

  CREATE DATA itab_table TYPE STANDARD TABLE OF (lfld_tabname).
  ASSIGN itab_table->* TO <fstable>.

  SELECT * FROM (lfld_tabname)
     INTO TABLE <fstable>.

ENDMETHOD.

<b>The Layout is like this:</b>

<htmlb:tableView id                  = "id"
                 design              = "ALTERNATING"

                 headerText          = "Header Text"
                 onNavigate          = "onMyNavigate"
                 onRowSelection      = "onMyRowSelection"


fillUpEmptyRows      = "true"
                             footerVisible        = "false"
                             filter               = "NONE"
                             onClientRowSelection = "X"


                 visibleRowCount      = "10"
                 selectionMode        = "lineEdit"

                 table               = "<%=       %>"
               
/>

Thanks in Advance.

Regards.

adid