Problem with code in 'Exiting event '

Hi all,

I want to execute some code while exiting a field…but this is not happening if i click an action button directly without moving to the next field. this is coz i think the focus is still in the same field so exiting event is not triggered.

Any solutions on what i should do to execute the code in exiting event in the above mentioned scenario.

Thanks in advance for any help.

Regards,

Malar

Subject: Problem with code in 'Exiting event ’

Hi Jean, Thanks for ur immediate response…Actually on exiting event I need to show an input box where the user will enter some values. So on clicking the action button this is not happening…

Any further suggestions???

Subject: RE: Problem with code in 'Exiting event ’

You can use one of the notesuidocument class methods - gotoprevfield, gotonextfield or gotofield.

gotoprevfield and gotonextfield depend on where your field is in the document. If for example your field is the last one in the document then gotonextfield will not change the focus so the exiting event will not be triggered.

Subject: Problem with code in 'Exiting event ’

Because you are never sure that the user will enter the field, I also add the code to the Querysave event, so if the field is a required field, the querysave event will catch it if they have not populated it. In the code I position the cursor to the required field and that way they must enter some value.

Thanks,

Jean