Skip to Content
avatar image
Former Member

BSP with the link using MVC

I need to call an another controller from a view using a htmlb:link

Here is my code for example:

<htmlb:link id = "<%= l_htable-id %>"

text = "<%= l_htable-data %>">

onClick = "click">

Here is my code in method DO_HANDLE_EVENT:

if htmlb_event is bound and htmlb_event->server_event = 'click'.

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

endif.

But it doesn't works! It seems that this event never be catched. I tryed to set a breakpoint in this method and it never called.

Could you please help me?

(Sorry for my possible bad English)

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 28, 2006 at 10:16 PM

    Do u have "dispatch_input( )." method called in DO_REQUEST method of your main controller. This methos is essentail to dispatch the user action ho handler method.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Yes, I already have this:

      DATA: list_view TYPE REF TO if_bsp_page.

      DATA: head TYPE zchar20.

      <b>dispatch_input( ).</b>

      head = me->headername.

      TRANSLATE head TO UPPER CASE.

  • avatar image
    Former Member
    Apr 29, 2006 at 04:58 AM

    You can try the following.

    I dont know about htmlb:link

    but there is another option u can try.

    u can BSP: Call

    and pass your controller name in URL attribute

    and comp_id.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I am not sure if you have done this already. But please try to look at this BSP application <b>itmvc2</b> from SE80.

      Hope this helps you,

      Shailaja