Hello everyone,
I'm detecting a quite particular behavior in OutSystems 11 and would like to know your thoughts about it.
I have a action that sends my user to an External Site.
The external site in question is another OutSystems module screen.
Lets say I'm sending my user to "outsys/AnotherModule/Homepage.aspx&Input=N%2BbBk"
Where the "N%2BbBk" value represents an encoded string from "N+bBk" .
The catch here is, when the encoded string arrives at the destination, even though he is show in the URL as "N%2BbBk", in OutSystems, the screen input variable assumes the decoded value for it, which is "N+bBk ".
At the destination screen, since I am expecting an encoded value I call the decode function on preparation. Which in this case leaves me with "N bBk ". Due to the fact that if we decode "+" it becomes " ".
Why is it that, when I use External Site component, my inputs always arrive decoded even tho when i mounted the URL I used Encoded values and they show in the URL?
Hi @Jorge Figueiredo ,
there is no reason for you to expect that you would have to do any decoding on the target screen.
when you have a direct flow between screens in outsystems, the platform will do the work for you on both ends, taking every passed in value and encode it into a proper url, and analysing the url and making correct values in the receiving input parameters.
If you choose to use an external flow, you are responsible for making a correct url on the sending side, instead of the platform, so there you will have to encode it, but that doesn't change anything on the receiving side, the platform will still do that for you.
Just think about it, the target screen just gets an url, it doesn't even know if that is coming from an internal or externals flow, so why would it work differently when coming through external flow.
Dorine
@Dorine Boudry So, you're telling me that, when I use an external Site component, the receiving end always process the URL values before initializing?Decoding automatically the sent encoded values?
Yes,
that seems entirely logical to me, and is also your own observation