help with Infopath combobox - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

help with Infopath combobox

Last post 08-30-2006 01:28 PM by Greg Collins. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-30-2006 07:10 AM

    help with Infopath combobox

    Hi

    i need yuor help, Im trying to add items to a combobox,I am programing that with C# I can only add the last record of my query, I am using infopath 2007

    this is the code:

    string xpath = "/my:myFields/my:field2";
    XPathNavigator field2 = MainDataSource.CreateNavigator().SelectSingleNode(xpath, NamespaceManager);
    y = 0;
    for (x = 1; x <= 5; x++)

    {
    y=y+1;
    field2.SetValue("New Value" + y); // Write
    }
  • 08-30-2006 01:28 PM In reply to

    Re: help with Infopath combobox

    This won't work as you don't set values directly to the field the control is bound to unless you are changing the selected value. There is no "Control" to select and modify. You need to have a repeating list somewhere (secondary data source is fine) which you then add XML Nodes to with your values. Set your drop-down list box control to populate from this list.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.