‎2010 Jun 28 12:32 PM
Hi,
In my module pool programming i wanna display a combo box where user can add or delete the values.
Based on the values i will display the output as tree structure corresponding to that.
is it possible that the event can be triggered as soon as user selects the values from the combo box or we have
a button like hin gto trigger the action/event .how i can acheive this scenario..
waiting for the reply.
Thanks in advance.
Thanks and regards,
Poornima.
‎2010 Jun 29 3:36 PM
Hi,
as I understand, you need to react to every value selection from the dropdown field?
Good luck!
Edited by: Drabkov Anton on Jun 29, 2010 4:43 PM
‎2010 Jun 29 6:13 PM
Hi,
I don't think you can add values in a combo box. So, you need other kind of input mechanism with which you can add values and the same can be populated in the combo box. And based on the values in the combo box, you can create the tree structure.
Have a look at the following link which says that you can't enter a value in the combo/ drop down list in ABAP Dynpro.
[Drop Down Box Element|http://help.sap.com/saphelp_bw/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/content.htm]
Every time you change a value in the combo box it will trigger a function code which you can capture in the PAI event. Once you have it you can then process it in the PBO event to create the tree structure. I guess here you are talking about ALV Tree Control.
So, you need to rebuild the tree in the custom container.
Hope this will help. Let me know if you need more inputs.
Thanks,
Samantak.