Document directory
Last time we analyzed the form operation link in DVWP. This time we will discuss how to edit these links in the design view using the form operation wizard.
Form operations
Editing form operations is another feature provided by DVWP. Despite some restrictions, it can still implement many powerful functions, including workflows.
You can use a wizard to modify the form operation. The Wizard can edit the javascript call of the href attribute in the operation link in the running order. Before running the wizard, let's take a quick look at the default figure of our link before editing:
Before
<A href = "javascript: {ddwrt: GenFireServerEvent ('_ commit')}"> Save the file </a>
1. To run the form operation wizard (edit template), right-click the operation link and select "form operation..." from the context menu ..."
2. Note the commit operation we saw in the code, which is now displayed in the Wizard. There are some optional operations on the left, which also looks clear at a glance:
I. Refresh the simple refresh screen. This operation resets the information on the editing page with the data currently saved to the database.
Ii. Canceling the edits will cancel the edits and return to the default view.
Iii. When metadata is located, the user is directed to the URL address indicated by the source variable in the query string.
Iv. Locating a webpage is similar to an operation above, but it allows us to specify where to navigate
3. to execute or create a workflow, you can add a "Custom operation" and click "set"
Adjust the custom operation (workflow) to the submission operation. To ensure execution before submission. Click "set ".
4. The custom operation/workflow designer wizard is displayed. Note the following three points:
I. Pay attention to the workflow name
Ii. Note that there is no way to "manually", "automatic when creating a project", or "automatic when the project Changes" to start workflow settings. It can only be started through this operation link.
Iii. Finally, I noticed that there is no "start" button and the workflow startup parameters cannot be set.
5. Apart from this, you can create a workflow here and create a workflow for the list. Some additional conditions exist:
I. The only available condition is "compare any data source"
Ii. The "current project" is not used in workflow search for us to choose from:
Iii. The form field function replaces the current project because the workflow comes from the list form:
The fields listed here are the fields displayed in our form, but they can also be hidden fields/columns.
Next time: We will continue to explore in depth. You will see that the custom operation links are significantly different from those of previous versions.
References
SharePoint: Extending the DVWP-Part 7: Creating a Form Action Workflow