Double messagebox in rowfousechanging event

I was having this problem until I saw this post from newsgroup.

As famous Bruce Armstrong said,

You need to try avoiding doing things that cause focus change in events that are responses to focus changes. You might post from the rowfocusechanging event to your code, or post to another event that displays the error message *after* the rowfocusechanging event has finished.

So my final code in rowfocusechanging event looks like this,

li_rc = rte_body.event ue_checkLength() //No messagebox should popup in this event, otherwise it will pop twice.

if li_rc < 0 then
rte_body.event post ue_showErrMsg(li_rc)

// Do not change row focus.
return 1

end if

Also, don’t try to test java class and dotnet assembly in the same page. I was confused sometimes even it works!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s