on 09-18-2006 9:24 AM
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>
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.