Welcome to Office & 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

SharePoint Security SimplifiediDevFactory announces that SWAT 2007® is now FREE! Order Your Fundamentals CD Today!Get up to speed quickly and learn how to uncover rich information management and deployment capabilities with this free SharePoint CD. Maximize Your SharePoint Investment: Get Your Data MovingJoin us as we take a look at the complex business of securing, accessing and managing vast amounts of information in a global network and various ways to get your data moving. SharePoint Connections event returns to Las Vegas Nov 10 - 13Connections returns to Las Vegas for this exciting event where each attendee will receive SQL Server 2008 standard with 1 CAL. It is co-located with Microsoft ASP.NET, SQL Server and Windows Connections with over 250 in-depth sessions. Ease Your Scripting Pains with the Flexibility of PowerShell!Join MVP Paul Robichaux on December 11, 2008 at 11:00 AM EDT as he equips you with PowerShell basics in 3 introductory lessons, each followed by a live Q&A session—all on your own computer!