cancel
Showing results for 
Search instead for 
Did you mean: 

et_LOST_FOCUS problem

Former Member
0 Kudos

Hi, I need to validate the content of an edit control. To do this, I trap the loas focus event of the control and I do my validation. When needed, I reformat the information and put it back to the edit control. Instead of having the new value in the control and the focus to the next control, I got an endless loop on the edit control. Can someone tell me what I do wrong?

Claude Bissonnette

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I generally find that the et_VALIDATE event is more appropriate for adding custom validation checks and where appropriate re-formatting data.

In some cases setting BubbleEvent to false may be appropriate to help prevent endless loops.

For a code sample have a look at the topic "Formatted Search screen - populate multiple fields". The example I posted there is more complex, but includes among other things validating an edittext and potentially changing its value. Hopefully it will be of some use to you.

Regards,

John.

Answers (0)