2. InfoPath Data Sources
• Can be
o Submit Data
• To a Web service
• To a Document Library on a SharePoint site
• As an E-mail Message
• To a Hosting Environment (XMLFormView Control)
o Retrieve Data
• SOAP Web Service
• REST Web Service
• SharePoint Library or List
• Database
• XML Document
3. InfoPath Data Sources..
• Main Data Source
o Holding Values
o Query the Main Data Source
• Will get blank if empty
o Can Promote to SharePoint
• Read Only
• Read/Write
5. InfoPath Data Sources..
• Secondary Data Source
o Temporary Holds Data
• Can be load in Form Load (Not Good)
• Query as we want
o Can use to bind data to controls
o Mainly for Retrieve Data
• SOAP Web Service
• REST Web Service
• SharePoint Library or List
• Database
• XML Document
6. Rules
• Form Load
o Set default values
o Switch views depends on some values
o Query Secondary Data Sources if necessary
• Form Submit
o Summit Validations
o Query data sources before submit
• Main Data source
o Controls validations
o Action rules
7. Controls n Rules
• Simple Validation
• Simple Formatting
• Simple Action
• Change view on load
• Calculated Value
• Always true rule
8. Controls n Rules ..
• Eval
• Load List to Repeating table
• Bind Data source to Combo Box
• Implement If else
o If not run method
o Complement condition method