Sunday, January 14, 2018

Show uncompleted tasks using a Query String (URL) Filter Web Part

Show uncompleted tasks using a Query String (URL) Filter Web Part

Note: This article has done its job, and will be retiring soon. To prevent "Page not found" woes, we're removing links we know about. If you've created links to this page, please remove them, and together we'll keep the web connected.

To keep track of tasks that must be completed by other people, you can create a task list to show the uncompleted tasks for everyone or an individual. You can add a Query String (URL) Filter Web Part and a List View Web Part to the Web Part Page to show the uncompleted tasks for an individual.

As a manager, you are responsible for making sure that tasks assigned to your group are completed on time. You have to keep track of many tasks assigned to several people. Each task has a priority, a due date, and a status to tell you if the task has been completed.

To help make sure that these tasks are completed on time, you can create a task list in a site collection on a server that is running Microsoft Office SharePoint Server 2007. The task list will be the central location for all your tasks.

Here is an example of a task list.

The task list with all your tasks.

You can create a Web Part Page with a Query String (URL) Filter Web Part and a List View Web Part to show all the uncompleted tasks for everyone or an individual. Further, you can use the Query String (URL) Filter Web Part to create a link that you can use or send to show the uncompleted tasks of an individual. For example, you can see the uncompleted tasks assigned to Amy Rusko by using this URL: http://www.adventure-works01.com/Docs/Documents/DueTasks.aspx?AssignedTo=Amy Rusko.

The task list that shows the uncompleted tasks assigned to Amy Rusko.

You can also create a link to this Web Part Page that you can use or send to a person to show their uncompleted tasks.

To complete this scenario, you will need permissions to contribute to a site collection on a server that is running Office SharePoint Server 2007. The administrator of the site collection can configure the permissions.

You will do the following:

  1. Create the Task List — you will create a task list that will store all tasks. You can then create Web Part Pages that will show the tasks in this list in different ways. If you already have tasks in an existing task list, you can skip this step, the next step, and go to Modify an existing view.

  2. Add Tasks to the List — you will put all tasks in this new list. If you already have tasks in an an existing task list, you can skip this step and go to the next step.

  3. Modify an Existing View — your new list will contain the most frequently used views for a list. You will configure one of these views to show only the uncompleted tasks.

  4. Create the Web Part Page — you will create a Web Part Page that anyone can visit to see their uncompleted tasks.

  5. Add the Web Parts — you will add a Query String (URL) Filter Web part and a List View Web Part to the Web Part Page to show the uncompleted tasks.

  6. Configure the Web Parts — you will configure the List View Web Part to use the modified view of the task list. You will also connect the Query String (URL) Filter Web Part to the List View Web Part.

  7. Use the Web Part Page — you will learn how to use your new Web Part Page.

Step 1: Create the Task List

  1. Click View All Site Content, and then click Create on the All Site Content page.

    Tip: In most cases, you can use the Site Actions menu Button image instead to complete this step.

  1. Under Tracking, click Tasks.

  2. In the Name box in the Name and Description section of the New page, type Tasks. The name in this box appears as the title of the list.

  3. In the Description box, type a description for this list. The description is optional.

  4. Click Create.

The new task list will open in a browser.

Step 2: Add Tasks to the List

  1. On the New menu menu image of the task list, click New Item.

  2. In the Title section, type a name for the task.

  3. In the Priority section, click High, Normal, or Low to indicate the relative importance of this task compared with other tasks in your task list.

  4. In the Task Status section, click the status of the task.

  5. In the % Complete section, type a number as a percentage value that indicates the extent to which the task is completed.

  6. In the Assigned To section, type the name of the person who will complete the task. Only one person can be assigned to a task.

    Click Check Names Button image to determine if the person's name is found in the membership provider service that is used for authentication. See your server administrator if the name is not found in the membership provider service.

    Tip: To find people whom you want to work on the task, click Browse to use the membership provider service.

  7. In the Description section, type a description of the task.

  8. In the Start Date and Due Date sections, enter the start date and finish date for the work that is performed on the task. Use the date picker calendar to quickly enter a date.

  9. To attach a file to the task, click Attach File. Click Browse to locate the file, and then click OK.

  10. Click OK to add the task to your task list.

