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

Set Target Frame for Button with server side event

Hello,

does anyone know how to specify the target frame for htmlb:button or xhtmlb:toolbarButton with server event (onClick) ?

I would like to implement a BACK-button in a header frame changing the content of the main frame.

I guess there must be an easy solution, but I did not find anything in SDN or OSS.

Thanks for your help.

Best regards,

Juergen

Message was edited by: Jürgen Bey

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2005 at 12:49 PM

    Target frame for a button alone is not an option, you’ll have to declare the target frame while declaring the form which contain your back button, an in the event processing block for OnClick event you could navigate/redirect to the page you want to go to.

    When you specify the target frame, the navigation processing will impact the target frame and not the header frame/ the frame your button is in..

    FYI. You could possibly have multiple forms in the header each having it’s own target frame.

    *********Example************

    <htmlb:form id="form1" target = “frame2” >

    <htmlb:button id="btn_BACK" text="BACK" onClick = "GOBACK" onClick="btn_go"/>

    </htmlb:form>

    *********Event Handling*****

    IF event_id = cl_htmlb_manager=>event_id.

    DATA: htmlb_event TYPE REF TO cl_htmlb_event.

    htmlb_event = cl_htmlb_manager=>get_event( runtime->server->request ).

    id = htmlb_event->if_htmlb_data~event_id .

    CASE id.

    WHEN 'btn_text'.

    navigation->goto_page('<Page to go to>').

    ENDCASE.

    ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Perfect, that solves my problem.

      I was not aware of the fact that this must be done in the form tag and that I can use multiple form tags in a bsp.

      A lack of html knowhow, obviously.

      Thanks for your immediate response.

      Juergen

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2005 at 11:23 AM

    Did you check the sample BSP Application in transaction se80 "SBSPEXT_HTMLB" or "IT00" or "ITSM" or any of the others I seem to remember one dealing with the whole navigation issues.

    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.