Convention: Review the previously created form:
Today, we will continue to explore INFOPATN to see how its form data is submitted. Like all other software or development languages, to submit a form, you need to trigger the submission action. First, add a button to the form. In the upper control toolbar, select the button control.
Double-click the button inserted into the form to open the properties Toolbar of the button, change the problem displayed on the button to "Submit", and select "Submit" for the Operation item below ". When you open an operation item, you can see that in addition to the "Submit" item, there are two other options: "rule and custom code" and "Update Form "." "Rules and custom code" can be used to set some custom actions for buttons. In this section, I will give you a detailed, detailed, and detailed introduction in the following blog posts, in short, we will give a detailed introduction." "Update Form" is to refresh the form page in WEB mode. Today, let's take a look at "Submit ".
If the "Submit" option is not set in the form, the setting window is displayed.
Select the check box "allow users to submit this form" and activate the "send form data to a single target" button. The drop-down list below contains all the target options that can be submitted, such.
Email: send data to the email recipient through the attachment or table view. For the setting interface:
SharePoint Document Library: send data directly as a document to the specified document library.
Web Service: Submit Form data through Web Service.
Web server: submits form data to the specified web address through http post.
Host environment: Infopath can be opened in WEB and desktop applications. The host here refers to web pages or form programs. I will explain this part of operations in the following blog.
I don't need to talk about the last one. I should have understood it as well.
Today, I will show you how to submit via SharePoint document library. Select the SharePoint document library option and click the Add button. In the displayed setting box, enter the address of the SharePoint document library. You can specify a name for the document through xpath, if you want to use the Department name + employee name as the file name, enter the following formula:
Concat (my: Department, "-", my: FullName, "Leave Application Form ")
"My:" Is the namespace. Why is this namespace available? The next section describes the file structure of Infopath in detail.
Click Next and set a name for the submission. The default name is "Master submission ". After clicking finish, we will continue to make some settings for the submitted action on the settings page, and open "advanced" Settings:
You can set the prompt information after the submission is successful or failed, or set the status of the form after the submission. Click "OK" after setting in, save and re-release the form.
Next, let's open a newly released form and try it. fill in the Form Content and click the submit button. After a moment, we will see the prompt message. It seems that the form data has been submitted successfully.
F
Now, go to the server and check whether the data exists.
You can see the submitted form. Congratulations, this demo is successfully completed.
Today, I mainly explain how to submit Infopath form data. Infopath provides a variety of solutions for collecting form data. If the data volume is small and does not require complex statistics, select the mail or Sharepoint document library. If you need to perform subsequent processing on the submitted data, you can select Web Service or post to submit the data to the database.
Of course, Infopath provides many convenient functions for data processing, covering data integration from data binding during form design to submission. I will explain it in detail later, let's take a look at the structure of the Infopath file in the next article. Thank you for your support.
Author: Super radish
Source: http://www.cnblogs.com/infop
The copyright of this article is shared by the author and the blog Park. You are welcome to repost this article. However, you must retain this statement without the author's consent and provide a clear link to the original article on the article page. Otherwise, you will be held legally liable.