cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to find out which button is clicked in the rule onPress event SAP MDK Button table control

learner1
Explorer
0 Likes
791

Hi experts,

Is there a way to find out which button is pressed in the rule where all the buttons have the same rule assigned in onPress event of the button. Buttons will be added to the button table control dynamically so can't have different rule for the buttons. 

Accepted Solutions (0)

Answers (2)

Answers (2)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Likes

With MDK 24.7.2 the Button Table buttons will now get a ButtonTableButtonProxy type.  You can now call clientAPI.getName() to get the name of the button that was pressed from the table.

Jitendra_Kansal78
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

For Buttons inside ButtonTable Section, the rule in the OnPress of each button will probably get the SectionProxy which is the entire ButtonTable Section (which can contains multiple buttons). So you can only get the Section's Name. It'll work if they only have 1 button per Button Table Section, otherwise there's no easy way. 

We can of course look into enhancing this behavior. Please open a feature request for your requirement here.