In my current task, after creating a new rich project I create its underlying subfoldersby copying them from one of our project templates using aaApi_CopyProjectWithHierarchy(). Theprocess works fine except that the saved searches under the 'Global' folder of the templateare not copied.
The flags I set are
vFlags = AAPRO_ARRAY_TAKE_OWNERSHIP | AAPRO_ARRAY_ATTRIBUTES | AAPRO_ARRAY_COMPONENTS | AAPRO_ARRAY_COPY_VERSIONS | AAPRO_ARRAY_COPY_WORKFLOW | AAPRO_ARRAY_COPY_SAVED_SRC | AAPRO_ARRAY_COPY_WS_PROFL | AAPRO_ARRAY_COPY_ACCESS | AAPRO_ARRAY_COPY_RESOURCES | AAPRO_ARRAY_COPY_STORAGE | AAPRO_ARRAY_COPY_CONTENTS; I then call the function with
aaApi_CopyProjectWithHierarchy(vSourceId,vTargetId,AAPRO_ARRAY_EXCLUDE_PARENT,vFlags,NULL,NULL,&vCount);
My company is using PW V8i, select series 3. The SDK is also SS3.
Any guidance you could provide would be greatly appreciated.
I would be interested to know if you ever figured this out. I was interested in doing something similar.
I did find: aaApi_SQueryCopyByProject which appears to be a way to copy Saved Searches from one project to another. I haven't had a chance to try it out yet though.
Mr Lazear,
I was unaware of this function. However, I just tried it and it seems to be the answer to my question. It seemed to copy all the saved searches perfectly. Thank you again for your help.
mld