Hi, I'm currently creating a REST interface, and I need a way to set a record as modified. I have a Create/PUT record section where I use
DO WHILE queryh:GET-NEXT():
bufferh:MARK-ROW-STATE(3).
END.
And a Delete record section where I use
tableh:TRACKING-CHANGES = TRUE.
DO WHILE queryh:GET-NEXT():
bufferh:BUFFER-DELETE.
END.
tableh:TRACKING-CHANGES = FALSE.
But I'm having trouble finding a way to mimic a modification. Currently I'm using a query string parameter to delete the record from the primary index and putting a JSON string of the whole record in the body to create the record. But when I try to use MARK-ROW-STATE(2) I get an error that I need to attach a data source, which doesn't work as best as I can tell and causes problems anyway since this crosses the line between business entity and data access levels, or add a 2nd, before image, parameter which doesn't seem to work no matter what I do. Anyone have a good way of doing this?
Thanks,
bstaunton
Thanks Peter Judge, this works in marking the row-state, though annoyingly SAVE-ROW-CHANGES doesn't save the new value to the database table.