Click here to Skip to main content
15,889,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have created a SharePoint site and within it there is an InfoPath form that has several
fields. Within that form there are 4 text boxes that retrieve data from the Active Directory of
Windows Server 2008 R2.

I have created a data connection within that InforPath form to retrieve data like 'First
Name', 'Last Name', 'Job Title' & 'Department. Now I have created a SharePoint list that used to
store 'First Name', 'Last Name', 'Annual Leaves', 'Vocational Leaves' & 'Other Leaves'.

It means that there are 2 data connections within the MS InfoPath form one for Active Directory
data retrieval & one for the SharePoint list data retrieval.

All I want is now to view the contents in the InfoPath form as the following.

The Active Directory should retrieve the First Name, Last Name, Title, & Department.
The SharePoint list should view the Annual Leaves, Vocational Leaves & Other leaves
corresponding to the First Name & Last Name of the Active Directory was supplied.

All I want is to link the data from 2 data connections in the same InfoPath form. I can't figure
out the algorithm or any other method to solve that problem.

Can someone please give me some tip about this matter.

Thank You,
Chiranthaka
Posted

1 solution

So you want to send parameters to SharePoint list as first name and last name and retrieve the corresponding annual leaves and other values. You can make use of filters within the data connection property. In the back end it will retrieve all the list values but on the form it will show the result based on the filter you have applied.

More details on my blog post :
Using filters within InfoPath Data Connection
 
Share this answer
 
v2
Comments
Chiranthaka Sampath 30-Jul-13 23:55pm    
I know about that pal but this is the matter how I am able to set these filters? I mean the solution to the above mentioned using the filters?
Chiranthaka Sampath 31-Jul-13 0:34am    
Pal all I need an filtering algorithm I can't figure it out!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900