Professional Documents
Culture Documents
Table of Contents
SharePoint Designer 2010 for IT Pros ..................................................................................... 1
Exercise 1 Create a new list using SharePoint Designer ................................................................................................2 Exercise 2 Create workflow using SharePoint Designer ..............................................................................................11 Exercise 3 Saving a Site as a Reusable Solution Package (.wsp) ..................................................................................16
Scenario
The lab tasks demonstrate the use of SharePoint Designer 2010 for creating a SharePoint list and adding/removing columns from it. Then, you will create a new View for the list and apply conditional formatting to the view. Later, you create a new workflow associated with the list and create a custom action that starts the workflow. After building up the site, we will store that as a reusable template, which can be moved to any SharePoint 2010 environment.
60 Minutes
demo2010a The password for the Administrator account on all computers in this lab is: pass@word1
Page 1 of 17
Template: Select the Collaboration tab and choose Team Site for the template
g. Primary Site Collection Administrator: contoso\administrator h. Once the site is created, launch SharePoint Designer 2010. Click Start > All
Programs > SharePoint > Microsoft SharePoint Designer 2010. A small dialog window will open to perform some initial configuration the first time SharePoint Designer is launched, and then the splash screen will appear.
i. j.
In the OutSpace pane of SharePoint Designer, click on the Open Site button. This opens up the Open Site Dialog box. Enter http://portal.contoso.com/sites/spdlab in the Site name: field and click Open. When you are prompted for credentials, enter contoso\administrator for the User name and pass@word1 for the password. After a few moments, the SharePoint site overview will open in the main windows of SharePoint Designer. pane is designed to accommodate all of the SharePoint objects (e.g. lists and libraries, master pages, workflows, etc.) that can be edited in SharePoint Designer.
k. Notice the new navigation pane for SharePoint Designer 2010 on the left. This
SharePoint Designer 2010 can be used with SharePoint 2010 to create new site artifacts and to configure the sites settings. Lets continue by creating new list.
l.
Click Lists and Libraries on the navigation pane to show the current lists that exist Page 2 of 17
process.
n. Use the following values in the Create list or document library dialog. o. Name: Basic Products p. Description: A basic list of all products
q. Click OK to create the list r. Click the BasicProducts list created in the site. SharePoint Designer opens the list
in Summary view which details the information about the list and allows you to modify the settings for the list
s. In the Summary View, you can edit list columns, create views and forms for the
Page 3 of 17
SharePoint Designer for IT Pros Tasks 2. Manage columns on the list Detailed Steps Note: In this task youll add and remove a few columns form the list you created in the previous task.
a. In the Summary View for the list, click on the Edit list columns link under the
Customization group. This opens the List Column Editor Pane for the list columns.
b. Right-click on the Title column name and select Rename. c. Change Title to Product Name
d. In the Columns tab on the Ribbon, click on Add New Column > Number. e. Type Size for the Column Name. f.
Click Add New Column again to create the following columns: Name: Weight
Type: Currency Name: Standard Cost Type: Single line of text Name: Color
Page 4 of 17
Click on the List Settings button in the Ribbon to return to the Summary View for the list.
m. Now, you should be able to browse to the list using the web browser and add
items to the view. Switch back to Internet Explorer and browse to http://portal.contoso.com/sites/spdlab
n. Click on the Basic Products link in the Quick Launch, under the List header. o. Click the Add new item link to add items to the list according to the following
table: Product Name Product 1 Product 2 Product 3 Product 4 Product 5 Size 10 20 30 40 50 Weight 10 20 30 40 50 List Price $10 $20 $30 $40 $50 Standard Cost $1100 $3000 $450 $4500 $550 Color Red Blue Yellow Purple Silver
Page 5 of 17
SharePoint Designer for IT Pros Tasks 3. Create a new view for the list Detailed Steps Note: In the following task, you will create a new view for the list. You will also change the rendering logic of the list by using the new XSLT options available.
a. Switch back to SharePoint Designer. Click Lists and Libraries in the Site Objects
pane on the left, then select Basic Products to open the Summary View of the list.
b. In the Views section, click the New button. This opens the Create New List View
dialog box.
c. Type Standard Costs in the Name text box and click OK
d. In the Views section, click on the newly created Standard Costs view to open the
web page associated with the view in SharePoint Designer. It may take a minute for the page to render and display the list items. You will be applying conditional formatting to the SharePoint list view. You will use the conditional formatting tool to highlight the item row if the Standard Cost is greater than the List Price for that item.
e. Once the view is opened for editing in SharePoint Designers Design view, click on
one of the item rows (as shown in the screenshot below) to activate the List View Tools bar in the Ribbon. (It may take a few seconds for the Ribbon tools to render)
f.
In the Ribbon, click Conditional Formatting > Format Row. This opens the Conditional Formatting task pane to the right and shows the Condition Criteria dialog box, which allows you to define the condition that Page 6 of 17
SharePoint Designer for IT Pros Tasks Detailed Steps decides where the formatting should be applied.
g. In the Field Name column, click the dropdown, scroll to the bottom of the
h. In the More Fields dialog box, check the Show data values check box. This shows
the data values from the list with the field names, allowing for easier selection.
i.
Scroll through the list and select the Standard_x0020_Cost. field and click OK. (Note: There are two similar Standard Cost fields. As shown in the screenshot, choose the one that defines the cost as numeric value without the currency identifier.
Page 7 of 17
Click the area below the header of the Comparison column and select Greater Than from the dropdown.
k. In the Value column, click the dropdown and select More Fields l.
In the More Fields dialog box, check the Show data values check box. Note: There are two similar List Price fields. As shown in the screenshot below, choose the one that has the field value as numeric format without the currency identifier.
m. As shown in the screenshot, select the List_x0020_Price. field and click OK.
n. Your Condition criteria at the end of the above steps should look like the
following:
Page 8 of 17
o. In the Condition Criteria dialog box, click the Set Style button. This opens the
Modify Style dialog box which allows you to choose the highlight style you wish to keep for the item row if it meets the criteria you specified above.
p. Select Background from the Category list. q. Click on the dropdown menu for background-color and choose a color for the
r. Press CTRL+S to save the web page. Press F12 while in the SharePoint Designer
application window to view the web page in the browser. You will notice that all the rows are currently highlighted.
s. Now you will change the values to see how conditional formatting is applied
dynamically.
t. Click Product 2 to open the item. In the window that opens, click Edit Item in the
Ribbon.
u. Change the values of the List Price to 4500:
Page 9 of 17
z. Notice how the conditional formatting only highlights those items where the
Page 10 of 17
Monitor List Price compares the List Price of the item on which it is run with a threshold value. If the list price is greater than the threshold, a task item is assigned to the reviewer to review the list price.
e. In the Workflows section on the right side of the Summary view click on New
f.
Type WFBasicProducts in the Name text box, then type Monitor list price in the Description text box and click OK.
After a short pause, the new Workflow Designer will open. The workflow by default has a Step1 in it with an orange flashing horizontal cursor, allowing you place a condition or action in the step.
Page 11 of 17
g. Before creating the first workflow step, create a local variable that you will use for
the workflow. In the Ribbon, click on Local Variables to open the Workflow Local Variables dialog box.
Type ListPriceThreshold in the Name text box and set the Type dropdown to Number. Click OK. Click OK on the Workflow Local Variables window to return to the Workflow Designer. Do in the text box to name the step.
k. Double click on the Step 1 title to make visible a text box. Type Assign Review To-
l.
Click in the area below the text box to start creating the workflow. The step in the workflow now reads Set workflow variable to value.
n. Click on the workflow variable link and select Variable:ListPriceThreshold from the
dropdown list.
o. Click on value link and type 3000 in the text box. The completed action looks like
as follows
p. Click below action you just created to place the cursor b elow it (dont click
Page 12 of 17
SharePoint Designer for IT Pros Tasks Detailed Steps outside the step box, just beneath the text).
q.
In the Ribbon, click on Condition > If current item field equals value. This will insert a condition sentence, If field equals value in the step. You may need to scroll down to find List Price.
r. Click on field link in the sentence and select List Price from the dropdown list.
s. Click on equals link and select is greater than from the dropdown list. t. Click on the value link and click on the Fx button
w. Click OK to return to the Workflow Designer. x. Ensure that the cursor is inside the conditional block just created in the above
y. In the Ribbon, click Action > Assign a To-do Item to place the Assign a to-do item
to these users action in the conditional block. (Note: You will need to scroll through the Action list to find the Assign a To-Do Item)
z. Click on a to-do item link to open the custom task wizard. Click Next.
Rr
Page 13 of 17
groups list and click the Add >> button, then click OK.
dd. Press CTRL+S to save the workflow in the SharePoint site. ee. Now, you need to publish the workflow to the SharePoint site so that it is
available for use with the list. Click on the Publish button in the Ribbon. A progress bar indicating the status of the workflow publishing is displayed while the publishing is in progress.
ff. Once the workflow is published, click the WFBasicProducts link in the breadcrumb
bar (below the open tabs) at the top of the workflow designer to switch to the Summary View for the workflow.
gg. This view displays the properties of the workflow along with start options, tasks
Page 14 of 17
refresh the Summary View for the list. You should now see the newly created workflow in the Workflows slab for the list.
Page 15 of 17
navigation pane to open the Summary View for the site. In the Ribbon, click Save as Template. A new browser window will open and you will be redirected to the Save as Template page.
b. Use the following values for the template c. File Name: ProductMgmtSite d. Template Name: Product Management Site e. Template Description: Example product management site f.
g. Click OK to continue. h. When the Operations Completed Successfully page appears, click OK. It may
Click Site Actions > New Site Click the Blank & Custom category on the left. Select ProductMgmtSite from the available templates.
Page 16 of 17
m. URL: templatesite n. Click Create to create your new site. o. Since site templates are now stored as Solution files, you can download the
solution package from the Solution Gallery and use it in any other SharePoint 2010 environment. If you need further extend the functionality of the solution, you can also import the solution package to Visual Studio 2010.
p. Close SharePoint Designer 2010 and Internet Explorer
Page 17 of 17