SharePoint BCS creates a hyperlink column

I am using a .NET connector to connect to an SQL database. One of the values ​​is a URL. Now I need to display this as a url.

Any ideas on how to solve this?

+3
source share
1 answer

In Sharepoint Designer, you can edit the reading list and go to the field, so that, for example, if you have a field with the name URL, display it as a shortcut so that it looks like

<asp:Label runat="server" id="ff1{$ID}" text="{$thisNode/@URL}" />

Then all you have to do is add the β€œA href” tag to it, which will display as a URL such as

<a href="{$thisNode/@URL}"><asp:Label runat="server" id="ff1{$ID}" text="{$thisNode/@URL}" /></a>

enter image description here

+5
source

All Articles