Sunday, May 20, 2012

Deploy an InfoPath 2010 Form with Managed Code to a Browser Enabled Sharepoint Document Library


Deploy an InfoPath 2010 Form with Managed Code to a Browser Enabled Sharepoint Document Library


  • Article 1: How to code C-Sharp on infopath form 2010
  • Article 2: How to set the value of a Field in Infopath
  • Article 3: How to set value of a field from sharepoint list
  • Article 4: Populating InfoPath Drop Down List Box with SharePoint List Lookup Data 
  • Article 5Populating InfoPath Drop Down List Box with SharePoint Fields Choice
  • Article 6: Deploy an InfoPath 2010 Form with Managed Code to a Browser Enabled Sharepoint Document Library

At this article  you know how to code infopath, this article you know how to deploy infopath to sharepoint
Go to File => Publish => Click to Sharepoint Server
Input URL to sharepoint site then click next
Click Next
Click Browse… (Publish infopath form with administrator permission)
Save infopath form
Add Fields


Click Publish

Upload the template

Go to Central Admin => General Application Settings => Infopath Form Services => click to Manage form templates
Click to Upload form template
Browse to infopath form which publish in your machine
Click to Upload
Upload successful

Activate the form template on a Site Collection

Back to Manage form template screen | click to your infopath form | Active to a site collection
Choose your site collection

Associate the Form Template with a Form Library

Go to your site collection | create a new Document Library | input name: My Documents
On My Documents  =>  Document Library Settings => Advanced Settings => at Allow management of content types? : Yes
Click to “Add from existing site content types” link
Add content type (Infopath content type) to your library
Infopath content type is added successful
Go to Tasks list | try add new item
Go back My Documents Library | Tab Documents | New Document | CodeInfopathByMSTechSharingPublish
You see result at (Data from Tasks List is got and set to control infopath)
You can save this form
Result as

0 comments:

Post a Comment