[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Best way to mark a ProDataSet record as modified for SAVE-ROW-CHANGES?

  • Thread starter Thread starter Peter Judge
  • Start date Start date
Status
Not open for further replies.
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...
 
Status
Not open for further replies.
Back
Top