sharepoint

How to override an internal function

寵の児 提交于 2020-01-07 02:51:13
问题 How can i override a virtual internal function using reflection? I have an abstract class in a sharepoint assembly (SPIisWebServiceApplication) that i want to implement. In my logic i'm obligated to override the IisApplicationName property that i can see it using reflector it is writen like below: internal virtual string IisApplicationName { get { return base.Id.ToString("N"); } } it is only internal it is not protected... I don't want the IisApplicationName to be an id because it appears in

Get items permissions in OneDrive for Business using microsoft Graph API

冷暖自知 提交于 2020-01-07 01:49:07
问题 Context I'm trying to get the permissions granted on items in personal OneDrive for Business drives using the Graph RESTful API . Querying the OneDrive for Business: GET: graph.microsoft.com/v1.0/drives/<driveID>/items/<itemID>/permissions. and : GET :graph.microsoft.com/v1.0/drives/<driveID>/root/permissions/<itemID> I'm getting the following error : "code": "-2130575138, Microsoft.SharePoint.SPException", "message": "MountPoint security error: host web isn't a personal site" However, if I

Sharepoint issue, selective behavior?

谁都会走 提交于 2020-01-06 19:35:14
问题 I was recently assigned a task in Sharepoint as part of my internship, and it's been puzzling me for some days. Note that this is the first time I'm using Sharepoint so I might be using wrong terms here. They have a site that contains 2 web parts; a list called "Company Directory" and below it, a list (I think) called My Information. The way this is supposed to behave is that all users in the group "Employee Audience" can view both web parts. Employees are supposed to "add a new item" to the

Sharepoint 2010 xslt dataview : modify table structure to display list item

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-06 19:09:10
问题 I have an image list to be display. Standard template in SharePoint, each item will be looping using xsl:for-each and display in a table as single row like sample below __________ | | | image | |__________| __________ | | | image | |__________| __________ | | | image | |__________| __________ | | | image | |__________| simple code for this : <xsl:for-each select="$Rows"> <tr> <td><xsl:value-of ......./> </td> </tr> </xsl:for-each> what i need to do is to display 3 item in each row as sample

WSS GetListItems Not Returning Folders without Inherited Permissions when Calling with GUID

我与影子孤独终老i 提交于 2020-01-06 16:33:27
问题 WSS 3.0 List Service I am running GetListItems() on a Picture Library (name Pictures) using the follow CAML query: <Query> </Query> <ViewFields> <FieldRef Name="EncodedAbsUrl"/> <FieldRef Name="Title"/> <FieldRef Name="ContentType"/> </ViewFields> <QueryOptions> <Folder>Pictures\Uploads</Folder> <ViewAttributes Scope="RecursiveAll"/> </QueryOptions> This query correctly returns all files and folders in the Uploads folder. However, if I navigate to the Uploads folder and select Edit

How to get an image library properties in a site and all its subsites in SharePoint?

旧城冷巷雨未停 提交于 2020-01-06 15:50:13
问题 I have an image library in a site and its subsite and I want to access its properties using the SharePoint object model. I don't know how to achieve that using SharePoint Object Model. Here is the image of that Library Note here is the structure of my SharePoint sites and subsites. You can see the 'Images' Library in each of sites and subsite. 回答1: All these properties are available under SPList using (SPSite oSPsite = new SPSite("spdev/";)) { using (SPWeb oSPWeb = oSPsite.OpenWeb()) { SPList

Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)) in SharePoint

强颜欢笑 提交于 2020-01-06 15:12:12
问题 After googling for many hours for a solution for the above Sharepoint exception, I have come to SO for help on this one... I believe the cause of me getting the above exception is because of the following code: try { using (SPSite site = new SPSite(siteId, spUserToken)) { using (SPWeb web = site.OpenWeb(webId)) { createNewSite(web); } } } createNewSite(web) changes the name and URL of "web" using AllowUnsafeUpdates, so when it comes out of the method it has been changed. My few months worth

SharePoint Foundation 2013 - Linking CSS files in a site collection

十年热恋 提交于 2020-01-06 09:59:20
问题 I ran into an issue with linking my css files in master page. <SharePoint:CssRegistration ID="StyleSheet1" Name="~sitecollection/_catalogs/masterpage/Resources/css/quack_1200.css" After="corev15.css" runat="server" /> <SharePoint:CssRegistration ID="StyleSheet2" Name="~sitecollection/_catalogs/masterpage/Resources/css/main.css" After="corev15.css" runat="server" /> These files are not being loaded. When I access the console in browser it doesn't show any errors and when I investigate the HTML

Sharepoint features, custom aspx pages at various site levels

↘锁芯ラ 提交于 2020-01-06 08:16:30
问题 I've asked a similar sort of question here but what to be more specific. I want to be able to deploy a solution and activate a feature that provisions various custom aspx pages to different site levels within my web site. So my first custom aspx page would be at the root: http://example.org/custompage1.aspx And then another custom aspx page would appear at a deeper level: http://example.org/subsite1/custompage2.aspx I've got my solution scoped to the "web" level. If I activate the feature at

SharePoint workflow does not start for automatically uploaded documents

被刻印的时光 ゝ 提交于 2020-01-06 08:07:56
问题 I have a service that automatically uploads documents to a SharePoint 2013 Document Library. I created a simple workflow that starts when a new item is created and just sends an email notification; however, the workflow only starts when I manually add a document and not when it's uploaded by the service. Thank you in advance for any ideas on how to resolve it. 回答1: If you have attached your workflow to the list, the workflow should be triggered automatically. I found some case like this