COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => COGNOS 8 Administration => Topic started by: joseph123 on 18 Jan 2011 01:38:48 PM

Title: How to Customize errorpage.html in Cognos 8
Post by: joseph123 on 18 Jan 2011 01:38:48 PM
Hi All

PLease can any one aware how to customize errorpage.html in Cognos/C8/cg-bin path.

Eg: I want to add Admin Name and mail ID.

${ERRPAGE_APPNAME}


  ${ERRPAGE_UNEXPECTED}


  ${error_message}
"${details}"
${ERRPAGE_SOURCE_FILE} "${src_file}" ${ERRPAGE_SOURCE_LINE} ${src_line} (${src_module}) 

  ${ERRPAGE_MAILTOADMIN} ${admin_email} ${ERRPAGE_CONTACTADMIN}

 


Thanks & regards,
Ven

Title: Re: How to Customize errorpage.html in Cognos 8
Post by: Rutulian on 21 Jan 2011 06:14:51 AM
Hi Ven,

I'd imagine if there's a file there called errorpage.html (haven't got access to a server currently to check) it's just a matter of editing it and hardcoding the admin name and email with something like

<a href=mailto: admin_email@mycorp.com> Contact Administrator </a>

or even

<p> Take a screenshot of this page and email to <a href=mailto: admin_email@mycorp.com>  Administrator </a></p>

Each gateway in your system would need to be modified the same way.

If you find a cleverer way of doing this with variables as you set out in your post let me know.  If the cgi-bin page is just a redirect to something hosted in tomcat you probably can hack it a neater, more manageable way than my 'get it done, but it ain't clean' method.

[edited to display HTML correctly]