on 02-22-2006 8:56 AM
Hello Forum!
I have two dropdownlistbox in my page. Well, When i select a item in the first one i need to go to the onInputProcessing event to load a table or fill with the selection of the first one..to load a table in the second one..
I know more or less how to do it but it appears some errors when i select an item on the first one..
This is the code:
<htmlb:gridLayoutCell columnIndex = "2"
rowIndex = "1"
verticalAlignment = "middle"
horizontalAlignment = "left" >
<htmlb:dropdownListBox id = "agent"
nameOfKeyColumn = "KEY"
nameOfValueColumn = "VALUE"
selection = "<%= agent_1 %>"
onClientSelect = "oninputprocessing()" >
And on the onInputProcessing event:
IF event_id = cl_htmlb_manager=>event_id.
DATA: event TYPE REF TO cl_htmlb_event,
drop_event TYPE REF TO CL_HTMLB_EVENT_SELECTION.
event ?= cl_htmlb_manager=>get_event( runtime->server->request ).
IF event->name = 'dropdownListBox ' AND event->event_type = 'clientselect'.
button_event ?= event.
CASE drop_event->id.
WHEN 'agent'.
.
.
.
* Here i fill a table with the attribute page <b><i>agent_1</i></b>
.
.
Maybe it would be easy with javascript.. but is this correct¿?
Thanks in advanced!
Mon
i have posted a weblog for exactly the same scenario.
check it out
<a href="/people/durairaj.athavanraja/blog/2004/12/20/bsphow-to-chained-dropdownlistbox">BSP/How-To: Chained dropdownListBox</a>
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mon
What i will suggest is...instead of using <<b>OnClientSelect</b> use <b>OnSelect</b>
Becoz <b>onclientselect</b> will not fire any server event..
Other than this everything seems to be right....
Hope it solve your problem...otherwise do revert back..
Cheers:)
Mithlesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.