Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: Add a column to default view

Hi,

I have been trying to add a column to a list and used the below code with the help from this forum. But when the column is created it not added to the default view of the list. Can any one help me to resolve the same please.

newFields='<Fields><Method ID="1"><Field Name="Region" DisplayName="Region" Type="Lookup" List="{F3EC84C6-2317-4A8F-9BA0-2AFA0E166B49}"/></Method></Fields>';

$().SPServices({
operation: "UpdateList",
listName: "TestList",
listProperties:"",
updateFields: "",
newFields: newFields,
deleteFields: "",
listVersion: "",
async: false,
completefunc: function (xData, Status){}

});

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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