Loading...

Thursday, September 18, 2008

Databinding of controls on load of infopath forms

Hello All,
To retrieve the data from the webservice and to populate(Databind) the data on infopath form. follow the following steps
from menu of design view of infopath form
1)Tools-->DataConnection->Add connection as webservice to retrieve the data



2)Right click on textbox which is to be binded to the field from dataset
--->Insert formula-->Insert field/group

from Data source dropdown select the name of the webservice which acts like the secondary datasource(Webservice which returns Dataset and which is hosted as virtual directory in the same webapplication)



3) bind the queryfield in dataset if the textbox acts like parameter
bind the datafield in dataset if it acts like output from the webservice

No comments: