cancel
Showing results for 
Search instead for 
Did you mean: 

TableView Iterator /save data

Former Member
0 Kudos

Hello Everybody,

I use a HTMLB TableView Iterator like the Blogs /people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator

but with MVC-Logic, it's work perfect.

The Problem is: if I change a data from a Cell don't will be save it.

Please how can I do it?

Thanks in advance.

Regards

Adid

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Tank's Guillaume.

I have to implement the Code into the Method DO_HANDLE_DATA()???

guillaume-hrc
Active Contributor
0 Kudos

Hi Adid,

This is your part to implement.

You have to retrieve the data (there is a class CL_HTMLB_MANAGER that does it magnifically) and modify your internal table consequently.

If you want to update the DB, you have to perform the necessary steps too.

Here is an example :

  data: table_event type ref to cl_htmlb_event_tableview,
        table       type ref to cl_htmlb_tableview.

  table ?= cl_htmlb_manager=>get_data( request = runtime->server->request
                                       name    = 'tableView'
                                       id      = tableview_id ).


  table_event ?= table->data.

  value = table_event->get_cell_value( row_index    = row_index
                                       column_index = column_index ).

Best regards,

Guillaume