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

How to get a radioEvent in a BSP Element?

* Get Table Event
  data: table type ref to cl_htmlb_tableView.
  data: table_event TYPE REF TO cl_htmlb_event_tableview.

  table_event = table->data.
  tmp = table_event->selectedRowIndex.


* Get Radio Event
  data: rbgroup type ref to cl_htmlb_radioButtonGroup.    
  data: radio_event TYPE REF TO cl_htmlb_event_radioButton.

  radio_event = rbgroup->????????.

So how do you get the radioButtonGroup event for the button selected? I am attempting to do this inside of a BSP Element and therefore I can't use the normal

radioButtonGroup ?= CL_HTMLB_MANAGER=>GET_DATA(
                    request      = runtime->server->request
                    name         = 'radioButtonGroup'
                    id           = 'statGroup' ).

As I get an error where it tells me it does not know what "runtime" is.

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 29, 2004 at 02:35 PM

    Craig,

    I assume you are using BSP Extension. So there is an attributes called page_context which has get_runtime method. Maybe you can use that as your 'runtime'.

    Iwan

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 29, 2004 at 02:45 PM

    Craig,

    <i>So how do you get the radioButtonGroup event for the button selected?</i>

    Now it is time to stop coding a little, and do some reading again. As I know that you have not yet read all weblogs, let me select one that I would highly recommend:

    <b>BSP Trouble Shooting: Getting Help</b>

    /people/brian.mckellar/blog/2004/06/11/bsp-trouble-shooting-getting-help

    Specifically you are interesting in the following aspects from the above text:

    (1) How to double click on a tag, get the definition of the tag, and then to press that big button labeled documentation. In a worst case in German. To your defense, I must guide you by saying that you should do this also on the <htmlb:radioButton> (as well as on group). In my system there is about 2 pages of documentation on event handling alone.

    (2) In the above documentation, I would seriously recommend that you also read the section on example programs. One that should interest you is SBSPEXT_HTMLB. There is a page radioButtonGroup.BSP. And there is actually an example (albeit in layout) which shows how to get the answer either via get_data, or via get_event_ex.

    If you have some extra time, I would appreciate it if you will also read:

    <b>BSP Programming: Handling HTMLB Events</b>

    /people/brian.mckellar/blog/2004/07/28/bsp-programming-handling-htmlb-events

    It is very new, and probably you have not yet had time to read it. However, it will definitely be good as background information.

    To be fair: the <htmlb:tableView> has always been a funny animal, and that table->data call was an ugly hack.

    To your question: "...I am attempting to do this inside of a BSP element...", it is recommended that you take that m_page_context variable and torture it (just close door beforehand). Specifically a few very simple double clicks should already bring you to IF_BSP_PAGE_CONTEXT, and seconds later you should stumble over GET_RUNTIME.

    This forum is interesting when people work together. Challenging questions whereby everybody learns are that makes it fun. But there is also a very high expection (at a minimum from my side!) about what each person in this forum brings to the table. And one of them is a little active reading of available material. Do not destroy my fun factor.

    brian

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Brian McKellar

      :-D

      I'm grinning here, anyway to enable signatures on here? I'd add that right away!

      I'm requesting to go to TechEd - just gotta wait for approval.

      Craig

      "true light for all newbies"