repeating field-how to add a value? - InfoPath Dev
in

InfoPath Dev

repeating field-how to add a value?

Last post 12-29-2005 07:16 PM by Matt Faus. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 12-29-2005 04:31 AM

    • mar
    • Top 500 Contributor
    • Joined on 09-04-2005
    • Poland
    • Posts 37

    repeating field-how to add a value?

    When im using IXMLDOMNode blabla=thisXDocument.dom.selectsinglenode("[...]/my:repeatingfield");
    and then im trying to add a value blabla.text="xxx"; nothing happens on my form...It is working on non-repeating field...How should i do that?
  • 12-29-2005 05:31 AM In reply to

    • mar
    • Top 500 Contributor
    • Joined on 09-04-2005
    • Poland
    • Posts 37

    Re: repeating field-how to add a value?

    Wrong, this is bulleted list...Sorry, but my problem still exist, i can't add anything by c#.
  • 12-29-2005 07:16 PM In reply to

    Re: repeating field-how to add a value?

    You'll have to do something like this:


    IXMLDOMNode newField = blabla.cloneNode( false );
    newField.text = "xxx";

    IXMLDOMNode groupNode = thisXDocument.dom.selectSingleNode( "XPath/to/containingGroupNode" );
    groupeNode.appendChild( newField );


    ---------------
    Matt Faus
    InfoPath Dev Texas
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.