on 03-20-2013 8:21 AM
Hi ,
I have 10 buttons in a view lets say but1,....but10. and i have one more button lets say SUBMIT.
Suppose if i select few buttons, and press on SUBMIT , it should handle all events.
Kindly advice me
Best regards,
Narasimha.
Hi,
May I know the requirement. You can achieve this in the following way.
Create 10 attributes in the context of type wdy_boolean. say but1, but2 ...
in the onAction of button 1, set the attribute but1 to abap_true. do the same for remaining also.
Now in the onAction of Submit button
read the context attributes,
if but1 = abap_true
Call button 1 method handling.
do the same for remaining.
Hope this helps u.,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Narasimha,
How are you? Nice to see you on SDN.
You can add multiple checkboxes with events name and a button submit.
In event of "submit" button you can check which of the checkboxes are active and execute corresponding methods.
-Manish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.