Salesforce

Opening a URL Containing Blanks (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Opening a URL Containing Blanks (Magic xpa 3.x)

Objective

This Technical Note explains how you can open a URL with blanks from Magic xpa.

Description

Many URLs contain blanks that Internet Explorer translates to %20.

When Magic xpa tries to access such a URL, Magic xpa looks for a Logical Name and tries to translate it, causing the URL to be incorrect.

Solution

Let’s say you have a URL with blanks and it displays in Internet Explorer as follows:

http://iit.bloomu.edu/dit/assets/pdf/Final%20eDeveloper%20Brochure.pdf

If you try to use this URL from eDeveloper using the Exit operation, a “page cannot be displayed” error message will be shown.

This is because Magic xpa will look for a Logical Name named 20eDeveloper, and once not found, it will look for the following URL:

http://iit.bloomu.edu/dit/assets/pdf/Final20Brochure.pdf

To overcome this behavior the following expression should be used:

'cmd /c explorer http://iit.bloomu.edu/dit/assets/pdf/Final eDeveloper Brochure.pdf'

Although all instances of %20 were replaced with blanks, Internet Explorer will automatically translate them back to %20.

Reference
Attachment 
Attachment