Prepopulate Infopath Repeating Table - InfoPath Dev
in

InfoPath Dev

Prepopulate Infopath Repeating Table

Last post 12-17-2010 12:37 PM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-17-2010 08:31 AM

    Prepopulate Infopath Repeating Table

    In my application I have info path repeating Table which has 4 columns.First user insert a new row to the repeating table.In one column I have a button which open user's OUTLOOK address book. From that user is selecting the name one  of the user. I need to populate the email address and the phone number of the selected user to other columns of the repeating Table.

     

    from my method I am returning the phone,name and the Email. I need a way to assign them to the newly added row in the repeating Table.


    Filed under:
  • 12-17-2010 12:37 PM In reply to

    Re: Prepopulate Infopath Repeating Table

    Hey -- can't see your screenshot. Can you try adding it under the Options tab of the post?

    Since I'm guessing you are already using code, and it sounds like your button is inside your repeating table (and I'm guessing your code is on your button click -- I'm really guessing quite a bit here), your should be able to use

    e.Source.SelectSingleNode("relativeXPathToYourField", NamespaceManager);

    To select the node. Needless to say, you need to replace "relativeXPathToYourField" with the actual relative XPath to your field (that is, just the path from the group down, since the button is already in the group)...

    Hilary Stoupa

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