Archive | January, 2010

InfoPath Rules,Validation, Conditional formatting,Code Behind- a sample application for timesheet-part2


Okay from the last post we saw that we could open code behind and saw VSTA opening up from the code location you know J Before we deep dive into doing InfoPath Code behind go through my last post which explains how to deploy , develop and debug infopath forms with code behind deployed as […]

Deploying browser-enabled InfoPath form with code behind i.e. .DLL as content type


Deploying an InfoPath form with code behind i.e. dll as site content type and making the debugging experience for a developer seamless. First of all let me link a nice post by Sahil Malik for deploying InfoPath forms as content types here Let’s create a regular SharePoint feature to deploy an InfoPath form with its […]

InfoPath get/set form fields value in code behind


It would be very common for someone working on InfoPath code behind to retrieve values and set values on the form using code. Below are the snippet for both in C#. /// <summary> /// Sets the field value of an InfoPath Form. pass isNil true for date fields /// </summary> /// <param name="xPath">copy the xpath […]

InfoPath Rules,Validation, Conditional formatting,Code Behind- a sample application for timesheet-part1


Let’s do a very basic timesheet application. Design an InfoPath form as below to enter the hours: Create an xml file from Visual Studio for the tasks dropdown as secondary data source And paste the contents below the xml node created by VS: <tasks> <task> <type>SharePoint Development</type> <value>SharePoint Development</value> </task> <task> <type>SharePoint Designer</type> <value>SharePoint Designer</value> […]