Solved

Joined dataview list count based on filter - sharepoint 2010

Posted on 2013-02-04
3
570 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

756 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