Didn't know this could be done but after 5 minutes of brainwashes I came upt with this:
1. add a field to your form and set the dataprovider to none
2. name your field (example = 'fieldname')
3. create a method (example = 'changed_field')
4. add the following code to the method:
- Code: Select all
elements.fieldname.selectAll();
application.output(elements.fieldname.getSelectedText());
5. attach the method to the onFocusLost event
6. go to browse mode and test the stuff!
The only thing left is that you add your own datachanged check since this event, like onaction, won't work.
To be honest, I love my own tip
Cheers