lundi 21 février 2011 11:33
We would really like a filter (button or checkbox) that when viewing a library, you could switch on and off depending on whether you wanted to see major versions only or major and minor versions.
So, for example, you would see version 1.0, 1.1, 1.2, 2.0, 2.1, 2.2. Then after clicking the filter, you would just see 1.0 and 2.0.
Any ideas on how to make this happen?
- Modifié Mike Walsh FIN lundi 21 février 2011 14:32 Is it possible changed in Title to How + ? Title shortened.
Toutes les réponses
mercredi 23 février 2011 01:17
According to your description, you want to filter major version in document library. I am sorry to tell you that it is not possible to do it. In document library, you couldn’t distinguish between major version and minor version with filtering. I suggest that you should use workflow with SharePoint Designer for checking in or checking out to operate version settings.
Here is a link, please refer to:
- Marqué comme réponse Emir LiuMicrosoft Contingent Staff, Moderator mardi 1 mars 2011 01:09
jeudi 12 mai 2011 18:43
You can filter your Library using Views.
Create a Library.
Create a new View named Major.
Using SharePoint Designer, convert the Major View to an XSLT View.
Apply filtering to the Data View using the Approval Status field = Approved.
Using the same steps as above, create another View named Minor, and apply a filter = Draft.
Step by step instrcutions can be found here:
jeudi 30 juin 2011 17:42
Edited to Say: Sorry this is not a full solution. I have since found that the calculated fields do not update automatically when you up version the document. They only seem to recalculate if I specifically modify the settings on the calculatd field i.e. Go into settings, click to modify the field, then save without editing anything.
I to needed to be able to filter by Major and Minor versions, and I was able to achive the functionality with no code or Sharepoint designer.
If versioning is switched on, then any major version will be x.0 and any minor version would be x.<anything other than zero>.
I first tried to do this with a calculated column, but found that I did not appear to be able to use the version column in my formula so I did the following.
1. Create a calculated column (I called mine "myVersion") with a simple formula of "=Version" and an output of Number
2. Create another calculated column (I called mine "MajorVersion") with a formula of "=ISNUMBER(SEARCH(".0",MyVersion))" and an output of Yes/No. This will return a Yes if the Myversion column contains a .0 string (Major version) and a No, if it contains anything else
3. You can now create a view based on MajorVersion column. MajorVersion = Yes to show aonly Major versions and MajorVersion = No to show minor versions.
Hope this helps
- Modifié edwar368 jeudi 30 juin 2011 22:11 Not fully correct solution
vendredi 1 juillet 2011 17:12
Have you fully tested this?
It seems to only work on the first try, any further updates are not showing in the myVersion column.
This is why I went the SharePoint Designer route.
lundi 8 août 2011 11:49
To display only major versions; use a filter on the version column with the condition CONTAINS and value ".0". No minor versions will have a version number containing ".0".
vendredi 30 mars 2012 17:05
Do you know how I might accomplish the inverse? I want to show only items with versions that are not ending with .0
jeudi 6 septembre 2012 15:27
I would suggest you use the Versioning Settings of the library and set the Draft Item Security so that only users with edit permissions see draft items. That way the people who have read permissions will see the published major versions only. There would be no need to set additional filters, this out-of-the-box setting will do the trick.