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.

No comments:

Post a Comment