When you query the Cognos Content Store it is important to remember that you can search for one specific item, or you can search for all objects of a specified type. For example, if you wanted to find the details for one particular report item then you would use the following syntax for your search path value.
spSingle.Value = "/content/package[@name='" + _pkgName + "']/report[@name='" + _rptName + "']";
However, if you wanted to find all reports for a specified package then you would use the following syntax for your search path value.
_reportPath = "/content/package[@name='" + _package + "']/report//*";
This is the same logic if you wanted to find all packages that exist in the Cognos Content Store.
_packagePath = "/content//package/*";
Cognos 8 SDK google search
New C8 SDK Utility --- Cognos 8 Modification Check
The BI Centre C8 Modification Check provides a Cognos SDK developer with a workable C# solution that will allow you to:
· Search the Content Store for items that have been modified after a selected date value
For example, if you were looking for all reports that were modified on June 3rd, 2008 then you would select the date June 2nd, 2008. The code will search for all items that have been modified after the selected date value from the date control.
The results of the search are then rendered to a text box control.
· Search the Content Store for items that have been modified after a selected date value
For example, if you were looking for all reports that were modified on June 3rd, 2008 then you would select the date June 2nd, 2008. The code will search for all items that have been modified after the selected date value from the date control.
The results of the search are then rendered to a text box control.