Validation system - Button pressed & Key pressed
AnsweredHi,
I try to setup a validation in trigger system. I want it to be triggered by either clicking "Add" button or pressing Ctrl+Enter keys (both will create a new invoice). My setup is showed below. However these setup will only trigger the SQL when I pressed Ctrl+Enter, clicking Add button will be ignored.
If I remove the CharPressed and Modifier, it works when clicking the button but not pressing the keys. How can I make them both work at the same time?

Thanks.
-
Official comment
I've moved this to the Q&A Session as it is not a B1UP Feature Request.
As for CharPressed it is only being evaluated if the event is the KeyDown Event... An item Pressed Event do not check CharPressed as such an event does not send keyboard events... So sounds like you need 2 validation (If this even is possible as SAP themself have CTRL + Enter, so might not work at all in the SDK)
-
Hi Rasmus,
Thanks for your comment. I just create 2 validation, one for clicking button, another for key press to solve the problem. Thanks
Please sign in to leave a comment.
Comments
2 comments