How to handle not nullable fields in InfoPath 2007?

C

Chinmaya Pradhan

Hi,
I am reusing a webservice was already used for retreival of data from SQL
server for some .NET application.

The response object is the combination of few entities and onload of the
Infopath form I am just executing the webservice and binding the same to
Infoapth.

But the problem here is when ever I am submitting back the InfoPath form if
the not nullable fields are not being set then schema validation error
occurs. To overcome this I put some default value to those not nullable
fields. Like for integer fields I've added 0, for date fields 1/1/1900 etc.

So when the infopath form loads, for those filds if there no value exists
then the default value is beiing displayed.

So is there any other way to solve this issue?

Thanks,
Chinmaya.
 
G

Gavin McKay

Hello,

If you have a web service that requires non-nullable parameters, then by
definition you *must* supply a value.

The only way around is would be to either change your web service or, as you
have done, supply values for those fields.

Gavin.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top