cancel
Showing results for 
Search instead for 
Did you mean: 

TableView Iterator problem -MVC

venkat_o
Active Contributor
0 Kudos

Hi Friends,

I am using TableView to show one report called Withdraw / View leave Status .There is one field called Status.When I click on the status field for the record another page has to be displayed with the details of that record.

I am able to catch the row index of the record which i clicked .without selecting Checkbox for the recotd. But i want to send this row index to another page. and the table which i used for tableview .

I am trying to do at <b>DO_HANDLE_EVENT</b>.

DATA :

event_id TYPE string,

tv TYPE REF TO cl_htmlb_tableview,

table_event TYPE REF TO cl_htmlb_event_tableview,

view TYPE REF TO if_bsp_page.

tv ?= cl_htmlb_manager=>get_data( request = request

name = 'tableView'

id = 'tv1' ).

IF tv IS NOT INITIAL.

table_event = tv->data.

ENDIF.

row_index = table_event->row_index.

event_id = event.

IF htmlb_event IS NOT INITIAL.

event_id = htmlb_event->server_event.

ENDIF.

CASE event_id.

WHEN 'status_clicked'.

view->set_attribute( name = 'row_index'

value = row_index ).

navigation->goto_page( 'withdraw_page.do' ).

ENDCASE.

Could you guys please help me how to pass tables and Variable from one Controller to another .

<b>Thanks,

Venkat.O</b>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Well,

I guess using the navigation object, you cannot build up a new controller tree.

Try something like this within your view, instead of using the navigation object:


<bsp:call comp_id = "withdraw"
          url     = "withdraw_page.do" />

With this you should be able to build up a controller tree.

If you integrate in your calling controller an interface like ZIF_EXCHANGE_INTERFACE, you can access attributes from your parent controller like this:


 DATA  lo_params TYPE REF TO zif_exchange_inteface,
       l_param   TYPE        string.

    TRY.

        lo_params ?= m_parent.

        CALL METHOD lo_params->get_params
          IMPORTING
               p_param = l_param.
      CATCH cx_root INTO lo_ex.
    ENDTRY.

Answers (2)

Answers (2)

venkat_o
Active Contributor
0 Kudos

solved

Former Member
0 Kudos

Hi,

you should implement in your method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START

a replacement bee for that column.

method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.

Raja made an example in:

grtz

Koen

venkat_o
Active Contributor
0 Kudos

Hi Keon,

Thanks for ur reply .

I can pass only one variable value with link.Is there anyway to pass table values also from one controller to another because because i want to display last last clicked row values on the next page.

Is there any way to pass tables ?

<b>Thanks,

Venkat.O</b>

Former Member
0 Kudos

Hi,

this will help you

<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/31b97b35a111d5992100508b6b8b11/frameset.htm">Server Side Cookies</a>

grtz

Koen