Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Creating a CustomDefinition XSL

$
0
0

HI,

I am trying to create a custom "Edit" link in custom list using the custom definitions.

In the list columns, I have created a column as below:

<Field Type="Computed" DisplayName="Edit Item" ID="GUID" ReadOnly="TRUE"  StaticName="CustomTestFormLink" Name="CustomTestFormLink" />

I have added fldtypes_TestRequestCustomDefinitions.xsl, which has the below XSL data:

<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal"><xsl:template match="FieldRef[@Name='CustomTestFormLink']" mode="Computed_body"><xsl:param name="thisNode" select="."/><a href="/sites/Test.aspx?ItemGuid={$thisNode/@CustomItemGuid}">Edit</a></xsl:template></xsl:stylesheet>

The above code works well in SharePoint 2010 and the Edit link is shown, but the Edit link is not getting created in SharePoint 2013 custom list.

How to fix this?

Thanks



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>