We have a custom list with a person column. Want to display that persons Department on the list view. Possible with jquery/spservices?
I have a jquery script that returns the currently logged in users Department. Just need that code for every row, by the person column.
I have some jquery and spservices code that returns the Department of the currently logged on user. What I need is Jquery code that creates a new column in a list view and plugs in the department for a specific person column in that row. Anybody know where I might find such a jquery example.
<script src="http://xxxxx/jquery/jquery.js" type="text/javascript"></script>
<script src="http://xxxxxxxxxxx/jquery/SPServices.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
var Dept = $().SPServices.SPGetCurrentUser({
fieldName: "Department",
debug: false
});
alert(Dept);
});
</script>