If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

BaseClassWrapper class

Started by louis, 06 Aug 2009 08:49:07 AM

Previous topic - Next topic

louis

i create a java class to delete a report,i was found sdk sample like this:
       
        BaseClassWrapper reportToBeDeleted;

        BaseClass reportsForDeletion[] =new BaseClass[] { reportToBeDeleted.getBaseClassObject()};
        int delReturnCode =cmService.delete(reportsForDeletion, delOptions);

but i can't run this class, because of i can't find BaseClassWrapper class,so i want to know ,where i can find this class.

kolonell

This Class is part of the Samples that come with the SDK Software Package (c8/sdk/samples) . I think you can find the .java file in the Common folder .

louis

yes, i can find DeleteReport.java in sample folder,but when i import BaseClassWrapper Class , i can't found this class in cognos lib

please to see attachments

kolonell

Oh I see ... that is because that class is not part of the "...bibus._3." package. It is just a Sample Class that is created in the "Common" Project folder.

There are many ways to solve this issue (which depend on IDE as well) but the simplest is to just to copy the BaseClassWrapper.java file into the reportDel/ folder.
Then there is no need to prefix the class name with the package identifier.

louis

oh, haha ,yes, i have got it, thank you very much