cancel
Showing results for 
Search instead for 
Did you mean: 

Application Class in BSP

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

<htmlb:dropdownListBox id = "REG" table = "<%= application->REGLIST %>" nameOfKeyColumn = "NAME" nameOfValueColumn = "VALUE" ></htmlb:dropdownListBox>

Regards

Raja

Former Member
0 Kudos

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.

Former Member
0 Kudos

thanks raja.. this solvem my problem.. do have any idea on the below query

thanks

Dinesh

athavanraja
Active Contributor
0 Kudos

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

Former Member
0 Kudos

I tried it but it dod not worked.. i reinstalled the fromtend.. now it works..

thanks for your comments

athavanraja
Active Contributor
0 Kudos

glad it works.

Reward points to helpful answers by choosing appropriate radiobuttons in the answers.

Regards

Raja