Guilherme Pereira wrote:
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.
"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.
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.
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.
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.
Thanks, Johan.
This worked. Although it did generate a warning that I should use EncodeHTML() to address security concerns.
Can we shorten our application URL in outsystems
Deepak Rathore wrote:
There's no built in functionality for that. You can either create your own or use an external url shortner service.
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