cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle multiple events in a view?

former_member210804
Active Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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

former_member210804
Active Participant
0 Kudos

Hi Manish,

I'm fine..thank you for your reply. I have solved my issue .

Is there any method to hold all triggered event list in a view?

Best regards,

Narasimha.

Former Member
0 Kudos

Hi,

No you have to handle them one by one yourself only. Because events are generated at runtime in a sequence.

-Manish