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

C# View All Reports - But Exclude certain folders

Started by Jayson.A, 06 Jun 2013 08:04:13 AM

Previous topic - Next topic

Jayson.A

Hello,

I'm creating a small app to copy reports between folders and when i use the search feature to find all the reports i would like to exclude certain folders. is that possible?

Using C#

Code:

propEnum[] props = new propEnum[] { propEnum.searchPath, propEnum.defaultName };
                        sort[] s = new sort[] { new sort() };
                        s[0].order = orderEnum.ascending;
                        s[0].propName = propEnum.defaultName;
                        queryOptions qo = new queryOptions();


                        searchPathMultipleObject reportsPath = new searchPathMultipleObject();
                        reportsPath.Value = "/content//report";

                        baseClass[] bc = cmService.query(reportsPath, props, s, qo);
                        if (bc.Length > 0)
                        {
                            foreach (baseClass report_item in bc)
                            {
                                Grid_CopyReportDataView.Rows.Add(report_item.defaultName.value, report_item.searchPath.value);
                            }
                        }




Thanks in Advance,

Jayson