Sharepoint 2010 folder level views on document library - sharepoint-2010

I have a document library in SharePoint 2010 and want to create different views on the basis of attribute values like
View1 shows only those folder which have Close projects
View2 shows only those folder which have Active projects
so I want to create folder level column which can be set as close/active.
Any Idea to solve ?

you can use content types for this. You just need to create content types and setting the parent content type group as Folder Content Types and setting the parent content type to Folder. Once done you can create a new site column and use it later on your list's folder.
A more detailed step by step instruction can be found here.

Related

Trying to extract data from mdb file upon selecting the file in a listbox

I am generating a new project from an existing template every time i click on create and renaming the same as a new project name (an mdb file)in the same directory. The details mentioned in to the right namely location, engineer, contractor etc are stored in this mdb file at this instance.- so far i am successful....
Now that i have the list of projects listed in my list box I would like to select any one and I wish to see the details for the same to my right.
I've posted a link having a .bmp image of the form. Help is highly appreciated.

Folder Content type and Document Set content type in SharePoint 2010

I have this requirement to add default folders to a document set, that is when a new document set is created using a specific content type it produces few folders by default. when I try to add Folder Content type to Document Set Content type SharePoint does not seem to allow this type of operation, only document and other content types are allowed.
any ideas how to work around this?
Many thanks
Folders are not supported in Document sets:
http://technet.microsoft.com/en-us/library/ff603637%28v=office.14%29.aspx
Actually you can auto generate the folders by accessing the Document Set settings on the Manage Content Type panel for the Document Set content type. Create the folders in the default content section by using the default Document Content Type, providing a file name and adding a dummy WORD Document. In addition, you can generate some placeholder content types with a parent type of document (just generate the extra content types and add them to your Document Set Content type making them available by adding them to the available content types in the top section and then clicking the link in the default content section to add them) to generate additional folders by providing a folder name in the folder column and a dummy WORD document. Just generate

Passing files selected in project views to external tools

Is it possible to pass paths to all files currently selected in the project view to an external tool?
I know you can use the $FilePath$ macro but it only seems to pass the path to the first selected file ignoring the rest and no other macro seems suitable. A workaround would also be using all the files from the parent directory, but that's not feasible in my case.
It's not possible right now, please vote for this feature request.

VS2010 Projects with Common Files

I have a vb.net project that has 2 exe's that get built as well as the installer. The two exe's share a bunch of common files. I do not want to have two copies of the common files or mess around with having build events that copy things around (if possible).
My method was to create two projects in the same folder and have them point to the files they needed. This appeared to work until I tried to compile both apps at which point I get an error in a file called Application.Designer.vb. It seems that project files create this file in their folder and when I have two solutions in the same folder they conflict.
So my next effort was to create the second project in it's own folder and just add the items as needed. The problem here is that VS2010 doesn't hold a link to a file in a different folder it copies the file to the new project folder.
What is the vs2010 way to get this done?
You were almost there when you created your second project. Rather than adding the files to the second project, you need to link them.
When you add them, VS copies the source file to the current project's directory.
When you link a file, it leaves it in its current location and just adds a reference to the file to your project. This means that you are operating with a single source file instead of multiple copies.
To link a file, choose Add Existing Item... menu item from the Project menu, select the file(s) that you want to link, and then click the dropdown arrow next to the Add button on the file dialog and select Add As Link.
We have class files that are shared this way among a half-dozen projects, including Win Forms, Silverlight, ASP.Net, Services, and PocketPC.
The easiest solution would be to shove all the common stuff into a common project, and simply reference that project from your other two solutions.
Solution A:
Project A
Project C
Solution B:
Project B
Project C
Just my recommendation anyway.

list view files in .NET

Can anybody tell how to list view opened files in VB.NET.
The opened files should be seen in list view at the left part of GUI.
You can manually track open files, for example, by keeping a collection that contains their names. Once a new file is open, a new item containing the file path is added to the collection. When a specific file is closed, that item is removed from the collection.
Note: The collection I am talking about can have different data for specific files, not only file paths.
Given you have that collection, you can easily bind it to a ListView control.