What does the Alias attribute for FieldRef do?
MSDN is less descriptive:
http://msdn.microsoft.com/en-us/library/ms442728.aspx
The alias is additional text.
In a custom request, I was trying to rename the field name that appears in the header of the custom view. So I changed the ViewFields section in the schema.xml file like this:
<ViewFields>
<FieldRef Name="DocIcon" Alias="Form" DisplayName="Form">
</FieldRef>
<FieldRef Name="Employee" Alias="Name" DisplayName="Name">
</FieldRef>
<FieldRef Name="Modified">
</FieldRef>
<FieldRef Name="Editor">
</FieldRef>
</ViewFields>
I redid my solution and ... no changes. The original DisplayNames (Type and Employee in this case) were still shown.
But now I'm curious. What should be the Alias attribute?
+1
source to share
1 answer
From what I understand, the Alias field property is only used in adapters to find data, that is, in the Microsoft.SharePoint.Dsp namespace.
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.dsp.field.alias.aspx
.b
0
source to share