I’ve been having a problem with getting an input from a user in a text box and then clearing the it with .text = “”. I get the input just fine but can not clear the box. This works when running the project normally but does not when running it through the mobile module.
I’ve tried this in the keyPressed and keyReleased events for the text box:
def clearInput(obj = event.source): obj.text = "" if event.keyCode == event.VK_ENTER or event.keyCode == 13 : event.source.parent.parent.getComponent('Table').setValue(event.source.parent.parent.StepIndex,"Scanned Value",event.source.text) event.source.parent.parent.StepIndex += 1 project.steelReceiving.stepControl(system.gui.getParentWindow(event)) system.util.invokeLater(clearInput)
I’ve also tried it without the invoke later part and just setting it to “”. No difference. Any ideas?