COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => SDK => Topic started by: dmk.3678 on 21 Sep 2015 10:12:13 AM

Title: Need Help in Importing One Package/Folder (SubSet) from a Archive
Post by: dmk.3678 on 21 Sep 2015 10:12:13 AM
Hi,

I am trying to import one Folder/Package(Say 'Test') with the help of Attached Sample SDK Java File(Import_Partial_Subset.java) from Exported Archive(Say 'Export.zip').
i know where to define Dispatcher URL, NameSapceID, username, password.

But i am not sure where i can define Archive Name (Export.zip)
and the folder/package i want to import (Test).

Can someone look at the code attached and let me know where should i make changes to get this work?
Title: Re: Need Help in Importing One Package/Folder (SubSet) from a Archive
Post by: Andrew Weiss on 22 Sep 2015 09:01:20 AM
dmk,

It looks like it's just the -a parameter.  e.g. -a Export

-Andy
Title: Re: Need Help in Importing One Package/Folder (SubSet) from a Archive
Post by: dmk.3678 on 23 Sep 2015 08:04:36 AM
Tried That, It does not work.  :(
Title: Re: Need Help in Importing One Package/Folder (SubSet) from a Archive
Post by: Andrew Weiss on 24 Sep 2015 08:11:10 AM
DMK,

That's odd, that's what the parameter is for.  If we can support exports/imports in MetaManager's Script Runner would you be interested?  Then you can do it with a couple of lines of JavaScript calling a simple Export function, instead of this Java code and the SDK...

-Andy