Welcome to Office and SharePoint Pro Sign in | Join | Help
in Search

SUBSCRIBE to Windows IT Pro Magazine & SAVE 30%      FREE Email Newsletters Vista UPDATE, Windows IT Pro UPDATE & More

Joining two sharepoint lists

Last post 12-29-2007, 11:44 AM by kanchanecone. 1 replies.
Sort Posts: Previous Next
  •  12-05-2007, 3:29 AM 28986

    Joining two sharepoint lists

    Prepared By Rajesh Pillai, Bangalore India.----------------------------------------------------------------------------Joints between SharePoint Lists: As a first step let us create two lists in MOSSa) Customers (Title)
    b) Orders (Title, and a lookup value called 'Customer' - which, you guessed it right, is a lookup on the Customer.Title SPColumn).
    Here are my lists – Customer listOrders List  Cool. Now Open the site in SharePoint Designer, and add a new ASPX - Untitled_1.aspx (that's the default name). Give any name.1. In SPD, go to Data View --> Manage Data Sources2. In the window that appears on the right, create a new Linked source as shown below: 3.Click on "Configure Linked Source" and go ahead and add both "Customers" and "Orders" and click "NEXT"4. Make sure that you choose to Join the contents of the two data sources as shown below - 5. Give it a meaningful name such as "My Customer-Orders" in the "General" tab.6. Superb, now while in the <form> tag in your ASPX, click on Data View --> Insert Data View, your UI should now say "Current Data Source – My Customer - Orders" - "next insert fields to create a view".7. Now from the "Data Source Details" pane, select Customers.Title. and choose - Insert Selected Field as "Multiple Item View" as shown below: 8. Now your aspx page looks like this 9. Now place the cursor in front a particular value - Say "Lee Beyer", and now in the Data Source Details Pane, Select Orders --> Title, and choose to insert as "Joined SubView" like shown below:  10 .Do the join as followed  11. That’s all. Format the page as you like my final page looks like this  Thanks,Rajesh Pillai
    Rajesh Pillai
  •  12-29-2007, 11:44 AM 29100 in reply to 28986

    Re: Joining two sharepoint lists

    Can you please eloborate how to join sharepoint list, i am trying to build a list database for my organisation
View as RSS news feed in XML
SPONSORED LINKS FEATURED LINKS

Order Your Fundamentals CD Today!Get up to speed quickly and learn how to uncover rich information management capabilities with this free SharePoint CD. IT ConnectionsDive into the new Microsoft platforms and products you implement and support with the experts from Microsoft, TechNet Magazine, Windows ITPro and industry gurus. There are 70+ sessions and interactive panels with networking opportunities. Attention User Groups & User Group Leaders...Announcing the eNews Generator—a FREE HTML e-newsletter builder for user group leaders. Build your HTML and text e-newsletters in minutes. And add Windows IT Pro & SQL Server Mag articles alongside your own message!. Get Specialized SharePoint Training!SharePoint MVPs Dan Holme, Michael Noel, and Andrew Connell share their perspective and expertise in these exclusive eLearning seminars. One Event for developers and one for IT pros. Choose the one that fits your needs! Get SQL Server 2008 at SharePoint ConnectionsDon’t miss SharePoint Connections, the premier event for Microsoft IT Professionals, in Las Vegas, November 10-13. Every attendee will receive a copy of SQL Server 2008 Standard Edition with one CAL.