Hi!
I know it's been a while since I asked the question. I have the following event load for copying data to a repeating table but I'm getting a null value at the bolded line. Is my syntax correct?
It found the webservice but I get a null reference error.
public void LoadPartData_Clicked(object sender, ClickedEventArgs e)
{
XPathNavigator secPartDSNav = DataSources["GetPartsDetailFromPTNum"].CreateNavigator();
//Retrieve the rows of the secondary data source
XPathNodeIterator rows = secPartDSNav.Select(
"/dfs:myFields/dfs:dataFields/tns:GetPartsDetailFromPTNumResponse/tns:GetPartsDetailFromPTNumResult/q1:Parts", NamespaceManager);
//Loop through the rows of the secondary data source and fill the repeating table
while (rows.MoveNext())
{
string ID = rows.Current.SelectSingleNode(
"@q1:ID", NamespaceManager).Value;
string DESCRIPTION = rows.Current.SelectSingleNode(
"@q1:DESCRIPTION", NamespaceManager).Value;
string DRAWING_ID = rows.Current.SelectSingleNode(
"@q1:DRAWING_ID", NamespaceManager).Value;
string DRAWING_REV_NO = rows.Current.SelectSingleNode(
"@q1:DRAWING_REV_NO", NamespaceManager).Value;
//Add the item to the repeating table
AddItem(ID, DESCRIPTION, DRAWING_ID, DRAWING_REV_NO);
}
//Remove the first empty item from the repeating table
DeleteFirstEmptyItem();
}