You are here: Working with Solutions > Creating a solution package for forms

Creating a Solution Package for Forms

The following steps will walk you through the general end-to-end process of creating, saving, and publishing an entire solution for forms.

On this page

Creating a new Winshuttle Solution for Forms

Back to top

  1. In Designer, on the File menu, point to New, and click Workflow Solution for Forms.

    DesignerSlnPane

    The Solution Tree appears with containers for any components you might use in a solution.

  2. In the Form View drop down list, click New Process.

    Nw process workflow
  3. In the right-hand pane, under Publishing, click in the field next to SharePointSite.
  4. In the SharePointSite field, type the URL of the target publishing site, and then press Enter. (Example: http://MyFormSite/Forms )

    publishing - SharePointSite
  5. In the Winshuttle Solution Window (the upper right-hand pane) right-click Transaction Scripts, and then click Import.
  6. Browse to the script you want to import, and then click Open.
  7. In the right-hand pane, in the WebService Description field, type a description for your newly imported Transaction script. (Note: If you use the same script in more than one process, you must change the name for each or you can set the IsOverwriteAllowed property to "true".)
  8. On the menu bar, click Tools, and then click Manage Field Mappings.
  9. Click Add.
  10. In the script Name drop down menu, select the Script Name/Web service you wish to publish. The description entered in step 7 should autopopulate the Description field in the New Web Service Dialog.
  11. Add an XML group name (Alphabetic characters only and no spaces. For example, MyXMLGroup).
  12. Select either Use the logged in Windows account or Use the specified account to specify a different account from the one you're currently logged in with. If you select Use the specified account, enter the Username, Password, and Domain for the account in the appropriate fields below).
  13. Click OK.
  14. Click Generate InfoPath Form. The script fields are now mapped, and you can now design the look of the InfoPath form. Click OK, and then click OK again.)

Designing the form

Back to top

  1. If you haven't saved your solution yet, click File, and then click Save Solution. Type a name for the save file and then click Save.
  2. Click File, and then click Launch Infopath.
  3. The form appears with the fields listed in the Fields pane.
  4. Expand the XML Group.
  5. Drag the input fields you want to use to the form canvas (below the dotted line).
  6. Drag the output fields you want to use below the input section.
  7. Add Winshuttle/ShareVis controls to your form:
  8. On the InfoPath ribbon, in the Controls section, click the arrow to expand the Controls pane.

    Infopath Ribbon Controls
  9. At the bottom of the Controls pane, click Add or Remove Custom Controls.

    Controls Pane Custom
  10. Click Add.

    Add or remove custom controls
  11. Select ActiveX Control, and then click Next.
  12. In the Select a control window, select the control you need and then click Next.
    • Make sure Don't include .cab file (the default) is selected, and then click Next.
    • In the Binding Property window, leave the default value selected and then click Next.
    • In the Enable or Disable property window, leave the default value selected and then click Next.\
    • Click Finish, and then click Close.
  13. In the Add or Remove Custom Controls dialog, click OK.
  14. In the Infopath Controls Pane, under Custom, drag the SAP Web Service control to the end of the Input section in your form.

    Controls Pane Custom SAP Web Service circled
  15. Right-click the SAP Web Service control, and select SAP Web Service Properties.
  16. Click the SAP Web Service Info tab.
  17. Click Add.
  18. In the Web Service drop menu, select the Web service you want to use, and then click OK.
  19. In the Web Service window, click the name of the Web service that you just added.
  20. Check the When button is pressed box. (You can also type a description in the When button is pressed field if you wish to change it.).
  21. Click OK.
  22. On the InfoPath menu bar, click File, and then click Save to save the Infopath form.

If you added a control:

  1. Right-click the control and then click Properties.
  2. Thereafter, they must choose from a drop-down list of the Web Service(s).
  3. Click the name of the retrieved Web Service. Make sure the values are correct, and then click the checkbox "When button is pressed". (Note: You can change the name of the button on the text field to the right of the checkbox.)

WARNING: Do not click Save As. If you click Save As, the form will be separated from the solution.

NOTE: InfoPath views are not supported. Views need to be created from the solution and not from within an infopath file. If you create a view in InfoPath, it cannot be used in Workflow.

Designing your workflow

Back to top

  1. Design your workflow.
  2. In Deployment Profiles, add the Deployment Profile name and description and the SharePoint site URL.
  3. Save the solution. The extension is .wssln.
  4. If the solution includes a script that will run on a production server, it must be submitted for approval before it can be run. Click File, and then click Publish Solution.

    You can add a title and a description for the solution, but you can submit it only to the CENTRAL site that was specified. If your system requires approval, then even a solution is only for a test environment must still be submitted.

Creating a deployment profile

Back to top

  1. Right-click Deployment Profile and then click New, or right-click Development, Staging, or Production and click Edit.
  2. Add a description.
  3. Under CENTRAL Site URL, add the CENTRAL site address where the package will reside. When you set the CENTRAL site URL, you are setting the SAP server.

    Under Winshuttle Scripts, each script in the solution is listed, along with the associated web service.

  4. Click Go.
  5. To specify that System Post is allowed for the solution, select System Post. Select the user name for the user under whom system post will be submitted.
  6. If you receive an error message, click Validate. Ensure that IsOverwriteAllowed is not set to false and that no script exists with the same name.

Saving the solution

Back to top

  • On the File menu, click Save Solution.