How can I display results filtered by creator?
I am using SharePoint 2010 and am adding a data view web part to the DispForm page for a custom list. I want to be able开发者_运维知识库 to display a history of list items created by the user (NOT currently logged in user). Example:
- "User A" adds a new help desk ticket
- "User B" views the list item and sees a DVWP that is filtered to display only the results from the list item's creator
Can I do this dynamically using the "created by" field? How would I filter this so that it displays all items created in this list by "created by"? This is for a help desk system I am developing. Essentially I just want to be able to filter based on the list item's creator.
There will be multiple users who will be adding the ticket. In the dataview properties you have options to display a toolbar over the dataview web part. There are options to Filter,Sort and Group.
Alternatively you can Sort and Group the dataview in SPD based on 'Created By' field. I think this should be the way to do it. The User B should be able to view all tickets grouped by 'Created By' field.
Thanks!
精彩评论