Monday, August 13, 2007

InfoPath 2007 Data Source Field Naming Standards

Just came to know that (after few hrs of debugging) InfoPath might error out If you publish form on to web which could be working without any error or issues in client (office InfoPath 2007)

If you don't fallow the naming standards and again there isn't any official document or note on naming standards from Microsoft!

Let's get down to details:
1. Create field inside Info path Data Source with naming like
GnG_Name [Capital{Small}Capital_FieldName ]


2. Now Bind those Data fields to form (Table)


3.Publish your form & try to view from browser

Oops! it will break with Unclosed Literal String error (works fine in Client)

4. Reopen the Binding

you will notice field break apart into Gn{Space}G_Name

I think it's kind of small BUG compare to beautiful features offered by Microsoft
Hopefully they will fix the Issue