开发者

When I execute a CAML Query in an event list handler, I don't get all the list fields

开发者 https://www.devze.com 2023-02-11 12:28 出处:网络
When I execute a CAML Query in a list event handler, the query开发者_如何学Go executes against the current view for the list.I have certain fields that I need to query regardless of the view - how do

When I execute a CAML Query in a list event handler, the query开发者_如何学Go executes against the current view for the list. I have certain fields that I need to query regardless of the view - how do I get the "allitems" view or equivalent for the actual list.


Look for SPList.DefaultView

There you can get the ViewFields property and see what fields are being returned.

0

精彩评论

暂无评论...
验证码 换一张
取 消