Please help me about inserting new row in repeating table while submission. - InfoPath Dev
in

InfoPath Dev

Please help me about inserting new row in repeating table while submission.

Last post 10-03-2007 10:22 AM by Stephanie Cantwell. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-03-2007 05:33 AM

    Please help me about inserting new row in repeating table while submission.

    I want to know solution about submission. I want to insert new row into repeating table when I push submit button.

    I know only that when I submit form, I can set "rule" for set value to specific field. But I don't know about insert new row and then set value to new inserted row. 

    How should I do?

    Thank you very much.

    インフォパス ● デべロッパー
  • 10-03-2007 10:22 AM In reply to

    Re: Please help me about inserting new row in repeating table while submission.

    Hi,

    I found this code snippet to insert a node when click the button (for instance Submit button) for IP 2007:

    Please try the following codes in InfoPath 2007:
    public void CTRL6_5_Clicked(object sender, ClickedEventArgs e)
    {
    // Write your code here.
    XPathNavigator ContextNode =
    this.MainDataSource.CreateNavigator().SelectSingleNode("/my:myFields/my:group1/my:group2",
    NamespaceManager);
    this.CurrentView.SelectNodes(ContextNode);
    this.CurrentView.ExecuteAction(ActionType.XCollectionInsert,
    "group2_1");
    }

    I will see if I can find out a way to do it by rule.

    Stephanie

    Stephanie

    Stephanie Cantwell / Test Manager
    Qdabra® Software / Streamline data gathering to turn process into knowledge

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