Thank You for your response.I did add additional Field Nodes and also adjusted the AddMethodNode Method.The problem is it is not giving me any error but it is not updating the list or adding the values into the list.
here is my code
// Retrieve the rows of the repeating table
XPathNavigator root = MainDataSource.CreateNavigator();
XPathNodeIterator rows = root.Select(
"/my:myFields/my:ProbIden/my:ProbIdenvalues", NamespaceManager);
// Loop through the rows of the repeating table
// and construct the CAML Batch XML
int counter = 1;
while (rows.MoveNext())
{
// Retrieve the title
string Action = rows.Current.SelectSingleNode(
"my:Action", NamespaceManager).Value;
string Responsible = rows.Current.SelectSingleNode(
"my:Responsible", NamespaceManager).Value;
string Target = rows.Current.SelectSingleNode(
"my:Target", NamespaceManager).Value;
// Add an item to the CAML Batch XML
AddMethodNode(counter, Action, Responsible, Target);
// Increment the counter
counter++;
}
// Submit the rows to the Lists web service to update the custom list
DataConnections["ProbIdenSubmit"].Execute();
private void AddMethodNode(int id, string Action, string Responsible, string Target)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.AppendFormat("<Method ID=\"{0}\" Cmd=\"New\">", id.ToString());
sb.AppendFormat("<Field Name=\"Action\">{0}</Field>", Action);
sb.AppendFormat("<Field Name=\"Responsible\">{0}</Field>", Responsible);
sb.AppendFormat("<Field Name=\"Target\">{0}</Field>", Target);
sb.AppendFormat("</Method>");
XmlDocument methodXML = new XmlDocument();
methodXML.LoadXml(sb.ToString());
XPathNavigator secDSNav = DataSources["example"].CreateNavigator();
XPathNavigator batchNav = secDSNav.SelectSingleNode("/Batch", NamespaceManager);
batchNav.AppendChild(methodXML.DocumentElement.CreateNavigator());
}
Please Advice.
Thanks In Advance
Regards