P
Paul Rayner
I have Infopath connected to a webservice that returns a typed dataset tied
to a SQL Server query. Many of the field values returned from the query are
NULL, and I am finding that these node elements are being dropped in the XML
returned from the webservice.
This wouldn't be such a problem, except Infopath will not allow the fields
bound to the missing elements to be modified in any way. I have searched far
and wide and the only option seems to be to remap the NULL values in my
webservice (on receive and submit) to empty strings and a default numeric
value etc., but this seems like such a hack and may cause problems with
numerics and booleans. I tried adding:
daLoan.MissingSchemaAction = MissingSchemaAction.AddWithKey;
into my webservice method prior to returning the Dataset, but it did not add
the missing nodes back in.
I would really appreciate some help with this. It seems to me that many
others would have had this problem I need to find a good solution soon.
Thanks,
Paul.
to a SQL Server query. Many of the field values returned from the query are
NULL, and I am finding that these node elements are being dropped in the XML
returned from the webservice.
This wouldn't be such a problem, except Infopath will not allow the fields
bound to the missing elements to be modified in any way. I have searched far
and wide and the only option seems to be to remap the NULL values in my
webservice (on receive and submit) to empty strings and a default numeric
value etc., but this seems like such a hack and may cause problems with
numerics and booleans. I tried adding:
daLoan.MissingSchemaAction = MissingSchemaAction.AddWithKey;
into my webservice method prior to returning the Dataset, but it did not add
the missing nodes back in.
I would really appreciate some help with this. It seems to me that many
others would have had this problem I need to find a good solution soon.
Thanks,
Paul.