on 04-21-2006 5:21 PM
Hi,
I created a application class and asigned it to my bsp application. i want to populate the dropdown box in the bsp application from the application class. i had a public attribute in the application clas. so how should i asign this public internal table to my list box.
i tried with the following code.. but it dowsnot work.
<htmlb:dropdownListBox id = "REG" table = "//APPL_CLASS/REGLIST>" nameOfKeyColumn = "NAME" nameOfValueColumn = "VALUE" ></htmlb:dropdownListBox>
reglist is declared in the attributes of application class. but it gives error. If any one knows this.. please post a snippet of code.
Thanks
<htmlb:dropdownListBox id = "REG" table = "<%= application->REGLIST %>" nameOfKeyColumn = "NAME" nameOfValueColumn = "VALUE" ></htmlb:dropdownListBox>
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks This solved my problem..
Now i am using a ComboBox as a dropdownlist box. i wanted to do some processign when any thig is selected from the dropdown box.
But the CASE event->server_event is initial.
I am using the following code
IF event_id = cl_htmlb_manager=>event_id.
What kind of element triggered the event
event = cl_htmlb_manager=>get_event( runtime->server->request ).
IF event->name = 'comboBox'.
CASE event->server_event. -
(This has value as 0 so nothing is processed)
*
WHEN 'BUILDINGSELECTED'.
If Button or Drop Down box selected.
w_building ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'dropdownlistbox'
id = 'BUILDING' ).
sc_bname = w_building->selection.
DATA: event TYPE REF TO if_htmlb_data,
ddlb_event TYPE REF TO cl_htmlb_event_selection.
event = cl_htmlb_manager=>get_event( request ).
IF event IS NOT INITIAL .
IF event->event_id EQ 'BUILDING' .
ddlb_event ?= event.
IF NOT ddlb_event IS INITIAL .
IF ddlb_event->id EQ 'BUILDING' .
CLEAR sc_bname .
sc_bname = ddlb_event->selection .
endif.
endif.
endif.
endif.
Try the above code. also you can place and HTTP break point and dubg it to see what values are coming.
Regards
Raja
Reward points to helpful answers by choosing the appropriate radio buttons next to every answer, thats SDN way of saying thanks.
and in future post BSP related question in BSP forum at
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.