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!