This class exposes some simple methods which we use to interact with secondary data sources.
- Call the secondary datasource (query()),
- Query data (GetNodeValue(), GetValue())
- Set data (SetNodeValue).
The GetNodeValue and GetValue methods behave more like typical XSLT xsl:value-of calls where xpath queries that result in missing nodes do not cause catastrophic exceptions, but rather return empty strings. Trace messages can be returned if the xpath query does not return a node, but the call will not fail.
We added a winform to the InfoPath form that is called by the query method. The winform displays a progress bar, which runs in a separate thread so while the form is disabled by calls to a datasource/webservice, the progress bar gives the user something to look at. Also, because the winform runs in a separate thread, it displays while the form is initially loading (before the first view is rendered) - NICE!
I'll talk more about the winform and the speed-of-load issues which spawned the need/want of the progress bar in future entries.
If you'd like more info about the class, drop me a line.
Thanks for reading,
Jessel
No comments:
Post a Comment