Skip to Content
0
Former Member
Jun 03, 2005 at 07:45 AM

calling BSP on click button event

625 Views

Hello,

I have the following button defined in a view:

<htmlb:gridLayoutCell id    = "Basic_Functions_1-1-1"
                columnIndex = "1"
                rowIndex    = "1" >

<bsp:call url="upwb.do">
  <bsp:parameter name="view_name" value="Button.view" />
  <bsp:parameter name="view_component_id" value="SaveButton5" />
</bsp:call>

</htmlb:gridLayoutCell>

And in <b>Button.view</b> to build this button:

<htmlb:button id       ="<%= r_button->get_id( ) %>"
                  text     ="<%= label %>"
                  tooltip  ="<%= title %>"
                  onClick  ="<%= onclick %>"
                  onClientClick = "<%= onclientclick %>"

Finally, in the view I call another BSP:

CALL METHOD
    cl_bsp_runtime=>construct_bsp_url
EXPORTING
    IN_APPLICATION = 'BSP2'
    IN_PAGE = 'index.htm'
    IN_PARAMETERS = params
IMPORTING
    OUT_LOCAL_URL = url.

How can I make this call to <b>BSP2</b> <i>ONLY</i> when the button (defined above) is pressed??

Thanks,

Timothy