I'm a total noob with Infopath. I'm trying to design a screen where the user selects an ID number from a dropdown. The app then reads a record from a SQL Server table and populates fields for subsequent update. For the life of me, I cannot figure out how to do this in Infopath.
I found a website that kinda explained it. The sample they gave was looking up a company address, etc. through entry of a company id. Sounds pretty much like what I wanted, so I copied their code and changed it to point to my datasource, etc. The website is http://radio.weblogs.com/0131777/stories/2004/02/27/howToPopulateItemsFromASecondaryDataSource.html
I am getting an error on line 14: Xdocument.DOM.setProperty("SelectionNamespaces", 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:q="http://schemas.microsoft.com/office/infopath/2003/ado/queryFields" xmlns:d="http://schemas.microsoft.com/office/infopath/2003/ado/dataFields" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-04-30T13:57:22" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003"');
The error message says that Xdocument is undefined. I have two questions:
1. Is there an easier way to do what I want to do than what is shown on that website? If so, what do I need to do?
2 If not, how do I fix the Undefined error?
Thanks!!