P
Peter Judge
Guest
You can tell the MARK-ROW-STATE() where the before image should be. def temp-table tt no-undo before-table bt field f1 as char . def dataset ds for tt. create tt. f1 = 'abc' . temp-table tt: tracking-changes = yes . find first tt. buffer tt: mark-row-state ( row-modified , buffer tt: handle ). temp-table tt: tracking-changes = no . def var lc as longchar . dataset ds: write-json ( 'longchar' , lc , true , ?,?,?, true ). message string ( lc ) view-as alert-box . Shows --------------------------- Message (Press HELP to view stack trace) --------------------------- {"ds": { "prods:hasChanges": true, "tt": [ { "prods:id": "tt2304", "prods:rowState": "modified", "f1": "abc" } ], "prods:before": { "tt": [ { "prods:id": "tt2304", "prods:rowState": "modified", "f1": "abc" } ] } }} --------------------------- OK Help ---------------------------
Continue reading...
Continue reading...