locked
Person Column data for a specific person column in a View RRS feed

  • Question

  • I have a Custom list with a person column.  I'd like to display a Department for that person in a dynamically created column in a List view. 

    I have some jquery.js spservices.js code that pulls department from currently logged in user. What I need help with is creating the new column and processing each rows columns

    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://xxxx/jquery/jquery.js" type="text/javascript"></script>
    <script src="http://xxxx/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>

     

     


    ============================
    Thank You
    cyberpine.com
    Friday, November 4, 2011 6:25 PM

Answers