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

Call a pagelet with asp

Started by Fulvio, 16 Mar 2009 06:05:27 AM

Previous topic - Next topic

Fulvio

Hi,

I would like to know if it is possible to call a pagelet with asp.
To call a simple report i use this code:

<body onload="document.forms[0].submit()">
<form method="post" action="../../../cgi-bin/cognos.cgi" target="body">
    <input type="hidden" name="b_action" value="xts.run">
    <input type="hidden" name="m" value="portal/launch.xts">
    <input type="hidden" name="ui.tool" value="CognosViewer">
    <input type="hidden" name="ui.action" value="run">
    <input type="hidden" name="run.prompt" value="false">
    <input type="hidden" name="ui.object" value="/content/folder[@name='Samples']/folder[@name='Models']/package[@name='GO Data Warehouse (query)']/folder[@name='SDK Report Samples']/report[@name='Order Product Year List']">
    <input type="hidden" name="p_OrderNum1" value="102350">
</form>

The parameterui.object con il value "/content/folder[@name='Samples']/folder[@name='Models']/package[@name='GO Data Warehouse (query)']/folder[@name='SDK Report Samples']/report[@name='Order Product Year List']"
esegue il report.


I believe that it was sufficient to replace the previous value  with the serachPath of the pagelet ("/content/package[@name='CognosEducation']/folder[@name='x Argomento']/folder[@name='From Dashboard To Dashboard']/pagelet[@name='Product']") to solve the problem.
But it is not so because I get the following error:


Can not find the specified module. (C:/Programmi/cognos/c8.4\./bin\RSAOMPageletAuthoredReportGenerator.cpi)RSV-SRV-0042 Trace back:RSReportService.cpp(792): CCLPluginException: CCL_CAUGHT: RSReportService::process()RSReportServiceMethod.cpp(239): CCLPluginException: CCL_RETHROW: RSReportServiceMethod::process(): asynchRun_RequestRSASyncExecutionThread.cpp(774): CCLPluginException: RSASyncExecutionThread::checkExceptionRSASyncExecutionThread.cpp(211): CCLPluginException: CCL_CAUGHT: RSASyncExecutionThread::run(): asynchRun_RequestRSCMHelper.cpp(540): CCLPluginException: CCL_RETHROW: RSCMHelper::getAuthoredReport()PlugIns/CCLPluginLibraryLoader.cpp(85): CCLPluginException: CCL_THROW: CCLPluginLibraryLoader::load

Can someone help me?


Fulvio

I solved the problem!

To retrieve a page..

<body onload="document.forms[0].submit()">
<form method="post" action="../../../cgi-bin/cognos.cgi" target="body">
    <input type="hidden" name="b_action" value="xts.run">
    <input type="hidden" name="m" value="portal/cc.xts">
    <input type="hidden" name="m_page" value="i1D7C3A5B61E84D9994F5A1B385D6F6DB">
    <input type="hidden" name="ui" value="h1h2h3h4">
</form>

The m_page is the parameter that renders the page, and the values 'h1h2h3h4' of ui parameter, remove all of the headers and toolbars.