Please read part one before reading this - Working with Person or Group and DateTime using Jquery/ COM – Part 1.
List data will update. That’s it.
In this post I will explain about update operation for task
added using custom form in previous post.
I am using same form and same function for update operation
.I will build url for update operation as below:
/MyCustomPage.aspx?RID=[Task
ID value]
I have added code retrieve data and set on respective
controls in document.Ready event as below
We have to delay code execution in document.Ready until
SP.Js is loaded else client context will be null.
For setting People picker value we need extract User/Group
display using code and pass that to SPFindPeoplePicker as in code.
valueToSet – user display name
checkNames – setting true will trigger event for check name
image and will validate name.
All values will be set in same my custom form.
Now update value in any field and submit data swill call
same method for insert with small modification
As below:
List data will update. That’s it.
No comments:
Post a Comment