Contact selector inside repeating table infopath 2007 - InfoPath Dev
in

InfoPath Dev

Contact selector inside repeating table infopath 2007

Last post 08-09-2012 05:46 AM by svhanda. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 08-09-2012 05:46 AM

    Contact selector inside repeating table infopath 2007

    Dear All,

    I have repeating table and i added contact selector inside it, now i want to access the accountid please advise how can i?

    In repeating table there will multiple rows and each row have different user selected using contact selector.

     

    My code is :

    XPathNavigator AnalysisSubmitted = this.MainDataSource.CreateNavigator();

    //for contact selector

    XPathNodeIterator AnalysisRowsContactSel = AnalysisSubmitted.Select("/my:myFields/my:group10/my:AnalysisDetails/my:gpSelectorAnalysis/my:gpContactSelector/my:Person", NamespaceManager);

    if(AnalysisRows.Count > 0)

    {

    //foreach (XPathNavigator Node in AnalysisRows)

     

    while(AnalysisRows.MoveNext())

    {

    string AnalysisAccountID = AnalysisRowsContactSel.Current.SelectSingleNode("my:AccountId", NamespaceManager).Value;

    string AnalysisAccName = AnalysisRowsContactSel.Current.SelectSingleNode("my:DisplayName", NamespaceManager).Value;

     }

    Above code is giving me error..please advise how to resolve this..

     

     

Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.