Multiple listing controls with a single datasource - InfoPath
Written By: Abin Jaik Antony -- 7/29/2010 --
join --
contribute --
(0) comments --
Rating:
   
Rate
Categories: InfoPath, MOSS 2007, WSS3
< Prev -
1 |
2 |
- Next >
Problem
The scope of this article is to explain how to populate multiple
InfoPath listing
controls like a Drop-Down List and a List Box with only one datasource. The scenario can
be like this:
Assume we have 2 to 3 SharePoint lists with data on our SharePoint
site and we have some listing controls on our InfoPath form. The aim is to populate
all these listing controls using only a single InfoPath datasource.
Solution
By default we do have four "Receive Data" options for
InfoPath
datasource like an XML document, DataBase,Web Service, and SharePoint Lists & Libraries.
As mentioned in the "Problem", our aim is to populate data from different
SharePoint lists to different listing controls on an InfoPath form. Usually,
everyone will create different datasources from SharePoint lists for each
listing control, but we can utilize the "Web service" option for populating many
listing controls with a single datasource.
Prior to the development of this sample, we have to create 2 SharePoint lists inside a
SharePoint Site. Name one SharePoint list "Names" and the other "Products".
Fill these lists with some sample data.
After populating these lists with data we can begin development.
First, we will create a webservice with a web method returning a dataset and deploy this to a SharePoint site.
For SharePoint
component development I use WSPBuilder to a large extent. You can download
it from this location WSPBuilder. It’s
a very easy and handy
tool for the SharePoint development.
Follow the below steps to develop a webservice that's going to deploy
to the SharePoint site.
< Prev -
1 |
2 |
- Next >
|