How to retrieve check box values dynamically - InfoPath Dev
in

InfoPath Dev

How to retrieve check box values dynamically

Last post 01-21-2007 10:06 PM by Shiva. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-21-2007 09:21 PM

    • kamlesh
    • Not Ranked
    • Joined on 12-22-2006
    • India
    • Posts 10

    How to retrieve check box values dynamically

    Hi,

    I have a repeating section containing a checkbox field. I have bound the checkbox to a field (field1) in the main datasource. I have a secondary datasource from which i am fetching the values and adding it to the main datasource field(field1) programatically.

    Depending on the number of records in the secondary data source i am able to generate that number of checkboxes in the repeating table dynamically.

    Now my concern is how to retrieve that checkbox value at runtime so that i can filter and generate another set of values.

    If anyone knows how to do it please post u r reply as early as possible.

    Regards,
    kamlesh
  • 01-21-2007 10:06 PM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: How to retrieve check box values dynamically

    Hi Kamlesh,

    When do you want to retrieve the checkbox value? If you want that checkbox value when you click on button then you need to write the below the code in onClick event.

    {
    //Get the secondary DOM
    var secondaryDOM = XDocument.GetDOM("<Secondary DOM Connection Name>");
    //Set the property of namespace
    secondaryDOM.setProperty("SelectionNamespaces", "<Name space of your secondary DOM>");
    //Get the node value
    var checkBoxNodeValue = secondaryDOM.selectSingleNode("<Your Check box Node path>").text;
    }
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.