Linking an External URL

Linking an External URL

  
I am having a problem creating a link to an external site.  I have used a link widget and in the destination have selected common/external URL. Under that in the URL I have pasted the URL I wish to go to but the box is still red.  It says parameter 'URL' has no description and that it is expecting an expression.

Thanks for the help!
Hi John,

Can you share a screenshot of the error?

Thanks,
Guilherme
  Hey Guilherme,

Thanks for the quick reply! I attached some screenshots.

Thanks,
John
Solution
Hi John,

The URL receives a text parameter and as such you need to escape your string.

You need to surround your URL with double quotes for it to work "http://xxxxxxxx [Your url]".

Hope this helps,
Guilherme
Solution

Guilherme Pereira wrote:

Hi John,

The URL receives a text parameter and as such you need to escape your string.

You need to surround your URL with double quotes for it to work "http://xxxxxxxx [Your url]".

Hope this helps,
Guilherme

Thank you. Did'nt notice that double quotes up to this time.


Please help a newbie follow this. I am storing a URL in an entity attribute and displaying this in a table. I have a link on the cell contents in the table with destination Common/ExternalURL.

No formatting I have tried seems to get the URL to work. See examples of what I have tried in the URL property of the link.

"http://[DocTable.List.Current.Document.DocRef]"

"http://[" + DocTable.List.Current.Document.DocRef + "]"

"'" + DocTable.List.Current.Document.DocRef + "'"

I either get a 404 error or no action.

Please help.

Hi Bill,


Can you share an example of what you have in DocTable.List.Current.Document.DocRef?


Cheers,

Guilherme

Thanks for looking. I have tried a couple of basic things. The intention is to be a document stored elsewhere. This URL meets that spec. It generated error 404.

http://sharepoint.bizoptimize.com/PPM/Shared%20Documents/Bill%20Adams%20Exec%20Resume%202017%2010.docx

When that did not work I tried a simple webpage. It simply did nothing.

http://www.Bizoptimize.com

I also tried the right click and got the same results.

You could have an expression on the table and build the a href tag yourself like:

"<a href='"+  DocTable.List.Current.Document.DocRef + "'>The link</a>"

If  DocTable.List.Current.Document.DocRef has the complete link otherwise it could be something line

"<a href='http://"+  DocTable.List.Current.Document.DocRef + "'>The link</a>"

Hope this helps.

Thanks, Johan.

This worked. Although it did generate a warning that I should use EncodeHTML() to address security concerns.