I'm trying to set up a REST service based on a few different examples I've seen while going through Progress training documents. When trying to set the temp-table attribute on a temp-table that is defined with a schema similar to a progress db table and with a before table, I receive the following errors:
Cannot turn on TRACKING-CHANGES for a static temp-table unless DEFINED with a BEFORE-TABLE phrase. (12344)Unable to set attribute TRACKING-CHANGES in widget of type TEMP-TABLE. (3131)Here is my temp-table definition and then my attempt to set the attribute:
define temp-table ttwh-ship-l0 like wh-ship-l0 no-undo before-table btwh-ship-l0.
temp-table ttwh-ship-l0:TRACKING-CHANGES = TRUE.
As far as I can tell, this should work as is. TIA.
It turns out that my definition of the temp-table and the placement of the no-undo was causing the problem.
Changed my definition to:
define temp-table ttwh-ship-l0 no-undo like wh-ship-l0 before-table btwh-ship-l0.
and it started working.
It seems the temp-table definition was the problem. When I changed it to the following, it started working.
I have that defined, but I've just realized that I forgot to add the include for the definition in my class file.
Adding the include to the BusinessEntity class did not help. I still receive the same error when it reaches the line to set tracking-changes to true.