Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: Is it possible to use a variable to store the value pairs for a SPServices.UpdateListItems call?

$
0
0
joshmccarty wrote:
Hi fairfieldbusserv,

The valuepairs expects an actual JavaScript array, not a string that represents one. If you remove the single quotes around the variable's value (and the stray comma at the end) it should work.
$valuePairStr = [["JobTitleLookUp",$jobTitleLookUp.val()],["Description_x0020_of_x0020_Dutie", $descDuties.val()],["Pay_x0020_Basis", $payBasis.val()],["Contracted_x0020_Hours",$contHours.val()],["Advertisement_x0020_Date",$adDateformatted],["Application_x0020_Close_x0020_Da",$appCloseDateformatted]];
Thanks @joshmccarty,

It's those simple things that are the most frustrating; all now working fine.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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