Solved

Joined dataview list count based on filter - sharepoint 2010

Posted on 2013-02-04
3
535 Views
Last Modified: 2013-02-06
I have a DataView Webpart that displays a set of list items (articles). In each item(article) being displayed, I want to show a counter of items from another list that are linked to the unique ID of the first list. My second list consists of comments. Essentially I want to have a comment counter per article.

Thank you in advance for your answers
0
Comment
Question by:bsmcy
  • 2
3 Comments
 
LVL 16

Expert Comment

by:quihong
Comment Utility
One possible solution would be to have a Workflow on your Comments list, update a counter on your Article list whenever a comment is made.
0
 
LVL 50

Accepted Solution

by:
teylyn earned 500 total points
Comment Utility
Hello,

you need to add a column to your main list, which needs to be a Lookup type. Point it to your Comments list and in the column selection drop-down choose the option with "Count related" in brackets. Then build that column into your DVWP.

cheers, teylyn
0
 
LVL 16

Expert Comment

by:quihong
Comment Utility
Wow!

Give it up to Teylyn!!! I didn't even know that option existed!
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now