I'm trying to fill fields programmatically from a secondary data source.
Like: XDocument.DOM.SelectSingleNode("../my:FieldName") .Text = ?? ........
.(XDocument.DOM.SelectSingleNode("../myFields/dataFields/d:InvMaster") .Text
Thanks
S.Y.M. Wong-A-Ton - 23 Mar 2006 19:26 GMT
You'll have to be more specific on what your question is.
---
S.Y.M. Wong-A-Ton
> I'm trying to fill fields programmatically from a secondary data source.
> Like: XDocument.DOM.SelectSingleNode("../my:FieldName") .Text = ?? ........
> .(XDocument.DOM.SelectSingleNode("../myFields/dataFields/d:InvMaster") .Text
>
> Thanks
Greg Collins [InfoPath MVP] - 01 May 2006 21:49 GMT
One problem with your code is that you are using ".." (i.e. parent node) while trying to select a node from the root (XDocument.DOM). This just isn't going to work.

Signature
Greg Collins [InfoPath MVP]
Visit Brain Trove (http://www.BrainTrove.com)
Visit InfoPath Dev (http://www.InfoPathDev.com)
I'm trying to fill fields programmatically from a secondary data source.
Like: XDocument.DOM.SelectSingleNode("../my:FieldName") .Text = ?? ........
.(XDocument.DOM.SelectSingleNode("../myFields/dataFields/d:InvMaster") .Text
Thanks