jeudi 8 janvier 2015

Repeating table creates a duplicate entry of the last node into the first position, Infopath



The problem I'm having is that the last node in a repeating table is duplicated into the first position of said table eg:



  • 3

  • 1

  • 2

  • 3


I've got a statement that deletes this node:



//OrganismResults is the repeating group
XPathNavigator xpDuplicateOrganismNode = xpNav.SelectSingleNode("
/my:myFields/my:OrganismResultData/my:OrganismResults[1]", NamespaceManager);

xpDuplicateOrganismNode.DeleteSelf();


However, I have a repeating table within a repeating table that is creating a lot of duplicate data. Is there an easy way to prevent this from being created and therefore deleted?








0 commentaires:

Enregistrer un commentaire