Feeds:
Posts
Comments

Archive for the ‘Lists’ Category

I was trying to create a method to delete all items in a sharepoint list .
here is the code , It’s simple but a question remained for me at the end :

        public void DeleteAllRecords()
        {
            SPList list_a = web.Lists["UserDocs"];
            SPListItemCollection itemsCol = list_a.Items;
            if (itemsCol.Count > 0)
                for (int i = itemsCol.Count-1; i > -1; i–)
                {
                    [...]

Read Full Post »

There was a question in my mind that how is possible to create a list or a document or form library, then create some views in it, but limit simple users to see only one view. and so some specific users ( for example managers ) see more than one view and it’s possible for them to change between views.
I solved my [...]

Read Full Post »

Today I was working on an Infopath form. the form retrieved data from a list that had more than 1500 records. but when I previewd the form, my repeating table in the form showed only limited number of rows. ( e.g 100 record )
I found that it’s because of sharepoint lists. In default views the lists are [...]

Read Full Post »