Populating Fields from Drop down - InfoPath Dev
in

InfoPath Dev

Populating Fields from Drop down

Last post 06-12-2006 10:34 AM by dlgross. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-06-2006 12:17 PM

    Populating Fields from Drop down

    I am attempting to populate several fields from the values returned from a secondary source connected to SQL Server. The first time I select from the drop down, the text boxes get filled correctly, but when I select another item from the drop down, the text boxes do not get updated. Any idea where I should look to figure out what is wrong?
    Dean
    Charlotte, NC
  • 06-10-2006 01:32 AM In reply to

    Re: Populating Fields from Drop down

    Hi Dean,
    Can you be more specific with the repro steps and send us the solution so that we can look at it?
    Patrick Halstead
    Project Manager at Qdabra
  • 06-10-2006 08:41 PM In reply to

    Re: Populating Fields from Drop down

    This does seem a little weird, check out this HowTo:
    http://www.infopathdev.com/howto/tutorials/default.aspx?i=9111ef580f95479890fc18fb2c5bac85
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 06-12-2006 10:34 AM In reply to

    Re: Populating Fields from Drop down

    I attempted to use the HowTo article, but I'm a little bit confused about the following step.
    Select the option to Edit XPath (advanced), modify the XPath by appending an XSL conditional statement at the end to match the following example.

    xdXDocument:GetDOM("Clients")/ClientInfo/Clients/Client/Name[../ID = current()]
    When I use [../ID=current()], I get the following error:
    "xdXDocument:GetDOM("JobMaster-Pworks")/dfs:myFields/dfs:dataFields/d:JobMaster/ID" does not point to a valid location path of a field or group.
    Removing one of the periods before the /ID makes the error go away and I have the following statement:
    xdXDocument:GetDOM("JobMaster-Pworks")/dfs:myFields/dfs:dataFields/d:JobMaster/@Job_Description[Job_number = current()]
    But I do not get any data in the text box control.
    Dean
    Charlotte, NC
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.