I was curious if there is anyway using the new 10.2.x SDK to import/export an entire archive from/to a local file.
Since I can already import/export report specifications I could also settle for importing / exporting just the packages.
I didn't see anything in the SDK to do it, but I thought I'd ask the experts.
Thanks
Yup, samples online...
http://www-01.ibm.com/support/docview.wss?uid=swg21338960
https://www-304.ibm.com/support/docview.wss?uid=swg21342549
http://www-01.ibm.com/support/docview.wss?uid=swg21386640
For packages if they aren't in the above links I'd refer to the SDK guide to get the actual params needed.
I should have been more verbose in what I meant by "local file".
All of those examples are for importing and exporting your archive to the deployment folder.
I would like to write an app where I select the archive from my local file system and import it... from any directory.
I would then like to run the app and export the archive to my local file system at a location of my choosing.
I looked at the archive format and it looks like a number of .xml files that hold meta data about the archive, and all report specifications. There appears to be encoded .dat files that contain what I assume to be package/model information, saved output versions, etc. I know of no way for someone to import or export that format using the SDK, to a specified location.
Hi Bpetty,
I'm new to cognos, having been playing around with the sdk. If I understand you requirment
a)Import metadata from cognos to folder on local file system (report specification and model info)
b)Export the metadata from folder on the local file system to cognos content manager service.
Correct me if I'm wrong.
I've tried certain examples and was able to get the report specification xml and model xml through the sdk.
So logic to import from cognos would be
--> Search all folders
-->Recursively check the contents in each folder search for reports
-->Dump the report specification xml through sdk on to local folder (Via java io)
-->Since we have import in sdk there should also be an option to export report spec (not sure on this)
Regards,
Jithin Mohanan
Quote from: bpetty on 09 Oct 2013 02:33:25 PM
I should have been more verbose in what I meant by "local file".
All of those examples are for importing and exporting your archive to the deployment folder.
I would like to write an app where I select the archive from my local file system and import it... from any directory.
I would then like to run the app and export the archive to my local file system at a location of my choosing.
I looked at the archive format and it looks like a number of .xml files that hold meta data about the archive, and all report specifications. There appears to be encoded .dat files that contain what I assume to be package/model information, saved output versions, etc. I know of no way for someone to import or export that format using the SDK, to a specified location.
None that I know of as this is s arequest that is sent to the Content Manager for action and the CM uses the location specified in the configuration of Cognos in Cog Config. IE. would require a restart of the services to change the location.
So in short...No. Has to be in the Deployment folder configured in Cog Config.
jithin, I can import/export report specs right now.
I didn't know you can export Models in XML. Is that with the framework SDK? Does that include the Package as well?
Do you know of some way to import saved output versions?