nhi doan portfolio

16
SharePoi nt Portfoli o Nhi C. Doan 714-323-2543 [email protected]

Upload: chaunhi

Post on 13-Jun-2015

265 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Nhi Doan Portfolio

SharePoint Portfolio

Nhi C. Doan

714-323-2543 [email protected]

Page 2: Nhi Doan Portfolio

Final Project

Implement Purchase Order Approval Workflow Feature

Sections:Student Assignment, Requirements, Deliverables, Hints, Actual Implementation Steps

Deliverables: InfoPath Forms Workflow feature

Student Assignment: Create supporting InfoPath forms

AssocForm.xsn InitForm.xsn ActionForm.xsn

Workflow Association Form 4 fields

o managerUsernameo managerFullnameo reviewTypeo reviewComments

Workflow Initiation form

2 | P a g e

Page 3: Nhi Doan Portfolio

Based on same structure as the Workflow Association Form

Workflow Action form

3 | P a g e

Page 4: Nhi Doan Portfolio

2 fieldso reviewCompletedo reviewNotes

Create a Visual Studio SharePoint workflow utilizing these forms as an approval process

Create the appropriate manifest.xml and feature.xml files

Add and activate the workflow

Associate the work flow with the Tow services invoices.

Requirements:

The workflow should:o Update the Acme Invoice list indicating payment approvalo Move the InfoPath document to the archive libraryo Email status of approval

Design of the three .xsn forms

4 | P a g e

Page 5: Nhi Doan Portfolio

AssocForm.xsnRight-click the Manager Username and select Text box properties

5 | P a g e

Page 6: Nhi Doan Portfolio

Enter Field name

Select Data type

Click the fx button then click Insert functions button and select Username()

6 | P a g e

Page 7: Nhi Doan Portfolio

InitForm.xsn

7 | P a g e

Page 8: Nhi Doan Portfolio

ActionForm.xsn

Right click the Submit button then select button properties.

Click Rules button

8 | P a g e

Page 9: Nhi Doan Portfolio

Click Add button

Click Add Action

9 | P a g e

Page 10: Nhi Doan Portfolio

Click the Field button on the right

and select ManUsername for Manager Username

Click the Field button on the right and select ManUsername for Manager Username

10 | P a g e

Page 11: Nhi Doan Portfolio

For Value click fx button then click Insert Functions button

Select username()

Visual Studio AcmeTowingWorkflow

11 | P a g e

Page 12: Nhi Doan Portfolio

Click on each step and define the properties

12 | P a g e

Page 13: Nhi Doan Portfolio

Workflow.xml

Under MataData the value of Association_FormURN is taken from the AssocForm.xsn form Properties.

The value of Instantiation_FormURN is taken from the InitForm.xsn form Properties.

(see below)

13 | P a g e

Page 14: Nhi Doan Portfolio

14 | P a g e

Page 15: Nhi Doan Portfolio

Feature.xml

Include AssocForm.xsn and InitForm.xsn in <ElementManifests>

<ElementManifest Location="workflow.xml" /> <ElementFile Location="AssocForm.xsn"/> <ElementFile Location="InitForm.xsn"/> </ElementManifests>And

Properties> <Property Key="GloballyAvailable" Value="true" /> <Property Key="RegisterForms" Value="AssocForm.xsn" /> <Property Key="RegisterForms" Value="InitForm.xsn" /> <Property Key="RegisterForms" Value="ActionForm.xsn" /> </Properties>

At this point we can Build and deploy.

15 | P a g e