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

TableView Iterator problem -MVC

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>

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 18, 2006 at 11:12 AM

    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.
    
    

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 18, 2006 at 09:32 AM

    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:

    Tableview column as link

    grtz

    Koen

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2009 at 12:04 PM

    solved

    Add a comment
    10|10000 characters needed characters exceeded

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.