crystal-reportscrystal-reports-2008business-objectsopendocument

How to pass parameter value containing parentheses via URL


I am trying to pass a parameter value via the URL and it works for most values unless the value contains parenthesis. I have tried the backslash () to escape them but it doesn't appear to work.

Here is the URL

http://<server>/OpenDocument/opendoc/openDocument.aspx?sViewer=html&sDocName=<DocName>&sType=rpt&promptex-<ParamName>=VALUE_CONTAINING_(PARENTHESIS)

Solution

  • I discovered that the value can be enclosed in quotes and then URI-escaped.

    The URL becomes

    http://<server>/OpenDocument/opendoc/openDocument.aspx?sViewer=html&sDocName=<DocName>&sType=rpt&promptex-<ParamName>=URI_ESCAPE("VALUE_CONTAINING_(PARENTHESIS)")