Clear Secondary DataSource - InfoPath Dev
in

InfoPath Dev

Clear Secondary DataSource

Last post 01-04-2007 04:10 PM by Greg Collins. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-04-2007 12:41 AM

    Clear Secondary DataSource

    How can I clear my secondary datasource in C#?
    I have a secondary datasource named "SeconaryDS".
    This is xml file, wich I used to create this data source.
    // ----
    <Docs>
    <Param DocId="" DocNumber="" DocRegDate=""/>
    <Param DocId="" DocNumber="" DocRegDate=""/>
    </Docs>
    // ----
    Then I created list control wich bound to my "SeconaryDS".
    When I open my form, I see in this list control two empty records...
    And more: I want to clear this list dinamically, for example by pressing the button...
    Best regards,
    Alexander Ekzarov
    Kyiv, Ukraine
    silverlightnet.blogspot.com
  • 01-04-2007 01:55 AM In reply to

    • uma
    • Top 500 Contributor
    • Joined on 12-23-2005
    • Posts 35

    Re: Clear Secondary DataSource

    Uncheck the option "automatically retrive the data when form is opened" while taking the secondary data connection.

    Hope it'll help you to solve the problem.
  • 01-04-2007 04:10 PM In reply to

    Re: Clear Secondary DataSource

    You can also use selectNodes() and removeChild() to get rid of the two Param nodes.
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.