Testing Our InfoPath Forms Workflow in Microsoft Word

Encoder Data Matrix ECC200 in Microsoft Word Testing Our InfoPath Forms Workflow

Testing Our InfoPath Forms Workflow
Print Data Matrix 2d Barcode In None
Using Barcode creation for Word Control to generate, create Data Matrix ECC200 image in Word applications.
www.OnBarcode.com
Painting Code 39 Full ASCII In None
Using Barcode creation for Office Word Control to generate, create Code 3/9 image in Microsoft Word applications.
www.OnBarcode.com
Before we can test our workflow, we need to associate it with a document library. We ve previously walked through these steps, but at a high level, they are as follows: 1. From the settings page for the document library, go into Workflow Settings. 2. Add a new workflow based on the Marketing Campaign Workflow template, giving it a unique name. Because we didn t create an association form, you won t see a form pop up here. After the workflow is associated, we need to kick off an instance of it on a document: 1. From a document in the same document library, select Workflows from its dropdown menu. 2. Click the name that you gave the workflow in step 2 earlier. 3. Our initiation form will now pop up, as shown in Figure 7-12. Fill in valid values for your environment and click Submit.
Drawing Barcode In None
Using Barcode drawer for Microsoft Word Control to generate, create Barcode image in Word applications.
www.OnBarcode.com
Printing Data Matrix ECC200 In None
Using Barcode drawer for Microsoft Word Control to generate, create Data Matrix image in Word applications.
www.OnBarcode.com
CHAPTER 7 WORKFLOW FORMS
Drawing Barcode In None
Using Barcode drawer for Word Control to generate, create Barcode image in Microsoft Word applications.
www.OnBarcode.com
Code 128C Generator In None
Using Barcode encoder for Office Word Control to generate, create Code 128B image in Word applications.
www.OnBarcode.com
Figure 7-12. Our custom initiation form in action 4. Once the form is submitted, our workflow will create and assign a task to the person you specified as the traffic coordinator and will send an email to the account you specified for the marketing director. The task, using our custom task form, is shown in Figure 7-13. Notice the instructions that we put in programmatically are shown in the read-only Task Instructions field.
Paint QR-Code In None
Using Barcode generation for Microsoft Word Control to generate, create QR Code 2d barcode image in Microsoft Word applications.
www.OnBarcode.com
Identcode Creator In None
Using Barcode printer for Office Word Control to generate, create Identcode image in Word applications.
www.OnBarcode.com
Figure 7-13. Our second custom form this time for task information 5. Open the task form and add some comments, but do not mark the task as complete. Save the form. The comments will be recorded, but the workflow will not be flagged as complete. 6. Click on the document to open it in Word. If you are logged in as the user to whom the Task is assigned, you will see the Task information in the Business Bar. In this case, you can click the Edit This Task button in Word to see our custom form rendered within the Word client, as shown in Figure 7-14. Notice that it contains the comment we entered in step 5.
Data Matrix Drawer In VS .NET
Using Barcode drawer for ASP.NET Control to generate, create Data Matrix ECC200 image in ASP.NET applications.
www.OnBarcode.com
Encode Data Matrix In None
Using Barcode maker for Software Control to generate, create Data Matrix ECC200 image in Software applications.
www.OnBarcode.com
CHAPTER 7 WORKFLOW FORMS
Decode PDF 417 In None
Using Barcode decoder for Software Control to read, scan read, scan image in Software applications.
www.OnBarcode.com
Printing Code-39 In Objective-C
Using Barcode printer for iPhone Control to generate, create Code 39 Full ASCII image in iPhone applications.
www.OnBarcode.com
Figure 7-14. Our custom InfoPath form rendered through the Office client. Sweet. 7. Mark the task as Complete within Word and click Submit. 8. Close Word and refresh your browser. The workflow is now marked as Complete.
2D Drawer In Visual C#.NET
Using Barcode generation for .NET Control to generate, create Matrix image in .NET framework applications.
www.OnBarcode.com
Linear Encoder In VB.NET
Using Barcode creator for VS .NET Control to generate, create Linear Barcode image in Visual Studio .NET applications.
www.OnBarcode.com
Note The form we built was totally unstyled. If we know we re going to be rendering into the Office client
Barcode Decoder In C#.NET
Using Barcode Control SDK for .NET framework Control to generate, create, read, scan barcode image in VS .NET applications.
www.OnBarcode.com
Draw Barcode In .NET Framework
Using Barcode drawer for Reporting Service Control to generate, create Barcode image in Reporting Service applications.
www.OnBarcode.com
applications, we can spend a little time styling things to look more integrated.
ECC200 Generator In None
Using Barcode drawer for Font Control to generate, create Data Matrix ECC200 image in Font applications.
www.OnBarcode.com
GTIN - 13 Printer In Java
Using Barcode creator for BIRT Control to generate, create EAN-13 Supplement 5 image in Eclipse BIRT applications.
www.OnBarcode.com
So there you have it: a brand-new workflow, complete with custom forms. Not too bad; give yourself a pat on the back and then let s move on to ASP.NET forms. As you ll see, these are a little harder.
Making Barcode In Java
Using Barcode creator for Java Control to generate, create Barcode image in Java applications.
www.OnBarcode.com
EAN / UCC - 13 Encoder In .NET
Using Barcode maker for ASP.NET Control to generate, create EAN-13 image in ASP.NET applications.
www.OnBarcode.com
Scenario 7-2: Using ASP.NET Forms
Functionally, using ASP.NET forms for your workflow is no different from using InfoPath forms. You still have association, initiation, task, and modification forms. Users still interact with your forms the same way (well, actually, there is one difference: having the forms display inside the Office 2007 client applications is not an option with anything except InfoPath forms and MOSS). The one thing that is significantly different and I m not kidding when I say significantly different is the work necessary to build the ASP.NET forms. Building the ASP.NET forms is a lot more work. Fortunately, Microsoft has given us some good starting points and some good building blocks to build our forms from MOSS and WSS SDSs. This set of sample code, white papers, and documentation provides a wealth of information to any SharePoint developer.
CHAPTER 7 WORKFLOW FORMS
Note Because I m a nice guy, I ve done a lot of the legwork for you by tearing the sample projects apart
and distilling them down to a set of template files and a few code snippets. I ll be referring to these files as we step through this process. Altogether, they constitute several hundred lines of code most of which we won t need to change. So, instead of making you type all of that out, I ve packaged them together and posted them on my web site (www.kcdholdings.com). You ll want to download the template files before going much further. While I would love to claim credit for all of this code, I can t. I added about 5 percent on top of what came out of Microsoft s SDKs.
Let s get started. For simplicity s sake, we re going to implement the same scenario with ASP.NET forms as we did for InfoPath forms. Here s a refresher on the scenario.
Copyright © OnBarcode.com . All rights reserved.