One of our projects we are using touch screen PC and Ignition 8.1.13
Our client ask the feature request as per per below in the application.
We have text field in the perspective, we are suggest some value depending upon selection and fill it in the text field.
If operator want to not use that value and put his own. He need to delete that entire filled value/text before enter new value/text.
Is there any option, when operator click/touch on a particular text field the whole value/text displayed in the field will be selected and he can delete that using one backspace? Please advise.
While not exactly what you want, as long as your text field doesn’t have spaces in it double clicking will select everything.
Edit:
Actually it cant have punctuation or some other non alphanumeric characters.
I could not find a way to do exactly what you want, maybe one of the big brains on this forum knows how. An alternate idea that may work for you is to create a double or single click event script that deletes the text automatically.
self.props.text = ''
self.parent.focus()
The first line clears the text field, but it doesn’t update until focus is lost, which is what the second line does. I would have thought the deferUpdates property would take care of this, but doesn’t appear to, though that is probably me not understanding what it does (;