Timeline for Updating an SPListItem without knowing SPSite or SPWeb
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 8, 2011 at 21:20 | vote | accept | Tim Gabrhel | ||
Jul 8, 2011 at 21:20 | comment | added | Tim Gabrhel | Oh, duh. I forgot that it was limited to individual site collections. I should be able to pass my Site collection ID along with the items to the repeater. Thanks! | |
Jul 8, 2011 at 20:59 | comment | added | Colin | The SPSiteDataQuery is passed to an SPWeb's GetSiteData method even. To make it return data from the entire site collection, you need to specify the Query's Webs (Scope), Lists and, if needed Lists properties: msdn.microsoft.com/en-us/library/… | |
Jul 8, 2011 at 20:56 | comment | added | Colin | An SPSiteDataQuery is executed against 1 specific Sitecollection, and will only return data from that site collection. If you need yur data to be cross site collection (or cross web app, or farm even (in case you are crawling other farms too :-D)), you need to query the Enterprise Search app in your farm. | |
Jul 8, 2011 at 19:51 | comment | added | Tim Gabrhel | Wow. Fantastic! I didn't know those fields came back. The only issue I can see now is that I don't know which site collection that the web exists in. These fields coming back in my query can be from multiple site collections. | |
Jul 8, 2011 at 19:47 | history | answered | Colin | CC BY-SA 3.0 |