How to show only elements from an External List, where login or names is the same as for the currently logged in user?
-
1Please be clear what is needed.– Varun VermaSep 1, 2014 at 9:53
-
I have got a External List, and I want to corelate by the Login or the Name and Surname of Worker. And when the User login for his account he will show only things on which record is his Login, or Name and Surname.– Grzegorz ZSep 1, 2014 at 10:02
-
How did you got the External Content Type work? VS or SPD?– Malin De SilvaSep 1, 2014 at 10:16
1 Answer
This can be better done at the External Content Type level. In the ReadList method, get the current user and check with an if condition whether the username matches the current username before returning the IEnumerable or the collection.
-
-
1Yes follow from here: malindesilva.net/2014/07/sharepoint-2013-external-list.html Sep 1, 2014 at 11:21
-
But it is Visual Studio, not a Sharepoint Designer. I don't have Yet any Developement Studio Prepered. Sep 1, 2014 at 11:49
-
1Yes you may be able to do it with views. That is the option as of now. If you are making things work with views make sure you fill all the possible security gaps. Sep 1, 2014 at 11:51
-
1If you have a user column in the External list, then you can filter that column by [Me] Sep 1, 2014 at 12:00