Let's follow up this discussion at the Neptune Community
(this forum will be kept in read-only mode)
i have 3 input fields and the scanBarcode function for Android device as button. the scan function works fine, i get the scan results. but how do i get the information which field has the active cursor to pass the scanned value ?
thx for any ideas
ok found it by myself:
var oCore = sap.ui.getCore(); var id = oCore.getCurrentFocusedControlId();
but now next question appears : How can i set a Value to my id.
Please try : "sap.ui.getCore.byId(id).setValue(<my_value>);"