This project is read-only.

View Fields Doesn't seem to be working

Dec 24, 2012 at 8:08 AM


Thanks a lot for sharing such great code. Helped me a lot. 

One thing that doesn't seems to be working is "ViewFields". I have added them as per your guidance but it is not working.

Any help.



Dec 25, 2012 at 7:53 AM

Seems to be working after adding following lines:

spQuery.ViewFieldsOnly = true;

spQuery.ViewFields = cmgr.GetViewFields().Replace("<ViewFields>", "").Replace("</ViewFields>", "");