开发者

Get Departments and use them in a combobox MOSS 2007

Anyone knows how to do this?

I need to get all the "Departments" from MOSS 2007 and use them in the editable properties of 开发者_Go百科a webpart...

My only idea how to solve this would be by getting the departements in the constructor of my webpart and writing it to an enum using reflection, but maybe that's to complicated or impossible to do.

Thanks,

Ruben


You'll probably need to create a custom ToolPart in your webpart.

Here is a similar question and the tutorial on msdn.


Here is an article explaining a very creative way of getting a list of departments for a given site. from this you could easily give the end users the option via a public enum down the path you initially started.

http://www.sharepointsecurity.com/sharepoint/using-the-keywordquery-class-to-get-a-list-of-departments/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