programmatically fill fielsd

W

Wyatt

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
 
G

Greg Collins [InfoPath MVP]

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.

--
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top