J
jacky
Guest
Hi, Tkx for your response. But I don't see it how to do. I send the dataset to a method in the back-end as follows INPUT-OUTPUT DATASET-HANDLE DSChanges BY-REFERENCE. In that class I have the definition of 2 datasets def temp-table ttparent .. def temp-table ttdetail def temp-table ttSubdetail … DEFINE DATASET ds1 FOR ttparent, ttdetail, ttsubdetail DATA-RELATION rel1 for ttparnet, ttdetail RELATION-FIELDS (field1, field1) DATA-RELATION rel2 FOR ttdetail, ttsubdetail RELATION-FIELDS (field2, field2) def temp-table ttparentCopy.. def temp-table ttdetailCopy def temp-table ttSubdetailCopy… DEFINE DATASET dsCopy FOR ttparentCopy, ttdetailCopy, ttsubdetaiCopyl DATA-RELATION rel1 for ttparnetCopy, ttdetailCopy RELATION-FIELDS (field1, field1) DATA-RELATIONrel 2 FOR ttdetailCopy, ttsubdetailCopy RELATION-FIELDS (field2, field2) def var lOriginal as handle. lOriginal = dataset ds1:handle. lOriginal :copy-dataset (ioDSChanges ). => I make the DSChanges static. But how can I fill now the dscopy with only the records for parent P1 (and his childs) and de beforebuffer form the DSChanges. If I do also a copy : def var ITest as handle. ITest = datset dscopy:handle. lTest :copy-dataset (ioDSChanges ). => then I have all records If I delete the records not for parent 1, I still have the beforerecords of all the deleted records? If I do then a query on the before-table of ITest then I still have the before-record SD211 and P3? I don'ts see it how I can made this. Tkx
Continue reading...
Continue reading...