Using double eval to get users who don't exist. - InfoPath Dev
in

InfoPath Dev

Using double eval to get users who don't exist.

Last post 10-31-2012 12:44 PM by ldkud50. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 10-31-2012 11:22 AM

    Using double eval to get users who don't exist.

    I have a secondary data source for a Weekly Summary Report. The users are required to submit weekly. I want to be able to return the users who don't exist in that weeks query. To display in calculated value of "User who didn't submit". I used this - substring(xdMath:Eval(xdMath:Eval(xdXDocument:GetDOM("Weekly Summary Report")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Author/pc:Person/pc:DisplayName[. != xdXDocument:GetDOM("AccMgrs")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Name], 'concat(";", " ", .)'), ".."), 2) . This returns all the names vs just the names that don't exist. To sum it up I want to compare the list of submitted "Weekly Summary Report" to "AccMgrs" which is the list of all the names. Hoping someone can pick this apart and help.
    Filed under:
  • 10-31-2012 12:29 PM In reply to

    Re: Using double eval to get users who don't exist.

    Hi ldkud,

    So to clarify, you want to list all of the people in AccMgrs who are not in Weekly Summary Report.  Is that right?  If so, I think this might work:

    substring(xdMath:Eval(xdMath:Eval(xdXDocument:GetDOM("AccMgrs")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Name[not(. = xdXDocument:GetDOM("Weekly Summary Report")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Author/pc:Person/pc:DisplayName)], 'concat(";", " ", .)'), ".."), 2)

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 10-31-2012 12:44 PM In reply to

    Re: Using double eval to get users who don't exist.

    Jimmy you are the man! Worked perfectly... Thank you.
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.