Repeating Table Node location Varible - InfoPath Dev
in

InfoPath Dev

Repeating Table Node location Varible

Last post 01-08-2013 07:56 AM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-03-2013 11:18 AM

    Repeating Table Node location Varible

    I am able to get the repeating table Varible i need with the following code. I ll add a null handler just in case later

    XPathNavigator site = e.Site;
                site
    .MoveToParent();
               
    string rowNumber = site.SelectSingleNode("my:Targeting_Iteration_Recurrence_Requirement_Count", NamespaceManager).Value;
               
    int Rowid = Convert.ToInt32(rowNumber); 

    I am stuck on how to use it in the XPAth String.

    my:Targeting_REQ[Rowid]
    in debug mode I can just put the numbers in the [ ]  and it works perfectly 
    my:Targeting_REQ[1]
     
    Here is the fill Lines of the the get value. 
     
    "/my:myFields/my:Section_D_Target_Pop_Req/my:Sub-Section_D6_Output_File_Requirements/my:Preset_Frequency_GRP/my:Recurrence_Frequency/my:Preset_Frequency/my:Targeting_REQ[Rowid]/my:Targeting_Iteration_Recurrence_Additional_File_Layout_Fields"
    Any help would be appricated 


     


     

     

  • 01-08-2013 07:56 AM In reply to

    Re: Repeating Table Node location Varible

    I'd think in your code, you'd use the Rowid variable like this:

    "/my:myFields/my:Section_D_Target_Pop_Req/my:Sub-Section_D6_Output_File_Requirements/my:Preset_Frequency_GRP/my:Recurrence_Frequency/my:Preset_Frequency/my:Targeting_REQ[" + RowId + "]/my:Targeting_Iteration_Recurrence_Additional_File_Layout_Fields"

    Hilary Stoupa

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