UCMDB and UD Practitioners Forum (Previously CMS)
Showing results for 
Search instead for 
Do you mean 

ampersand truncates parameterized template view value when passed from a web page

Occasional Contributor

ampersand truncates parameterized template view value when passed from a web page

Hi,

 

I'm using a web link with an embedded uid/pw to logon to the UCMDB.  In that link I'm passing a value to a parameterized template view.  The report displays in the browser as expected, except when the value I pass has an "&" ampersand in it, in which case it truncates the value at the ampersand in the report.  

 

This is what the url string looks like when I try to pass the value "My & Parameter" to the report:

 

ucmdb-ui/cms/directAppletLogin.do?cmd=ShowReport&reportType=templateview&reportName=myReportName&params=%5BParam1%3DMy+&+Parameter%5D&reportTitle=&reportSubtitle=&reportTableFormat=Hierarchical&userName=

 

So I'm passing  "My & Parameter", but all I get is "My" in the template parameter field of the report.  I've tried using various methods to pass it, %26, &, &, \&, no luck.  Any ideas?  

 

Thanks,

Bill

1 REPLY
Trusted Contributor

Re: ampersand truncates parameterized template view value when passed from a web page

Hi Bill,

 

This problem occurs because of a change in ASP.NET 2.0. This change causes ASP.NET 2.0 to explicitly check any symbols in the virtual path in the URL when ASP.NET 2.0 validates the URL.

Could you please find more information in the link below.

http://support.microsoft.com/kb/932552

http://support.microsoft.com/default.aspx?scid=kb;EN-US;826437

 

Best regards,

Hoang.

-------------------------------------------------------------------------------
*HP Support
If you find this or any post resolves your issue, please be sure to mark it as an accepted solution.*
*If you feel the post is helpful, please assign a KUDO star to say "Thanks"*
//Add this to "OnDomLoad" event