Hi,
I'm not very savvy with InfoPath or XML so I am extremely lost at this point. I'm currently working on a project where it is required to populate basic info i.e last name, first name based on an input string of the persons SSN. I have conditions and rule setup to where if I input the SSN and it's equal to the data source SSN it populates the fields I want, although it only populates the first record of my XML source. I was told that I need to setup an XPath query filter, but I have absolutely no idea how to code it. The auto-populate would occur when the user inputs an SSN and hits the submit button to retrieve the data.
Here's the XML Data source:
<?xml version="1.0" encoding="UTF-8" ?>
- <dataroot xmlns:od="urn:schemas-microsoft-com:officedata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="MCTFS.xsd" generated="2010-07-07T12:48:36">
<Last_x0020_Name>Jones</Last_x0020_Name>
<First_x0020_Name>Jane</First_x0020_Name>
<AFADBD>10/21/2008</AFADBD>
<Command>MCAS CPEN</Command>
<RUC>M67604#http://M67604#</RUC>
</MCTFS>
<Last_x0020_Name>Kane</Last_x0020_Name>
<First_x0020_Name>Joe</First_x0020_Name>
<AFADBD>06/2/2002</AFADBD>
<Command>3rd MAW</Command>
<Subunit>Maintenance Det</Subunit>
<RUC>M40039#http://M40039#</RUC>
</MCTFS>
<Last_x0020_Name>Smith</Last_x0020_Name>
<First_x0020_Name>John</First_x0020_Name>
<AFADBD>12/13/2006</AFADBD>
<Command>MCIWest</Command>
<RUC>M00682#http://M00682#</RUC>
</MCTFS>
</dataroot>
its just a sample I made up to work with it, but I really need help!!! Thank you!!