New answers tagged

1

1) "GetDataTable" returns a datatable in C # while GetItems returns a SPListItemCollection. One of the main differences is that "GetDataTable" converts objects in columns of a table and then you can not process them as objects of SharePoint. An example of this are the "lookup" fields. You'll only get the text in the field and not the ID. If for some reason ...


1

I don't think there is something OOB for multiple columns. I would suggest to use JavaScript and override PreSaveAction to prevent the save if the combination exists. Something like that : function PreSaveAction(){ //get field 1 value //get field 2 value //perform a query to check if there are items that matches criteria if(noresults) { ...



Top 50 recent answers are included