Hi everyone,
I am working on a report, where I find all the documents in ADS and then delete some of them. In oder to find which documents should be deleted, I have to check the attributes of the ADS documents, for example the creation time
I know there are some functions that might be useful, but how to find the object with format ADSDocumentAttribute at first?
hope someone can give some suggestions :)
Thanks a lot.
Well, you have to go over some steps:
oADSDoc_1 = oADSRepository.getDocumentByLink(oObjDef.Attribute(Constants.AT_ADS_LINK_1, g_nLoc[0]).getValue());
oADSContent_1 = oADSDoc_1.getDocumentContent();
oMetaInfo_1 = oADSDoc_1.getDocumentMetaInfo();
aoAttr = oMetaInfo_1.getAttributes()
Everything from the ARIS help :-)
Regards,
Robert
Ok, who would have thought that those are, well, interesting...
oMetaInfo_2.addAttribute ("Test", "Value of test") just adds during runtime such an attribute which can then be read with the methods above etc. But this does not really helps much...
There really seems to be no method to get the existing attributes like creation time for those documents. Perhaps there is something for this in APG...