COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => SDK => Topic started by: jeeva on 17 Jul 2015 01:44:47 AM

Title: Need to Embed Scheduler Icon in my web Apllication to schedule the reports
Post by: jeeva on 17 Jul 2015 01:44:47 AM
Hi,

We designed one web application to list out all required report names with search path and modified date. it looks like a cognos connection page. then we got another requirement to show scheduler icon on the UI of my Application.

if we click on this scheduler icon, it must show cognos scheduler page. in this page users can schedule there reports.
how can we navigate to the cognos scheduler page from my application.
is there any way.

Please suggest me.

Thanks.

Title: Re: Need to Embed Scheduler Icon in my web Apllication to schedule the reports
Post by: Andrew Weiss on 23 Jul 2015 09:59:43 AM
Thanay,

You can construct the URL this way.  You'll need some information about the report being scheduled

string cogParams = "?b_action=xts.run&m=portal/schedule/report.xts";
cogParams += "&backURL=" + urlOfPreviousPage;
cogParams += "&m_path=" + storeIdOfReport;
cogParams += "&m_name=" + nameOfReport;
cogParams += "&m_class=" + objectType (e.g. "report");
cogParams += "&m_obj=" + searchPath.Replace("'", "'");  // escape the '
string editScheduleURL = cognosGateway + cogParams;


-Andy
Title: Re: Need to Embed Scheduler Icon in my web Apllication to schedule the reports
Post by: jeeva on 28 Jul 2015 02:31:12 AM
Quote from: Andrew Weiss on 23 Jul 2015 09:59:43 AM
Thanay,

You can construct the URL this way.  You'll need some information about the report being scheduled

string cogParams = "?b_action=xts.run&m=portal/schedule/report.xts";
cogParams += "&backURL=" + urlOfPreviousPage;
cogParams += "&m_path=" + storeIdOfReport;
cogParams += "&m_name=" + nameOfReport;
cogParams += "&m_class=" + objectType (e.g. "report");
cogParams += "&m_obj=" + searchPath.Replace("'", "'");  // escape the '
string editScheduleURL = cognosGateway + cogParams;


-Andy

Hi Andy,

Thanks for your reply. it is working fine.