How to display my tasks and tasks in my group in the same task list

Source: Internet
Author: User

After defining a workflow for the document library, the approval reminder is displayed as a task in the task list. by default, the task list provides multiple views to query my tasks and tasks in my working group.

However, whether it is a task assigned to me or a task assigned to my working group, it should be my to-do task.

I expect that only all my to-do tasks will be displayed in a list.

Two solutions are found through experiments and searching for information.

First, create a view and change the caml query statement of the view in SPD.

This method can refer to the http://www.cnblogs.com/wanghao-3/archive/2008/09/27/1300474.html

And http://www.cnblogs.com/windbell/archive/2008/06/09/1216340.html

The disadvantage of this method is that when we reference the task list on other Web parts pages, the task list cannot be applied to the previously changed view. You must re-change the view caml on this page.

Note: by default, the list of caml is not displayed in SPD. it must be converted into an XSLT data view. after conversion, you can find the <SharePoint: spdatasource tag and write the required caml in the selectcommand attribute.

Method 2: Implement listviewwebpart packaging. The idea is as follows: Create a webpart project of your own, and create a new listviewwebpart object. Bind this object to the task list,

Create a view as per our filtering needs (method reference: http://book.csdn.net/bookfiles/160/1001606879.shtml). Then specify the created View to the listviewwebpart object.

Deploy webpart. OK!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.