Subscribe: SharePoint SharePoint SharePoint
Showing posts with label sharepoint -2147467259. Show all posts
Showing posts with label sharepoint -2147467259. Show all posts

Saturday, June 22, 2013

Internal Names in site columns in SharePoint

While creating a custom list in SharePoint 2010 or 2013, we usually retain the "Title" column while create all the other columns manually. Now while programmatically using the column we specify "Tilte" as column name even if we have changed the name to something else.

e.g. if we have changed the "Tilte" column name to "EmpName" , then in ECMA script we will use :

listItem.set_item('Title', 'My New Item!');

"Title" is  a site column which has been predefined in the site. Similarly there are a large number of columns in site.

Each site column has two attributes i.e "Name" and "Display Name". "Name" refers to the internal name or the field while "Display Name"  is the name which is displayed in the UI. Now if the "Display Name"  is "Employee Name" then the "Name"  is mapped as "Employee_x0020_ Name"  because space is interpreted as '_x0020' .