06.08.2009

SnTT: OnChange-Event for fields in the Notes Client

>>Author:  Bernd Hort
>>Ort:     Hamburg
        
URL: http://www.assono.de/blog/d6plinks/OnChange-Event

Category: Show-n-Tell Thursday, LotusScript, Entwicklung


Show-n-Tell Thursday
The  OnChange event for fields is hard to spot. But if you found it once you will never want to life without it. The event is quite straight forward. It gets fired every time the field content is changed and the user leaves the field. The OnChange event works for all kind of fields including rich text fields.

Most developer think that this event only works in the web with JavaScript because this is the default. But if you change "Run" to "Client" instead of "web" you can select LotusScript as the programming language.
A picture named M3
I love this event because I no longer need to write the item value to a variable while entering the field and on exiting compare the variable with the current item value. The OnChange event will be triggered only if there was really a change.

Comments

#1 obercool - Ich dachte in der Tat "Hah! nur für Web". Klasse! Gravatar Image

Post A Comment

Comments

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

Tags

Deutsche RSS-Feeds (German)

Custom Button Custom Button

English RSS feeds

Custom Button Custom Button