XMLCreator
MIS
Code:
//update list item
string siteUrl = [URL unfurl="true"]http://sp-app/dev;[/URL]
ClientContext clientContext = new ClientContext(siteUrl);
list oList = clientContext.Web.Lists.GetByTitle("Item Inventory");
PathNavigator root = MainDataSource.CreateNavigator();
XPathNodeIterator iter = root.Select("/my:myFields/my:group1", NamespaceManager);
while (iter.MoveNext())
{
string value = iter.Current.Value;
int id;
Int32.TryParse(value, out id);
ListItem oListItem = oList.GetItemById(id);
oListItem[
"Title"] = field1;
oListItem.Update();
I figured out what is wrong but don't know how to fix it. When I select more than one checkboxes, the xPathNodeiterator concates all the values together instead of looping through each value individually. For instance,
select check box 1
select Checkbox 2
value = 12 my goal is to have a loop
value =1 than
value = 2.
select checkbox 1
value = 1
Can somone tell me why this isnt looping thorugh each single value? and why is it appending them all into one value? this will solve the problem. thanks