Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am trying to find a good sample code on updating the fields that are displayed within the default view.

The current code creates a list on the fly and then adds the needed columns.

Once the list is created and the new fields added, I need a way to make sure the new fields are displayed in the default view.

The issue I am having is that after I create the list and new fields, the default view is only displaying the Title field and nothing else.

Thanks.

share|improve this question
    
Configuring fields in a list does not automatically add those fields to a view. I have not had to configure a view via the web services though, and I none of the items are jumping out at me unless it is done via caml in the list update. –  Mike Oryszak Dec 5 '11 at 21:33
add comment

2 Answers 2

There is an attribute on the Method tag called AddToView which can be used when adding fields using UpdateList newFields argument.

share|improve this answer
add comment

The SP 2010 Web Services provides calls to work with Lists and Views. The following may be of help to you -

Lists Class and Methods

Views Class and Methods

Code fragment from MSDN showing Views modification and update.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.