cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance MDK control with longpress or double touch functionality

former_member183924
Active Participant

Hi MDK experts,

we want to enhance the MDK standard input control "Control.Type.FormCell.SimpleProperty", that a longpress or double click is recognized and we can execute our own logic.

I saw that for ObjectTable there is a longpress option available. https://help.sap.com/doc/f53c64b93e5140918d676b927a3cd65b/Cloud/en-US/docs-en/guides/features/fiori-...
So technically it should be possible, but my question is what are the steps and effort we have to take for that? Maybe it's easier to create a custom control?

Background: we want to focus on an app were barcode scanning is the most used option in 95% of the cases, either via the camera or an external (bluetooth) scanner. When using an external scanner the focus will always be placed to the next input control which needs to be receive a barcode. Or at least what we propose to the user what will be the next step in his work flow.
But users should also be able to manually set the focus to the next input control to scan via ext. scanner.

When user press into an input control the on-screen-keyboard comes up >> that's what we want to prevent.

There is a functionality to managing the keyboard while setting the focus, though: (https://help.sap.com/doc/69c2ce3e50454264acf9cafe6c6e442c/Latest/en-US/docs-en/reference/apidoc/interfaces/iformcellproxy.html#setfocus)

- This doesn't help in the case user manually sets the focus.

The longpress or double-click action should work as an exception case (camera or ext. scanner is broken) and provide accessibility.

-Steffen

Accepted Solutions (1)

Accepted Solutions (1)

former_member183924
Active Participant
0 Kudos

For now it seems the workaround, when the user taps into the input control after the keyboard is hidden, seems to work for all operating systems.

Answers (0)