cancel
Showing results for 
Search instead for 
Did you mean: 

Error with single quotes in open document function

Former Member
0 Kudos

Hi all,

I have an issue with the special characters using the open document function. I'm passing a name, and I'm using the URLEncode function, but it doesn't work for single quotes, it shows a javascript error. I tried with HTMLEncode and it works for single quotes, but not for the other special characters like @,+. I tried with both functions at the same time but it doesn't work either.

Please let me know if you know how to solve it.

Thanks,

Marcela

Accepted Solutions (1)

Accepted Solutions (1)

former_member212749
Active Participant
0 Kudos

Hi ,,

Try this

=" a href='http://l1280:8080/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?&sDocName=Account&sType=wid&iDocID=5311&lsSAccountType="[Account Type]"'>"[Account Type]"</a>"

Regards

Prashant

Former Member
0 Kudos

Hi Prashant,

I did not work it works for single quotes only, but not for other special characters.

This one doesn't work for single quotes

="<a href='../../scripts/openDocument.aspx?sType=wid&sDocName=Report_Name&sWindow=NEW&sReportName=Company Details&lsSPartner Id=" + [Partner Id] +"&lsSPartner Name=" + URLEncode([Partner Name]) +"'>View catalog</a>"

This one doesn't work for special characters

="<a href='../../scripts/openDocument.aspx?sType=wid&sDocName=RP-DSPP-Company_Catalog_CORETEAM&sWindow=NEW&sReportName=Company Details&lsSPartner Id=" + [Partner Id] +"&lsSPartner Name=" + [Partner Name] +"'>View catalog</a>"

Thank you,

Marcela

Answers (0)