Updating a datarow


23-Mar-2015 07:24

updating a datarow-55

gay dating sites like okcupid

Get List($lst Url); return $lst Obj } $sp List = Get-SPList -web Url " Site" -lst Url " Site/Lists/Emp Info" $sp Query = new-object Microsoft. SPQuery $caml Query = " Copy items from one list in Share Point 2010 to another list can be done by Add Item method provided by the SPList Item class.We have to read the field values from an existing list item and create a new list item in another list based on these values.Following code delete the item whose Id is 99 function Get-SPList($web Url, $lst Url) { $web Obj = Get-SPWeb -identity $web Url $lst Obj = $web Obj.Get List($lst Url); return $lst Obj } $sp List = Get-SPList -web Url " Site" -lst Url " Site/Lists/Emp Info" $sp List Item = $sp List. Delete() Better approach for removing many items from a list is to use the Process Batch Data method provided by the SPWeb class.Get Item By Id(99) $sp List Item["Department"] = "New Department" $sp List Item.Update() The above snippet updates the list item where id is 99 Get Items method can be used to get all the results are subset of results using CAML query and then update the result set.

function Get-SPList($web Url, $lst Url) { $web Obj = Get-SPWeb -identity $web Url $lst Obj = $web Obj.Get List($lst Url); return $lst Obj } $sp List = Get-SPList -web Url " Site" -lst Url " Site/Lists/Emp Info" $sp List Item = $sp List.



That’s because it’s designed specifically for the hardware it runs on — and vice versa.… continue reading »


Read more