SDK Sample to add portal page to a multiple users

Technote (FAQ)


Question


How can I add a portal page to multiple users using the SDK?

Currently only one portal page can be added to any one account and not to multiple accounts.

Cause

Product limitation

Answer

The attached SDK code will copy an existing Portal page to (** ALL**) the accounts under a specific namespace.

1. Extract the attached SDK sample.

2. Modify the following variables in the attached code to reflect your current Cognos environment.
(dispatcher URL)
endPointURL = "localhost:9300/p2pd/servlet/dispatch";
(current namespace to search for ALL users to copy page to)
currentNamespace = "CAMID(\"SDK\")";
(searchPath of the page you want to copy )
myPageLet = "/folder[@name='My Folders']/pagelet[@name='SDKpage']";

(credentials of the user to authenticate against)
(namespace ID!! ) namespaceId = "SDK";
(username) userName = "admin";
(password) password = "password";

3. Compile and Run the sample.

For additional information on the Software Development Kit toolkits please see the SDK Getting Started Guide installed with the the Cognos SDK.

1384606.zip


Cross reference information
Segment Product Component Platform Version Edition
Business Analytics Cognos Business Intelligence Software Development Kit Windows 10.1, 8.4

Rate this page:

(0 users)Average rating

Document information


More support for:

Cognos 8 Business Intelligence
Software Development Kit

Software version:

8.4, 10.1

Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows

Software edition:

All Editions

Reference #:

1384606

Modified date:

2014-08-25

Translate my page

Machine Translation

Content navigation