Insert row to table in non-Current view without cloning Row - InfoPath Dev
in

InfoPath Dev

Insert row to table in non-Current view without cloning Row

Last post 10-28-2011 08:15 AM by bblanke. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 10-28-2011 08:15 AM

    • bblanke
    • Top 500 Contributor
      Male
    • Joined on 11-12-2009
    • Milwaukee, WI
    • Posts 32

    Insert row to table in non-Current view without cloning Row

    I'm having the issue that when I clone a row and insert it, it is populated with the cloned row data.

    This works if it were in the same view:
    this.CurrentView.ExecuteAction(ActionType.XCollectionInsert, "group4_50");


    This code works, but then I need to blank out fields:
    XPathNavigator group = MainDataSource.CreateNavigator().SelectSingleNode("/my:myFields/my:FrontendProcesses/my:FrontendFiles[" + where + "]", NamespaceManager);
    XPathNavigator NewRow = group.Clone();
    for (int h = 0; h
    if (where == "last()")
    NewRow.InsertAfter(group);
    else
    NewRow.InsertBefore(group);


    Please let me know if you have any suggestions to how I can add a row in a different view similar to how the first set of code above works.

    Thank you
    Brandon Blanke
    Technical Analyst / Quad Graphics
Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.