How to Use the vsta program to freely control the infopath form storage form library

Source: Internet
Author: User
Abstract: When using infopath, sometimes we may need to put the form into a form library or B form library based on the choices of the person who filled in the form, that is, there is no way to save the document library in the form template. However, there is no way to continue without entering a save location when submitting a request. Fortunately, vsta allows you to change the location of the saved form library before submission.

 

    1. Create a template, for example,The submitted URLThis field can be entered by the user,"File NameThis field uses the current date as the file name for convenience:

    2. Create a submitted data connection. For example, the data connection name is:

       

      Library or list, you can use the address of a document library instead, this address will be reset in vsta.

      The file name can directly reference a domain, which is savefilename.

       

    3. Set the following vsta when "automatic submission"CodeThe system submits the form to the document library based on the submitted URL.

       

Public VoidCtrl3_5_clicked (ObjectSender,ClickedeventargsE)

{

// Write code here.

 

FilesubmitconnectionFSC = (Filesubmitconnection)This. Dataconnections ["Spsubmit"];

 

FSC. folderurl = maindatasource. createnavigator (). selectsinglenode ("/My: myfields/My: saveurl", Namespacemanager). value. tostring ();

 

FSC. Execute ();

 

 

}

 

The effect is as follows:

 

 

4. Create a digital signature for this form and publish it to the local hard disk. Then, upload the form from the management center to the server and activate it to the website set.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.