View Fields Doesn't seem to be working

Dec 24, 2012 at 7:08 AM

Hi, 

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.

regards,

farhan

Dec 25, 2012 at 6:53 AM

Seems to be working after adding following lines:

spQuery.ViewFieldsOnly = true;

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