UpdatelistItems - numbers Pair

Sep 16, 2011 at 3:56 PM

 Hi Marc Good Morning,

Need your help to resolve UpdateListItems number value pair issue.I am updating a list whcih has a number(Show as Prercentage) column with the below Value pairs.

If I give  12 , the new Item is creating with the value 1,200%. If I put alerts in script is e showing correct value.

But after creating a list item it showing wrong results.

var pC=parseInt(percentComplete);
CreateNewItem(pC);

function CreateNewItem(pC)

  $().SPServices({
        operation: "UpdateListItems",
        async: false,
        webURL: "/sites/stage/ChildSite/",
        batchCmd: "New",
        listName: "Customer",
        valuepairs: [["PercentComplete",pC]],      
completefunc: function(xData, Status) {
   var out = $().SPServices.SPDebugXMLHttpResult({
    node: xData.responseXML


   });


Thank you for your all time support....

Coordinator
Sep 16, 2011 at 6:09 PM

So why don't you pass in .12? That's just the way that percentage columns work, right?

M.