double eval to get person data from SharePoint list (no code, browser form) - InfoPath Dev
in

InfoPath Dev

double eval to get person data from SharePoint list (no code, browser form)

Last post 06-28-2014 11:56 AM by SusanP. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-19-2014 10:54 AM

    double eval to get person data from SharePoint list (no code, browser form)

    I can use this formula

    xdMath:Eval(xdMath:Eval(xdXDocument:GetDOM("Approvers")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW, 'concat(d:Approver, "; ")'), "..")

    to retrieve all the Approver data . . .


    But I can't figure out how to change the formula to get only AccountId.   When I use "pc:" in front of Person, InfoPath says formula is valid, but browser says "msxml6.dll
    Reference to undeclared namespace prefix: 'pc'."  When I use "d:" in front of Person, InfoPath says the formula does not point to a valid location path of a field or group.

    Advice greatly appreciated.  Thank you!   


    Susan Pierce
    University of Texas at Arlington
  • 06-22-2014 08:05 PM In reply to

    Re: double eval to get person data from SharePoint list (no code, browser form)

    Hi Susan,

    I'm attaching a sample from a webinar I did last year.  Expand the data source and take a look at the default value on the /my:myFields/my:AccountIdAggregation/my:People node. It has a double eval that it gets from a People Picker.

    Good luck!

     

    Patrick Halstead
    Project Manager at Qdabra
  • 06-23-2014 08:18 AM In reply to

    Re: double eval to get person data from SharePoint list (no code, browser form)

    Patrick Halstead:

    Hi Susan,

    I'm attaching a sample from a webinar I did last year.  Expand the data source and take a look at the default value on the /my:myFields/my:AccountIdAggregation/my:People node. It has a double eval that it gets from a People Picker.

    Good luck!

     

     

     

    thanks Patrick - I don't have any trouble with persons in the Main data source.  I'm running into difficulty when I'm trying to get the details of a person field from a SharePoint list -- I think the namespace is the problem -- neither "pc:" nor "d:" is working for me in both InfoPath verify formula and browser form rendering. 
    Susan Pierce
    University of Texas at Arlington
  • 06-28-2014 11:56 AM In reply to

    Re: double eval to get person data from SharePoint list (no code, browser form)

    OK, I get it now. I just need xdMath:Eval(xdMath:Eval(xdXDocument:GetDOM("Approvers")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Approver/pc:Person/pc:AccountId, 'concat(., "; ")'), "..") 

    My mistake was thinking Person was a repeating type.  Thank you Patrick!!

    Susan Pierce
    University of Texas at Arlington
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.