concept field in category sharePoint

appears as: field, field, fields, fields, The fields
SharePoint 2010 Workflows in Action

This is an excerpt from Manning's book SharePoint 2010 Workflows in Action.

Most of the time, you’ll leave the defaults for the next two sections in this second configuration screen. The basic premise is how you want your tasks to function. If you remember, the Three-state workflow issues tasks between states. After the issued task is completed, the workflow moves to the next state. In figure 2.7, you’ll notice our Assigned To column is already set in the Task Assigned To field. This is enough to continue in the example, but note there are other handy settings. For instance, you can specify unique text to be added into the email that the task’s assignee receives.

Figure 3.12. Using coercion allows you to return the value of a field as a different type of data. In this example, the Modified By field is returned as a String data type. By default, it would be returned as a Person data type.
Table 10.6. Configuring a secondary data source pointing to your task data

Action

Steps

Result

Create an ItemsMetadata.xml file that references the schema that SharePoint is passing.
  1. Open Notepad, and enter the following XML: <z:row xmlns:z="#RowsetSchema"
    ows_Title=""
    ows_Body="" />
NOTE: The internal name of the Description field is ows Body. The fields with ItemMeta-data.xml should all represent their respective internal names, not their display names.
  1. Save the file as ItemMetadata.xml.
NOTE: The filename and the XML are case sensitive!
A new file called ItemsMetadata.xml is created. This file contains the XML schema for your task list data.
Configure the secondary data source for the task edit form in InfoPath.
  1. In the task edit form in InfoPath designer under the Ribbon’s Data tab, click Data Connections.
  2. Click Add to add a new data connection, leave Create a new connection to: Receive data, and then click Next.
  3. Choose XML Document, select the ItemMetadata.xml file on the file system where you saved it, and then click Next.
  4. Select to include the file as a resource, click Next, and then click Finish.
NOTE: When you click Next, you will see a warning saying that connections to XML files are not allowed in web browser forms. SharePoint treats this item metadata file as special and this warning does not apply.
Your task edit form is configured with a secondary data source to your SharePoint data through the ItemsMetadata.xml file.