Solved

Joined dataview list count based on filter - sharepoint 2010

Posted on 2013-02-04
3
561 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
ID: 38852350
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:
Ingeborg Hawighorst earned 500 total points
ID: 38852470
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
ID: 38852486
Wow!

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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
deleted few lines of my note book in sharepoint note book 9 30
SharePoint Online/365 with SAP API 2 96
SharePoint display modal blank 2 59
Sharepoint Online 5 45
The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
I recently came across an issue with a MOSS 2007 deployment where access into some sub-sites were denied, even for the MOSS farm administrators. A bit of background to the setup of this MOSS farm; this was a three server setup, consisting of a fr…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

808 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