T
TomVervoort
Hi,
I've created an InfoPath 2007 browser compatible form in Visual Studio 2008.
This form is already in production for quite some time now, and we never had
any problems with it.
Because I was asked to add new functionality to this form, I fired up my VS
again and started modifying the form. I added an extra field in the
datasource (in an already existing repeating group) and was trying to access
this field in code. However, every time I tried to access this field, I got
an 'object not set to an instance of an object' exception. The field on the
form also didn't show it's default value.
I extracted the xsn file and checked all files (template.xml,
sampledata.xml, myschema.xsd...) and they all contained the field.
Because I thought I did something wrong, I got the latest version from
source control and started all over again... same result. Strange thing is
that I can add extra fields directly under the root node. Just not in any of
the already existing repeating groups.
Did any of you ever had the same issue (and found a solution for it) ? I
prefer not to start from scratch again, because it's a complex form with
quite some code behind.
Any help appreciated !
Regards,
Tom
I've created an InfoPath 2007 browser compatible form in Visual Studio 2008.
This form is already in production for quite some time now, and we never had
any problems with it.
Because I was asked to add new functionality to this form, I fired up my VS
again and started modifying the form. I added an extra field in the
datasource (in an already existing repeating group) and was trying to access
this field in code. However, every time I tried to access this field, I got
an 'object not set to an instance of an object' exception. The field on the
form also didn't show it's default value.
I extracted the xsn file and checked all files (template.xml,
sampledata.xml, myschema.xsd...) and they all contained the field.
Because I thought I did something wrong, I got the latest version from
source control and started all over again... same result. Strange thing is
that I can add extra fields directly under the root node. Just not in any of
the already existing repeating groups.
Did any of you ever had the same issue (and found a solution for it) ? I
prefer not to start from scratch again, because it's a complex form with
quite some code behind.
Any help appreciated !
Regards,
Tom