I have a web part page in a document library (http://mysitecoll.com/subsite1/Cust001/cust001.aspx)
- I have added web part to display list from the top level.
- It works and displays all the items in a list.
- However, I only need to display items where customerNumber = documentLibrary so in this example, it will be (customer number = cust001) or whatever the the current document library user is in.
Hope it makes sense.
The list should only display items where customer number = current document library name
=================== additional details added =====================
Lori, Here are the details
Top site has a list "Customer List" containing customer's Name, address, telephone, etc.
Every customers has it's own document library under http://url/siteCollection/CustomerWeb/
I need to add a web part pages for each of these document libraries (programatically) (document library for customer 222 looks like this http://url/siteColl/custWeb/customer222)
The web part page that I need to add to document library will have 2 web parts. a. First webpart displays the list from the top site (customer list) but I need to filter it so only customer in question is showing. for example, I am in Ann's Fashion document library and customer number of this client is 222 so their document library name is "Customer222". Column in Customer List "customer number" should be same as document library title or name as thats the only match.
I hope it's clear now.