Today I discovered your dbnotify sample. This is GREAT! With 3 lines of code I can log changes in a database. This saved me days of work!
Code: Select all
if lNotify
oNotify := KLANT->(DC_DbNotify():new())
oNotify:writeBlock := {|cEvent,cAlias,cDesc,oNotify|WriteData(cEvent,cAlias,cDesc)}
oNotify:SetNotifications( { DBO_TABLE_UPDATE, DBO_TABLE_APPEND, DBO_TABLE_DELETED }, { 'NAAM', 'BTW_NR', 'BET_DAGEN', 'BET_EINDE', 'PRIJSCAT' , 'FAKT_KLANT' , 'ADRES', 'EMAIL' } )
endif
