1

Resolved

Create/Update not handled properly.

description

URL's and People pickers need to be handled much like the Lookup fields. Will need to investigate a bit more into this.

comments

iOnline247 wrote Aug 21, 2012 at 6:14 PM

Test 18 demonstrates how to create/update a URL field:

/***************************************
Test 18 ~ createListItems - Create folder, modify leaf name, and metadata.
***************************************/
    spUtils.createListItems({
        listName : "Project Tasks",
        updates: [
            {
                folderUrl: "/SPDev/Lists/ProjectTasks",
                folderName: "folder1",
                multiLinesHTML: "Saying something <b>important</b> here makes you feel <i>important!</i>", //Rich Text
                //personGroup: "dev\administrator",
                chkBox: false,
                ol_EventAddress: "Event addy",
                ContentTypeId : "0x012000C77A544EBDFBD2419EE2F54FDAE1A9A200936BBDFC53359E4681BF0F0DC7DD3AE7", //FolderSorter CT Name
                URL: "http://google.com, Google"
            }
        ],
        success: function() { debugger; }
    });


Test 26 demonstrates how to create/update a people picker field:

/***************************************
Test 26 ~ updateListItems - Updates item's lookup and people picker column
***************************************/
    spUtils.updateListItems({
        listName : "Project Tasks",
        updates : {
            111 : { // the key is the item ID
                valuePairs : [ ["RelatedProject{L}", spUtils.isoDate()], [ "AssignedTo{P}", 1] ]
            }
        },
        success : function() { debugger; }
    });

wrote Aug 21, 2012 at 6:15 PM

wrote Feb 12, 2013 at 9:16 PM

wrote May 14, 2013 at 10:36 PM

wrote May 14, 2013 at 10:36 PM

wrote Jun 11, 2013 at 1:54 AM