Select to view content in your preferred language

URL link encoding

2777
6
09-23-2013 02:18 AM
BartlomiejGajc
Deactivated User
Hi,

is there a way to prevent Flex Viewer to encode URL address in pop-up window?
Tags (2)
0 Kudos
6 Replies
AnthonyGiles
Honored Contributor
Bartlomiej,

No, Not out of the box, this would require a change in the source code, do you have the ability to do that?

Regards

Anthony
0 Kudos
BartlomiejGajc
Deactivated User
Anthony,

unfortunately I can't do this. I am pretty new to Flex. But I use the web app now while implementing GIS for a client who uses ERP software and integration of both is very important for them. ERP can be launched using the link but it contains many reserved characters. I am not really sure why but I can launch the ERP app using desktop or python script but not from Flex which is a bit disappointing.

Thanks anyway,
Bart
0 Kudos
AnthonyGiles
Honored Contributor
Bart,

It sounds like you are having trouble with the way the flex application encodes a URL. What happens is when the URL is encoded any special characters in the URL are encoded into the HTML code, i.e. %20 which is used to denote a space in the URL becomes %2520 as %25 is used for a percent sign. One way round it would be to do a find and replace in ArcMap and change your spaces from %20 to a space. What does cause great issues are links to sharepoints sites which have numerous special characters in them.

Regards

Anthony
0 Kudos
BartlomiejGajc
Deactivated User
Thanks Anthony,

it is a bit more complicated since I use the formula to "calculate" the URL link on the fly based on features attributes values and moreover part of this link should be once encoded and the other part double encoded! I give up this time 🙂
0 Kudos
AnthonyGiles
Honored Contributor
Bart,

I have raised the issue on GitHub for the flex team

https://github.com/Esri/arcgis-viewer-flex/issues/202

Regards

Anthony
0 Kudos
BartlomiejGajc
Deactivated User
Thanks a lot!

Bart
0 Kudos