Hi experts,
I'm modifying a BSP application and I have the following problem:
I want to update some database tables accordingly to the user input from a dropdown.
This is done several times and each dropdown has its own specific name generated by a loop.
The actual code is catching the user input OnInputProcessing after clicking a submit button on the Page by navigation->set_parameter( name = 'Activity1' ). , being Activity1, Activity2 …. the names of the select dropdowns, which are also defined on Page Attributes. Then also OnInputProcessing the table is being updated by the corresponding field.
The set_parameter and updating is being done once for each dropdown, which is a LOT of hardcode.
I was thinking of using the onchange attribute of the html select to trigger a javascript function which appends the user selection to an internal table, and then reading this internal table OnInputProcessing to make the updates.
Any idea on how to append the user selection of the dropdown to a row of the internal table?
I'm not even capable of saving one single user-selection into an abap variable, which I have read is also a bit complicated.
Thanks in advance,
Francisco
loop at tableA into WorkAreaB.
ld_tabix = sy-tabix.
<select name="<%=ld_tabix %>" class="drop_down" onchange="getComboA()">
<option>1
<option>2
</select>