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

*** How to use com.cognos.pogo.pdk.MessageContext?

Started by vip2cool, 09 Dec 2008 01:47:46 AM

Previous topic - Next topic

vip2cool

Hi

I'm try to display a 3rd party report in Cognos, but i don't know how to use MessageContext to do this (there's no help online as to how to use com.cognos.pogo.pdk.MessageContext), and i don't know if MessageContext is what we use to do this task.

here is the structure of the code:

public class ServiceHandler extends BasicHandler
{
...
public void invokeImple (MessageContext messageContext)
{
BIBusEnvelope requestEnvelope = (BIBusEnvelope) messageConext.getProperty ("request.envelope");

//here i generate the 3rd party report as a html, which is saved to the hard drive

try{
messageContext.setResponseName("response"); //?
messageContext.setProperty("response.envelope", null); //?
messageContext.response("response.envelope"); //?
}
catch(Exception e){}
}
}

the above three methods of MessageContext are what i found in the MessageContext class, i don't know how to use them to send the generated html page and display in browser when the 3rd party report is clicked inside cognos.

Any help is greatly apprciated!

Thanks