K
Kalpana
Hi All
I have used this code in Infopath 2003 and it would work ok but when i use
the same in Infopath 2007 and if it doesn't retrieve a result it throws an
error - "Object reference not set"
If the currentuser exists in the list, it works fine.
XPathNavigator xnBS = this.DataSources["Billing
Specialist"].CreateNavigator();
string myRole = string.Empty;
myRole =
xnBS.SelectSingleNode("/dfs:myFields/dfs:dataFields/dfs:Billing_Specialist/@BillingSpecialistEmail[../@Billing_Specialist_UserID
= '" + currentUser + "']", this.NamespaceManager).Value;
Any ideas?
Thanks for you help
I have used this code in Infopath 2003 and it would work ok but when i use
the same in Infopath 2007 and if it doesn't retrieve a result it throws an
error - "Object reference not set"
If the currentuser exists in the list, it works fine.
XPathNavigator xnBS = this.DataSources["Billing
Specialist"].CreateNavigator();
string myRole = string.Empty;
myRole =
xnBS.SelectSingleNode("/dfs:myFields/dfs:dataFields/dfs:Billing_Specialist/@BillingSpecialistEmail[../@Billing_Specialist_UserID
= '" + currentUser + "']", this.NamespaceManager).Value;
Any ideas?
Thanks for you help