Solved

SharePoint 2010 Create View based off Department

Posted on 2013-01-04
3
783 Views
Last Modified: 2013-01-04
I'm trying to create a view based off of a users department in ADUC.

I created a view that shows everything a user has modified by saying when Modified is equal to [Me]. I have a Department field that corresponds with a users "Department" in ADUC. How do I pull that ADUC attribute into the view? I would imagine something like [Me].[Department]. Anyone have a clue?

Thanks!
0
Comment
Question by:brendan-amex
  • 2
3 Comments
 
LVL 50

Accepted Solution

by:
teylyn earned 500 total points
ID: 38745540
Hello,

you can't do that with a SharePoint view out of the box. This would required custom code.

If you want to stick to out of the box functionality, you could add a column for "Department" to the list, populate it with the values per user (this could be done with a workflow when the document is created) and then create a view that is filtered on the Department column.

You can then connect the List view web part with a Filter web part,  so that if a filter is selected in the Filter web part, the view is filtered by that parameter.

That way, you only need to build one view, instead of hard-coding a department filter and building a view for each department.

cheers, teylyn
0
 

Author Comment

by:brendan-amex
ID: 38745577
Thanks Teylyn, I'm not sure I follow what you say though. I want the view to update based on the person hitting the webpage, which would mean I would have to affix the Department name to the individual person in SharePoint, correct? There is already a Department column on my list.
0
 
LVL 50

Expert Comment

by:teylyn
ID: 38745587
What I'm saying above is: It can't be done. At least not with out of the box tools.

You would need code for that.

As an alternative, you can create views by department.

I'm not in front of SharePoint right now, but it might be possible to use SharePoint Designer and a DVWP to create a filter parameter on the current user's department, especially if that is stored in a field in the list.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now