Get Specific item from SharePoint List - InfoPath Dev
in

InfoPath Dev

Get Specific item from SharePoint List

Last post 06-15-2012 09:29 AM by Anson Hidajat. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-11-2012 08:50 AM

    • wintert
    • Top 500 Contributor
      Male
    • Joined on 06-26-2007
    • Bet Yizhak
    • Posts 35

    Get Specific item from SharePoint List

    Hello,

    I have a list named: Roles with 2 columns: email and department.

    I have 5 items in this list: 2 of them are from Marketing. and the other 3 are from HR.

    I have a text in my InfoPath form that every form load sets this textbox with the email of the current user.

    I want to iterate the Roles list and check if the current user is from Marketing then hide this control.

    The problem is that when I do it, it only brings back the LAST row from the iteration.

    Does someone know anything about it? or tried it? (Although when I think of that, InfoPath doesn't know when to stop iterating)

  • 06-15-2012 09:29 AM In reply to

    Re: Get Specific item from SharePoint List

    There are a couple of ways you can go about this.  You can use a SP list connection then use query fields to only return the list item where the email matches the person who opened the form.  Then you can just use a rule to check what department that person belongs to.

    Or you can retrieve all the data and use rules again to filter the entries based on email then look up the department similar to the previous suggestion.  Hopefully that gets you down the right path.  Let me know if you need additional help on how to implement.

    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

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