tag:blogger.com,1999:blog-1086236600201615358.post8164513407148776024..comments2024-02-29T18:18:52.811+01:00Comments on Baris's SharePoint Blog: Most viewed documents in SharePoint 2010Baris Bikmazhttp://www.blogger.com/profile/05338567851939421673noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-1086236600201615358.post-37693268071079061272013-09-12T10:42:55.308+02:002013-09-12T10:42:55.308+02:00Hard to say, never tried. But I think it can work ...Hard to say, never tried. But I think it can work as you said with blank user information.Baris Bikmazhttps://www.blogger.com/profile/05338567851939421673noreply@blogger.comtag:blogger.com,1999:blog-1086236600201615358.post-27577350377756719782013-09-06T19:42:06.037+02:002013-09-06T19:42:06.037+02:00Thanks for your post! Do you know if this will wor...Thanks for your post! Do you know if this will work for Anonymous users too? Would it just give us blank user information?jeremyhttps://www.blogger.com/profile/04593184038142163570noreply@blogger.comtag:blogger.com,1999:blog-1086236600201615358.post-3558768177683830692013-08-05T18:29:15.006+02:002013-08-05T18:29:15.006+02:00@vikranthreddy: Never tried it before but you can ...@vikranthreddy: Never tried it before but you can remove the restriction spQuery.RestrictToList(list), create an array of Lists you want to include. Check if entry.Doclocation within this list.<br /><br />string[] lists = { "sites/MySiteCollection/MySubsite/Documents1", "sites/MySiteCollection/MySubsite/Documents2" };<br />entry.LocationType == SPAuditLocationType.Url && lists.Contains(entry.DocLocation)Baris Bikmazhttps://www.blogger.com/profile/05338567851939421673noreply@blogger.comtag:blogger.com,1999:blog-1086236600201615358.post-27793670682933573352013-07-22T12:06:11.930+02:002013-07-22T12:06:11.930+02:00thanks for the information.i have one question her...thanks for the information.i have one question here is there any way to get the top viewed documents from more than one list(in my case i want to get from 6 lists). <br />Thanks in advance.<br /><br />Regards,<br />Vikranth CH.vikranthreddyhttps://www.blogger.com/profile/14573182961883540045noreply@blogger.comtag:blogger.com,1999:blog-1086236600201615358.post-63745279213581968602012-07-20T13:28:08.289+02:002012-07-20T13:28:08.289+02:00I've never tried, but could you add the Webana...I've never tried, but could you add the Webanalytics Webpart to your page , activate the feeds of the webpart and use it as source for your webpart or JavaScript.<br /><br />Another idea would be perhaps to write your own HTTP Handler and manage the count of views in your own database table.Baris Bikmazhttps://www.blogger.com/profile/05338567851939421673noreply@blogger.comtag:blogger.com,1999:blog-1086236600201615358.post-68812426091865809852012-07-19T16:04:27.325+02:002012-07-19T16:04:27.325+02:00Hi,
Thanks for the post.
Can we create same with...Hi,<br />Thanks for the post. <br /><br />Can we create same without using Auditing?YashSubhttps://www.blogger.com/profile/13039808037203222963noreply@blogger.comtag:blogger.com,1999:blog-1086236600201615358.post-21554483249001474042012-05-24T11:24:52.709+02:002012-05-24T11:24:52.709+02:00@Stina Nilsson: You can capture all documents view...@Stina Nilsson: You can capture all documents viewed by a user. The auting saves the UserID for each event. (The ID of a User within a sitecollection). You have also the ItemID in the logs. <br><br> That means you loop through the SPList and save them in an hash with the Guid as key. Than you loop through the audit log and remove all entries from the hash, which the current user has already viewed. (The way is of cource not performant)Baris Bikmazhttps://www.blogger.com/profile/05338567851939421673noreply@blogger.comtag:blogger.com,1999:blog-1086236600201615358.post-5526557509546810412012-05-24T11:16:24.940+02:002012-05-24T11:16:24.940+02:00A Page is also a document in SharePoint. Therefore...A Page is also a document in SharePoint. Therefore you have to enabled auditing on the pages library. If you mean Web of Sites than you have to activate auditing on site collection level and check for SPAuditItemType.Web.<br /><br />For pages the most easiest way would be to check the two SPAuditEntry Properties DocLocation and LocationType. LocationType should be = SPAuditLocationType.URL. Then check the DoLocation property if it contains the string "/pages/".Baris Bikmazhttps://www.blogger.com/profile/05338567851939421673noreply@blogger.comtag:blogger.com,1999:blog-1086236600201615358.post-37544028433034781372012-05-18T11:51:59.141+02:002012-05-18T11:51:59.141+02:00Good tip, thanks!
Is there a way to apply this to ...Good tip, thanks!<br />Is there a way to apply this to pages rather than documents?Ova (Excuse My Reading)https://www.blogger.com/profile/06272388401733786586noreply@blogger.comtag:blogger.com,1999:blog-1086236600201615358.post-81412602971281814932011-11-02T07:54:10.890+01:002011-11-02T07:54:10.890+01:00Hi, Thanks for a great post. I have a qustion you ...Hi, Thanks for a great post. I have a qustion you might have the answer to. Is there any way to programmatically capture if current user has opened an item?<br /><br />The thing i want to do is that i want to get a list of non-open items in a specific list for logged in user.<br /><br />Any kind of help would be appreciated.<br /><br />Thx<br /><br />StinaStina Nilssonnoreply@blogger.comtag:blogger.com,1999:blog-1086236600201615358.post-33469832846924569622011-07-20T09:27:19.355+02:002011-07-20T09:27:19.355+02:00Very good post. Thanks for these updates.Very good post. Thanks for these updates.SharePoint Migrationhttp://www.xavor.com/index.php/what-we-do/solutions/xavor-sharepoint-2010-migratornoreply@blogger.com