05 November 2012

SharePoint List showed twice

You happen to write a List Definition and of course it Schema.xml file.

I also went a few times :)

But .. What happens that you copy a code that you have before?

It is said that the "copy - paste" is the programmer's best friend (after Google, of course)

I copied DefaultView=true twice, and I see it in "view all site content" the list showed twice (each time for a different view)

<Views>
   ...
   <View>
     ...
     DefaultView = "True"
     ...
   </View>
   <View>
     ...
     DefaultView = "True"
     ...
   </View>
</Views>




All you need to remember is to type only "DefaultView = true" once!

Roi.

 

1 comment:

Unknown said...

Dude, you are king. The only article related to my problem, was yours. Luckily it was enough...

Post a Comment