Issue number field

Hi,

I’ve this pop up

When the operator press the OK Button trigger a script:

angle = event.source.parent.parent.getComponent('angle_num').floatValue
barcode = event.source.parent.parent.getComponent('barcode_num').intValue

callsp = system.db.createSProcCall('procedure_name')
callsp.registerInParam("BARCODE", system.db.INTEGER, barcode)
callsp.registerInParam("ANGLE", system.db.FLOAT, angle)

system.db.execSProcCall(callsp)

event.source.parent.parent.getComponent('angle_num').floatValue = 0
event.source.parent.parent.getComponent('barcode_num').intValue = 0

The problem: If I use the mouse on my pc it’s work, instead when the operator use the Touchscreen it’s like the focus remain on the number field (the last I insert) .

The behavior of my number fields are:

Could you help me please? Thank in advice

When using the touchscreen, is pressing the button itself not working?

Is it really a button component or a label with a mouse action?

What specific event are you using?

  1. the button work but the last number field that I compiled remain focus.
  2. I use a button
  3. the event is ActionPerformed.

thanks

In the project properties, do you have Touch mode enabled?

Hi, yes I did it but it’s not that the problem. Thank you