listBox and its values in repeating table fields - InfoPath Dev
in

InfoPath Dev

listBox and its values in repeating table fields

Last post 12-14-2005 01:19 AM by mar. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-13-2005 11:06 AM

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

    listBox and its values in repeating table fields

    Hello,
    i have a listbox(with values, for ex.{1,2,3,4}).
    By this code im adding a new row in my table:
    ---------
    IXMLDOMNode row = thisXDocument.DOM.selectSingleNode(something);
    IXMLDOMNode lb = thisXDocument.DOM.selectSingleNode(mylistbox);
    row=row.cloneNode(true);
    row.selectSingleNode("my:field").text=lb.text;
    IXMLDOMNode table=thisXDocument.DOM.selectSingleNode(mysomething);
    table.appendChild(row);
    ---------
    And ok, i have a new row, but...always with value 1 from my listbox.Doesnt matter which value i will choose.
    So i added OnAfterChange for my listbox, and its putting my choosen value to the field in table, but after adding a new row, infopath adds a row with 1 again....
    How can i force him to remember my values in row correctly, and what im doing wrong?
    help...
  • 12-14-2005 01:19 AM In reply to

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

    Re: listBox and its values in repeating table fields

    Ive solved it.Just simple mistake in building my form.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.