2

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.

  • 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
1

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

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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