Jul 24, 2012

The addDays function isn't working in Infopath

In certain cases, Infopath won't recognize the addDays function.  You simply need to specify the namespace as follows:

xdDate:addDays(today() , 90)

Jul 18, 2012

SharePoint site template error: The template you have chosen is invalid or cannot be found.

I spent hours reloading and changing names for a site template until found the root problem for this:  conflicting Template Id's in the web_template.xml files.

Basically, I had several site definition templates with the same Template Id.  So be sure to use unique template Id's and change the ones that Visual Studio 2010 generates for you.


Jul 5, 2012

Infopath formula errors using eval function

All the credit for this goes to: http://www.mattjimison.com/blog/2012/03/08/infopath-reference-to-undeclared-namespace-prefix-pc/

Here's the problem I came across using the eval function on repeating groups:

  1.  You have a repeating group in Infopath 2010.  I haven't tried this in Infopath 2007
  2. An eval formula of the form:  eval( parentRepeatingGroup, 'concat(my:childElement,"abc")')  or something similar to http://blogs.msdn.com/b/infopath/archive/2006/04/05/569338.aspx
  3. The previous formula gives an error that the namespace 'my' doesn't exist
Solution:  Delete the formula, save and close the form and reopen it in Infopath.