Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

Not saving the correct values entered in custom list form

$
0
0

Hi,

Im saving a list item within a specific folder but the expected values entered on the form not saved correctly. Below is my code.

if(sFolder!=""){
   var service=new UpdateListItems("saveItemCallback");
   var caml=service.CAMLQuery();
   var listName="Locations";
   
   
   caml.ListName.loadXML("<listName>"+listName+"</listName>");
   caml.RootFolder.loadXML("<RootFolder>"+"/site/Lists/Locations"+sFolder+"</RootFolder>");
   //alert(caml);
   service.CreateItem(caml);
  }
  else{
   alert("Target folder is required.");
   return;
  }


Viewing all articles
Browse latest Browse all 17574

Trending Articles



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