NULL Values in dataset - InfoPath Dev
in

InfoPath Dev

NULL Values in dataset

Last post 03-24-2007 09:59 AM by CGlover. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-09-2005 01:56 PM

    • RNelsen
    • Not Ranked
    • Joined on 09-09-2005
    • USA
    • Posts 1

    NULL Values in dataset

    I am having a very difficult time trying to handle null values returned in a dataset from a web service. The field on the form becomes un-editable.

    I have tried everything I can think of. Is there an easy way to handle null values.......

    Please help... I am desperate

    Robert J. Nelsen
  • 09-09-2005 04:20 PM In reply to

    I had problem the other day, maybe it is related. In this case, I removed an element from the XML I was returning from my web service to my InfoPath form. When I did that, the field was still on the form but it became completely disabled. Taking a guess, since you are having a problem with returning null, maybe no blank XML node is being returned. To test, inspect the XML that is being returned from your web service by debugging in Visual Studio. Run the web method and see if the node is missing when you expect the value to be null.
    Jason
    http://www.k2distillery.com/
  • 03-24-2007 09:59 AM In reply to

    • CGlover
    • Top 500 Contributor
    • Joined on 01-21-2006
    • United Kingdom
    • Posts 34
    I had this one. I was getting a dataset from an SQL query in Access. Whenever the returned column value was null, the node simply did not exist in the record. I got around this by bodging the query to add "" to any columns that might be null. This always returned a node, even if null. I had to do something similar to force the type of a node in a dataset to be Decimal when the value was zero - add (1.1-1.1) to the value in the query. (I was building a form based on a webservice data connection so it was the only way to 'fix' the node type).
    Clive Glover
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.