January 2010 - Posts - Hilary Stoupa
in

InfoPath Dev

Hilary Stoupa

January 2010 - Posts

  • Adventures in Troubleshooting

    This is going to be short and sweet. The other day I ran into an issue that made me aware of a little ... inconsistency .... in Visual Studio that I'd like to make sure everyone else is aware of to.

    I have a table that looks like this:
    Table

    I have a form template with a data connection to that table. 

    I have a bit of code that looks like this:
    Code snippet

    What you can't see is that I have a trailing space in my Orders table for PO Number def-456. And if you look in the XML visualizer for the data source, you won't see it there, either....
    Xml Visualizer

    Opening the Text visualizer for the OuterXml for the nav variable tells a different story:
    Text visualizer

    So, if you are troubleshooting some code, trying to figure out why you aren't getting back a node that you are just sure should be in your data source... take a minute to look at both visualizers. It may save you some time and at least a bit of your sanity.

Copyright © 2003-2017 Qdabra Software. All rights reserved.
View our Terms of Use.