Repeat the steps in this section to add other tasks to the task list.

Step 3: Modify an Existing View

  1. On the View menu of the task list, click By Assigned To.

  2. On the View menu, click Modify this View.

  3. In the Filter section, do the following:

    1. Click Show items only when the following is true.

    2. In the Show the items when column list, click Status, click is equal to, and then type Not Started.

      In the Filter section of the task pane, set these boxes to the values in the step.

  4. Click OK.

Step 4: Create the Web Part Page

  1. Click View All Site Content, and then click Create on the All Site Content page.

    Tip: In most cases, you can use the Site Actions menu Button image instead to complete this step.

  1. Under Web Pages on the Create page, click Web Part Page.

  2. In the View Name box, type DueTasks. The name appears in the title bar and the URL of the new page.

  3. In the Choose a Layout Template in the Layout section, click Full Page, Vertical.

  4. In the Document Library list in the Save Location section, click Shared Documents.

  5. Click Create.

Step 5: Add the Web Parts

  1. In the Web Part page, click Add a Web Part.

  2. Under the List and Libraries section in the Add Web Parts -- Webpage Dialog page, select the DueTasks check box.

  3. Under the Filters section, select the Query String (URL) Filter check box.

  4. Click Add.

Step 6: Configure the Web Parts

  1. On the List View Web Part, click the Edit button Web Part menu , and then click Modify Shared Web Part.

    The tool pane for the List View Web Part opens so that you can configure the view of this Web Part.

    The tool pane for the List Web Part.

  2. In the Selected View list, click By Assigned To.

    In the Selected View list, click By Assigned To.

  3. In the message box about the results of switching the view, click OK.

  4. In the tool pane for the List View Web Part, click OK.

  5. On the Query String (URL) Filter Web Part, click the Edit button Web Part menu , and then click Modify Shared Web Part.

    The tool pane for the Query String (URL) Filter Web Part opens so that you can configure the parameter to show the uncompleted tasks of an individual in the Web Part page.

    The tool pane for the Query String URL Filter Web Part.

  6. In the Query String Parameter Name box, type AssignedTo. This is the name of the parameter that will show the tasks by the name of person assigned to the task.

    Type AssignedTo in the Query String Parameter Name box.

  7. Open Advanced Filter Options.

  8. Click Send all values and then click OK.

    Click Send all values in the Advanced Filter Options.

  9. To connect the Query String (URL) Filter Web Part to the List View Web Part, click the Edit button Web Part menu on the Query String (URL) Filter Web Part, point to Connections, point to Send Filter Values To, and then click Tasks List.

  10. In the Consumer Field Name list, click AssignedTo, and then click Finish.

  11. Click Exit Edit Mode.

Step 6: Use the Web Part Page

When you visit this page, you will all tasks with a status of Not Started.

The task list that shows uncompleted tasks for everyone.

To see the uncompleted tasks of an individual, do the following:

  1. If the URL to the task list contains characters after the file name extension, delete those characters. For example, the URL to the task list is http://www.adventure-works01.com/Docs/Documents/DueTasks.aspx?PageView=Shared. Remove ?PageView=Shared so that the URL is http://www.adventure-works01.com/Docs/Documents/DueTasks.aspx.

  2. Add the parameter and the person's name to the end of the URL. For example, to see the tasks assigned to Amy Rusko, add ?AssignedTo=Amy Rusko to the end of the URL. The URL will be http://www.adventure-works01.com/Docs/Documents/DueTasks.aspx?AssignedTo=Amy Rusko.

  3. Press ENTER.

The task list that shows uncompleted tasks for Amy Rusko.

If you want to remind a person of their uncompleted tasks, you can add this link to an e-mail message so that the person can see their task by clicking the link. If you have to send a similar message to other people, you can change the parameter value to their name so that the recipient can see only their tasks.

Top of Page

No comments:

Post a Comment