Double Eval statment outputting XPath instead of Expected Results - InfoPath Dev
in

InfoPath Dev

Double Eval statment outputting XPath instead of Expected Results

Last post 06-05-2012 11:50 AM by schuess. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-05-2012 11:22 AM

    Double Eval statment outputting XPath instead of Expected Results

    Why is my double eval statement producing xpath, when I am expecting either a company name or email address?
     
    Also, a default value is being assigned, before any selections have been made
     
    xdMath:Eval(xdMath:Eval(../my:Vendors/my:Vendor_List, 'concat("../my:Vendors/my:Vendor_List/my:Vendor_Company", ";")'), "..")
    Filed under:
  • 06-05-2012 11:37 AM In reply to

    Re: Double Eval statment outputting XPath instead of Expected Results

    This is because you have quotation marks around "../my:Vendors/my:Vendor_List/my:Vendor_Company", which makes it a string, rather than a path.  No need for the quotation marks there.

     I also suspect that you should be using just my:Vendor_Company rather than ../my:Vendors/my:Vendor_List/my:Vendor_Company.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 06-05-2012 11:50 AM In reply to

    Re: Double Eval statment outputting XPath instead of Expected Results

    Jimmy:

    This is because you have quotation marks around "../my:Vendors/my:Vendor_List/my:Vendor_Company", which makes it a string, rather than a path.  No need for the quotation marks there.

     I also suspect that you should be using just my:Vendor_Company rather than ../my:Vendors/my:Vendor_List/my:Vendor_Company.

     

     

     

    Thank you Jimmy. You were RIGHT! Applied your changes and it works. I had messed around with this, but could not get the combination right. Was trying single quotes and double quotes in different places and combinations. Microsoft is part responsible for how they automatically format things.

     

    Thanks again!

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