sharepoint

User added\deleted event in sharepoint

孤街浪徒 提交于 2019-12-23 01:46:14
问题 How can i know when a user is added (or deleted) to a sharepoint site or to a group in a sharepoint site? I tried to attach an SPItemEventReceiver on the user information list, but the main problem is that i can't know when a user is added (removed) from a group... What is the best approach to do that?? noting that i'm using it for licensing purpose and i want to know when the number of users in a specific group passed the maximum of the allowed number. 回答1: This is an unexpected pain to

SharePoint 2010 Search Result file icon change

混江龙づ霸主 提交于 2019-12-23 01:13:47
问题 I am trying to change the aspx file icon from default icon to customized icon. I edited the xsl of the results.aspx page "fetched properties" for this section. I wanted to make sure that LegalDoc16.gif icons are displayed for the items who has "LegalDocument" content type. Please let me know if I dont have to syntaxed properly configured. I can do a search like ContentType:"legaldocument" and I get all the documents. so I know contenttype metadata property is being pulled. Please suggest.

Working Together: SQL Server 2008 R2 Reporting Services Integration in SharePoint 2010

删除回忆录丶 提交于 2019-12-22 19:00:05
SQL Server and SharePoint have always worked together well. When SharePoint Server 2010 and SQL Server 2008 R2 were released, there were some significant improvements to the integration between SharePoint and SQL Server 2008 R2 Reporting Services (SSRS). Here’s a look at how to configure and use the latest enhancements. Server Integration Architecture The Reporting Services Add-in for SharePoint is what truly drives the integration between the two servers. You install the add-in, which is available as a free download from the Microsoft Download Center , on all SharePoint 2010 Web Front End

Upload Document to Sharepoint Library using low-level web services

笑着哭i 提交于 2019-12-22 18:24:43
问题 I am trying to upload a document to a document library for Sharepoint in iOS, and having limited success. I have used Copy.CopyIntoItems to at least get my Document to appear in the target document library, using this soap request: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <CopyIntoItems xmlns="http://schemas

SharePoint web services: test if file exists

自闭症网瘾萝莉.ら 提交于 2019-12-22 17:51:14
问题 I'm using SharePoint web services in C#. I have my code working to check files and check them out using the Lists web service. I need to test to see if a file exists; I can find lots of examples for doing this using the object model API, but I can't seem to find a straightforward way of doing this using web services. 回答1: This code may do, it's a little rough, but demonstrates how to get a list of files based on the title. public static bool PageExists(string listName, string webPath, string

Reading/Filtering Distribution Group's Subgroups of an active directory?

让人想犯罪 __ 提交于 2019-12-22 15:37:30
问题 I've an Active Directory with domain myDomain.local , under it there exists a Distribution Group that contains many groups. How can I read (programmatically) all these subgroups to retrieve a list of their names ? And how to optimize the query to filter the result so that it just retrieves all the groups that ends with the word Region ? BTW, I'm using C#.Net, ASP.Net and sharepoint, and i'm not experienced with AD. 回答1: If you're on .NET 3.5 (or can upgrade to it), you can use this code using

Updating EndDate causes “Invalid data has been used to update the list item”

淺唱寂寞╮ 提交于 2019-12-22 14:52:15
问题 Here is the full error: Invalid data has been used to update the list item. The field you are trying to update may be read only. I am basically try to update a Calendar Event in Sharepoint. First I get the following. ClientContext clientContext = new ClientContext(deptUrl); Web web = clientContext.Web; List list = web.Lists.GetByTitle(deptCal); clientContext.Load(list); CamlQuery query = new CamlQuery(); query.ViewXml = "<View><Query><Where><IsNull><FieldRef Name='EndDate' /></IsNull></Where>

Updating EndDate causes “Invalid data has been used to update the list item”

橙三吉。 提交于 2019-12-22 14:52:09
问题 Here is the full error: Invalid data has been used to update the list item. The field you are trying to update may be read only. I am basically try to update a Calendar Event in Sharepoint. First I get the following. ClientContext clientContext = new ClientContext(deptUrl); Web web = clientContext.Web; List list = web.Lists.GetByTitle(deptCal); clientContext.Load(list); CamlQuery query = new CamlQuery(); query.ViewXml = "<View><Query><Where><IsNull><FieldRef Name='EndDate' /></IsNull></Where>

Sorted gridview selects wrong row

别说谁变了你拦得住时间么 提交于 2019-12-22 12:45:44
问题 I have a gridview (actually a SPgridview) And i made the columnname clickable so the users can sort the rows using the data. And that works fine. The problem occurs when users try to select a row after they sorted the data. I can see that the gridview kinda "forgets" how the rows were sorted and selects the row that was at the clicked index before it got sorted.. How do i fix that? I tried sorting the row again after the user selects a row, but that doesnt seem to work. And should the

Sharepoint 2013 Javascript object model IE compatibility

梦想的初衷 提交于 2019-12-22 12:37:17
问题 I am trying to inject some JS code into a wiki page to allow LaTex markup to be rendered using the MathJax library. After a bit of playing around I realised that I needed to run the MathJax script when the page was NOT in edit mode. It would appear that the MS JS client library for SP2013 has a neat way of checking var InEditMode = SP.Ribbon.PageState.Handlers.isInEditMode(); if(!InEditMode){ // load MathJax library from CDN } This works great for recent versions of Chrome, Firefox and IE10+,