on 2024 Feb 18 10:49 PM
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.
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.