Filling expressionbox with data from secondary data source - InfoPath Dev
in

InfoPath Dev

Filling expressionbox with data from secondary data source

Last post 06-22-2007 02:25 AM by stumbler. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-22-2007 12:30 AM

    Filling expressionbox with data from secondary data source

    Hello again,

    I am trying to fill an expression box with an email address. The email address can be found in a secondary data source. the Xpath expression I entered can be found below. Although each employee that can be chosen from a dropdown box has a valid email address filled in, I am not getting any value in expression box

    xdXDocument:GetDOM("Approvers")/dfs:myFields/dfs:dataFields/d:LOCALSALES_APPROVERS/@EmployeeEmail[../@EmployeeID = current()/my:Approved_by1]

     Any help will be highly appriciated

    Hans.
    Infopath 2003 / Jscript
  • 06-22-2007 02:25 AM In reply to

    Re: Filling expressionbox with data from secondary data source

    Found it myself:

    Changed the Xpath expression to

    xdXDocument:GetDOM("Approvers")/dfs:myFields/dfs:dataFields/d:LOCALSALES_APPROVERS/@EmployeeEmail[../@EmployeeID = current()/@Approved_by1]

    and now it works!

    Hans.
    Infopath 2003 / Jscript
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.