cognos Project Management Templates

You can build a URL to interact with your Cognos portal. This can help you with content navigation and folder browsing. The cc.xts function is used perform Cognos Connection related tasks through a URL. When performing actions within Cognos Connection (folder browsing, viewing pages, searching, or browsing to other section in the Cognos Connection UI), the actual URLs can often be exposed in the web browser’s address bar. These URLs may be much longer than needed mainly because additional parameters, such as a “Back URL” are appended.
Here are a few examples of URLs that are commonly used for browsing content in Cognos Connection.
Viewing Portal Pages
http://server-name/cognos8/cgibin/cognos.cgi?b_action=xts.run&m=portal/cc.xts&m_page=iFEAD7E0238FD4FB0B7CC9144E91C79BC
Folder Browsinghttp://server-name/Cognos8/cgi-bin/cognos.cgi?b_action=xts.run&m=portal/cc.xts&m_path=/content/package[@name='GO Sales and Retailers']/folder[@name='Report Studio Report Samples']
Searching
http://server-name/cognos8/cgibin/cognos.cgi?stext=banded+report&b_action=xts.run&m=portal/cc.xts&m_path=/content&search=
Opening Analysis Studio
http://server-name/Cognos8/cgibin/cognos.cgi?b_action=xts.run&m=portal/launch.xts&ui.gateway=/Cognos8/cgibin/cognos.cgi&ui.tool=AnalysisStudio&ui.object=/content&ui.action=new
Opening Analysis Studio in the same browser window or frame
http://server-name/Cognos8/cgibin/cognos.cgi?b_action=xts.run&m=portal/launch.xts&ui.gateway=/Cognos8/cgibin/cognos.cgi&ui.tool=AnalysisStudio&ui.object=/content&ui.action=new&launch.openJSStudioInFrame=true
Opening Analysis Studio to a specific package
http://server-name/Cognos8/cgibin/cognos.cgi?b_action=xts.run&m=portal/launch.xts&&ui.gateway=/Cognos8/cgibin/cognos.cgi&ui.tool=AnalysisStudio &ui.object=/content/package[@name='Great Outdoors Company']&ui.action=new
Have you ever had a business requirement that asked you to dynamically update your Access Manager LDAP with a new user?
Here is a piece of code that will allow you to connect to your Access Manager LDAP and then add a new user.
private void Form1_Load(object sender, System.EventArgs e) {
try
{
Authenticator2.Application _AuthApp = new Authenticator2.Application();
Authenticator2.Document _AuthDoc;
Authenticator2.DSConfigurations objDSConfigs;
Authenticator2.Configuration objConfig;
objDSConfigs = ((Authenticator2.DSConfigurations)_AuthApp.DSConfigurations);
objConfig = ((Authenticator2.Configuration)objDSConfigs.Add(”cognosserver”,389,”dc=dev”,0)); objConfig.DefaultSecuritySource = true;
_AuthDoc = ((Authenticator2.Document)((Authenticator2.AuthenticatorDocuments)_AuthApp.Documents).OpenWithBasicSignon(”default”,”administrator”,”mypassword”,”Root User Class”));
Authenticator2.User objUser;
objUser = ((Authenticator2.User)((Authenticator2.Users)((Authenticator2.Folder)_AuthDoc.UserFolder).Users).Add(”MyNewUser”));
//clean up
System.Runtime.InteropServices.Marshal.ReleaseComObject(_AuthDoc);
System.Runtime.InteropServices.Marshal.ReleaseComObject(_AuthApp);
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}
}