27
Views
7
Comments
Decode and display an url encoded input parameter
Question
We built a new Outsystems app that is being called from another webpage with url encoded input parameters.
I want to display the content of the parameters on screen, but the value should be unescaped first and I don't know how to do it.

When calling the application we use a hidden form to pass a CustomerName (from a non Outsystems application)
.
Suppose the customer is called "John Doe (the first)", then the value from I see in the parameter is "John+Doe+%28the+first%29"

And I want the Outsystems webpage to read "Welcome John Doe (the first)" and not "Welcome John+Doe+%28the+first%29"

Does anyone know how to overcome this?


2012-03-16 12-21-09
João Rosado
Staff
Hi Karel,

Easiest way is to create a extension with a method that calls HttpUtility.UrlDecode(string)

Anyway, if you are reading that value in a InputParameter of a OutSystems screen, then It should have been already decoded automatically.
Make sure you are not encoding 2 times the string (so that it's getting to the InputParameter double encoded).

Regards,
João Rosado
UserImage.jpg
Kees Buren
Hi Joao,
Can you tell me where I can find the HttpUtility.URLDecode?
Regards Kees

2020-08-05 08-52-58
Ruben Goncalves
Hi,

Just added this functionality to this component!

Cheers,

RG
2014-09-09 05-59-04
Loki
Hi, getting this error while publish this extension..

"Invalid Extension Implementation - Unable to find the assembly file 'outsystems.noshtmlutils.jar' in the extension."

Running Platform 8.0.0.8

2020-08-05 08-52-58
Ruben Goncalves
Hi Lokendar,

Are you trying to publish the extension in a Java infrastructure?

Cheers,

RG
2014-09-09 05-59-04
Loki
Yes..  i do... 
2020-08-05 08-52-58
Ruben Goncalves
Unfortunately, I have not yet created the Java version for that component...
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.