I developing some infopath Application.
I have to populate the Values to DropDownList Dynamically...thats means by coding...By coding I have to connect the Database and retrieve the Value for the DropDownList and populates.
I am get the DropDownList from the Design mode like this,
IXMLDOMNode ddlCustType = thisXDocument.DOM.selectSingleNode("my:myFields/my:ddlCustomerType"); |
After that I dont know the next steps.....
for test I did like that,
ddlCustType.text = "hello world";
Its not taking....
AnyOne can please help me.
Thanks in Advance.
Vasanth.

How to Populate the value Dynamically in the DropDownList.
macv3x
Here is the Code...Which is Populate the value on Form Load fetch from the WebService.
WebServiceAdapterObject adapter =
null;adapter = (WebServiceAdapterObject) thisXDocument.DataObjects["PopulateOU"].QueryAdapter;
adapter.Query();
When you are set the WebService to the DropDownList....Unchecked the Automatically retrieve CheckBox. Its only for the Webservice.
But It's still not satisfied my need...I cant mention the Particular DropDownList.
Hope It will triggers you.
Vasanth.