InfoPath 2007 Query Secondary Datasource - InfoPath Dev
in

InfoPath Dev

InfoPath 2007 Query Secondary Datasource

Last post 05-14-2015 10:29 AM by Wheels. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-13-2015 02:28 PM

    InfoPath 2007 Query Secondary Datasource

    Good afternoon.

    Basically I am trying to get a value from a secondary datasource given the value ID.

    I wrote a query to join the main and secondary datasource to capture several fields (based on the username), and I was able to get the two main connection items, but not the secondary. If I could figure out how to pass the username from the InfoPath form to the access query I would be able to get all three, or if the queryFields were assessable on the secondary datasource.

    When I link the field I need to the field in the secondary datasource, it lists the 1st item in the table. I am trying to filter on the item id, but I cannot figure out how.

    I know some C#, but I'm am not sure how to query and populate the InfoPath fields.

    Any suggestions would be greatly appreciated. Thank you in advanced.

    WHEELS

  • 05-14-2015 07:46 AM In reply to

    Re: InfoPath 2007 Query Secondary Datasource

    Hi -

    So, you can use code for this (here's a sample - https://support.microsoft.com/en-us/kb/826992)

    Or, if you are returning all items and trying to use an XPath filter to get the right one back - what is the expression you are using? Click the "Edit XPath" button in the formula editor and paste it into a reply and I might be able to give you some tips (or attach your template under Options in a reply and give me hint where to look for the issue).

    Hilary Stoupa

  • 05-14-2015 10:29 AM In reply to

    Re: InfoPath 2007 Query Secondary Datasource

     Thank you Hilary. Have a great day.

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.