6554
Views
12
Comments
Solved
Linking an External URL
Question
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!
2012-10-08 11-59-27
Guilherme Pereira
Staff
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 "https://xxxxxxxx [Your url]".

Hope this helps,
Guilherme
UserImage.jpg
Van Omega

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 "https://xxxxxxxx [Your url]".

Hope this helps,
Guilherme

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


2012-10-08 11-59-27
Guilherme Pereira
Staff
Hi John,

Can you share a screenshot of the error?

Thanks,
Guilherme
UserImage.jpg
John Higuera
  Hey Guilherme,

Thanks for the quick reply! I attached some screenshots.

Thanks,
John
Screenshots.docx
2012-10-08 11-59-27
Guilherme Pereira
Staff
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 "https://xxxxxxxx [Your url]".

Hope this helps,
Guilherme
UserImage.jpg
Van Omega

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 "https://xxxxxxxx [Your url]".

Hope this helps,
Guilherme

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


2020-01-03 01-12-07
Bill Adams

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.

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

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

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

I either get a 404 error or no action.

Please help.

2012-10-08 11-59-27
Guilherme Pereira
Staff

Hi Bill,


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


Cheers,

Guilherme

2020-01-03 01-12-07
Bill Adams

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.

https://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.

https://www.Bizoptimize.com

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

2023-08-25 08-57-29
Johan den Ouden

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='https://"+  DocTable.List.Current.Document.DocRef + "'>The link</a>"

Hope this helps.

2020-01-03 01-12-07
Bill Adams

Thanks, Johan.

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

UserImage.jpg
Deepak Rathore

Can we shorten our application URL in outsystems

2012-10-08 11-59-27
Guilherme Pereira
Staff

Deepak Rathore wrote:

Can we shorten our application URL in outsystems


There's no built in functionality for that. You can either create your own or use an external url shortner service.


Cheers,

Guilherme

2024-04-09 09-56-19
John.systems

Hi,


You can do it easier using the internal properties of the platform. In this link:

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Logic/Built-in_Functions/URL

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.