Advertisement

04.23.2008 at 01:21AM PDT, ID: 23345716
[x]
Attachment Details

create Document Library Views programmatically

Asked by hansbla in MOSS-Sharepoint, Programming for ASP.NET, Microsoft Visual C#.Net

Tags: , , ,

Hi,

For one of our intranetsites, I have to create a knowledge management webpart on a Sharepoint site. Sharepoint is pretty new in our organisation and I'm still learning the ins and outs of it all.

So far users can choose from a selection of search criteria and then a SPgridview is created with the desired information. SPgridviews have a wonderfull option of creating a dropdown menu so you can perform some additional actions to the results in de SPGridview.

One of the options I want to give is the following:
The gridview displays a number of projects and some basic information. The project number has the SPmenu with three options: Edit the selected project, view the resources of the project and show the document library linked to the project number.
I already programmed the first two options, but the document library option is very different from these.

I have setup a document library with an additional column for the Project number.
Is it possible to get a document library view from a single project programmatically ?
I really would like to retain all the functionalities and workflows a SP doc lib provides. There's no sence it trying to reproduce this in code when Sharepoint already provides this.

Some sites give possibilities to get the list of documents in the library, but I really would like to have the document library view.

Can this be done ? And if so, how ?

Thanks.


Start Free Trial
[+][-]04.23.2008 at 07:46AM PDT, ID: 21421260

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.23.2008 at 11:39AM PDT, ID: 21423865

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.23.2008 at 12:13PM PDT, ID: 21424235

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.23.2008 at 12:14PM PDT, ID: 21424244

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.23.2008 at 11:28PM PDT, ID: 21428145

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MOSS-Sharepoint, Programming for ASP.NET, Microsoft Visual C#.Net
Tags: Microsoft, Sharepoint, 2007, C#
Sign Up Now!
Solution Provided By: hansbla
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628