We want to develop our own user-defined reporting to view the 'sliced' value in the ODF_SL_OLD_VALUE & ODF_SL_NEW_VALUE tables. Currently, those tables are not being populated with any values. How do we populate these tables?
Steps to Reproduce:
Expected Result: We can see the data in the UI, therefore we expected to see data in the slice table
Actual Result: We do not see any sliced data in the tables
Release: Any
The data for these tables are not sliced unless a new Time Slice definition has been created.
Now the data will appear in the tables:
You will need to tie the ID in this table back to your object instance.
For example, for a Time Varying Attribute on the Team object which is also audited using the above steps
ODF_SL_AUD_NEW_VALUE.prj_object_id (or OLD_VALUE) the team records.
Note: If the values in the time scale are removed/set to 0, the slice then is deleted and will not be available in the TSV audit or the table. If you need to see who removed the allocation you will have to check the related main allocation audit to see who updated the record as there will be no TSV audit available.
Here is the linking to associate the ODF_SL_AUD_NEW_VALUE to PRTEAM table
ODF_SL_AUD_NEW_VALUE. prj_object_id = CMN_AUDITS_TSV.id
The CMN_AUDITS_TSV table links back to the PRTEAM.prid
Make sure when querying the CMN_AUDITS_TSV table that you choose the correct object_code as well to make sure you are using the correct object.
Example of team
SELECT t.PRPROJECTID,
tsv.OBJECT_CODE,
t.PRRESOURCEID,
t.PRID,
an.SLICE,
an.SLICE_DATE,
an.CREATED_DATE
FROM prteam t
INNER JOIN CMN_AUDITS_TSV tsv
ON t.PRID = tsv.OBJECT_ID
INNER JOIN ODF_SL_AUD_NEW_VALUE an
ON tsv.ID = an.PRJ_OBJECT_ID
WHERE t.PRPROJECTID = 5005019
AND tsv.OBJECT_CODE = 'team'