Wednesday 4 November 2009

Sharepoint view filter by year

[TR]
Bir listede 2008 yılında girilmiş kayıtları ayrı bir view'da göstermem gerekiyordu. View'larda Date karşılaştırması yapamadığımız için normal yollardan bu tarz bir şey yapamıyordunuz. Ben de bu problemi şöyle çözdüm;
  • Yıl2008 adında bir calculated column oluşturdum ve formül olarak =TEXT([Created];"yyyy") değerini girdim. (eğer syntax erro hatası alırsanız =TEXT([Created],"yyyy") yazmayı deneyin).
  • Kolonun dönüş değerini de "Single line of text" olarak ayarlayın.
  • Artık yıl değerini text olarak döndüren nur topu gibi bir kolonunuz oldu. Şimdi view'inize gidip Yıl2008 değeri 2008 olanları filtrele diye seçebilirsiniz
[ENG]
I needed to filter the list items which was created at 2008. Since date filtering is not supported we can not do this. So I solved the problem by doing the following;
  • Created a new calculated column and named it year2008
  • wrote =TEXT([Created];"yyyy") as the formula. If it gives syntax error try writing =TEXT([Created],"yyyy")
  • Set return type of the column as "single line of text"
  • Now you have a column which gives created year of the current item. Now you can get the items which was created at 2008 by filterin year2008 column is equal to 2008.

No comments: