Tag Info

New answers tagged

0

You can also create a SiteColumn with a different name first and then change the displayname with powershell: $web = get-spweb http://yourweb $web.Fields["InitialName"].Title = "NewName" $web.Fields["InitialName"].Update() In this case you don't need to deploy a solution.


0

You can create site columns using c# with same display name and distinct internal name. The important thing here is internal name. See this code: string internalName = site.RootWeb.Fields.Add("XXX", SPFieldType.DateTime, true); SPFieldDateTime newField = (SPFieldDateTime)site.RootWeb.Fields.GetFieldByInternalName(internalName); newField.Title = "existing ...


1

Below is your answer of your questions so how i need to assign their IDs ? can i enter whatever numbers i want ? Answer: You can assign any IDs to field but note that you should not use same id for two fields. Generally we should use "Create GUID" tool of Visual Studio (Tools => Create GUID => Select Registory Format) to generate random GUID second ...


1

you an still create them on site-level using gui. However, initially they must have uniqe titles (because in the background the columns are created, and the internal names are set to the title you gave. Internal names cannot be changed and have to be unique.) After creation, you should be able to change the title in the gui and use them in the lists. ...


1

One feature containing all these three types i.e. columns, content type and list instance; should be enough.



Top 50 recent answers are included