Tag Info

Hot answers tagged

15

You can always add ?contents=1 to any url in SharePoint to see what specific webparts that are used in the site/page. Example: http: //test.sharepoint.com/Pages/default.aspx?contents=1


5

The Office Dev Patterns and Practices repo on GitHub has a great sample for provisioning custom web parts on the host web from inside of an app which should be a viable option for your situation. You could use this pattern to allow users to retrieve a custom configured web part and have it inserted into their host web allowing them to insert it at will (you ...


4

What you're asking is a bit complex to implement, but it's possible. You need to use AssetPickerDialog to get the same behavior as what you've mentioned, to pick up the image from library. I've implemented AssetPicker once, but that's for a different implementation, kind of searching entity from custom database. And that AssetPicker was triggered from a ...


4

You're missing the WebId property: var xlv = new XsltListViewWebPart(); using (var oSite = new SPSite(" http : / / app:3333/ ")) { using (var oWeb = oSite.OpenWeb("/ProxymIT/Direction")) { var oList = oWeb.Lists["AdministrativeNotes"]; //your list name xlv.WebId = oWeb.ID; xlv.ListId = oList.ID; xlv.ViewGuid = ...


4

Try using the same Google RSS feed URL without HTTPS, then it should work. so instead of https://news.google.com/news/feeds?cf=all&ned=in&hl=en&topic=n&output=rss use http://news.google.com/news/feeds?cf=all&ned=in&hl=en&topic=n&output=rss I did a quick test and it worked in SP when using the HTTP URL but not ...


4

You're only option is to contact Microsoft Support in a new service request from the Office 365 Admin Center with your Correlation ID. Ref: How to find more Info on Correlation ID for Office 365 SharePoint Online site These are your support channels in Office 365.


4

I would recommend the following example for loading web parts using JSOM: var ctx = new SP.ClientContext(); var pageFile = ctx.get_web().getFileByServerRelativeUrl(pageName); var webPartManager = pageFile.getLimitedWebPartManager(SP.WebParts.PersonalizationScope.shared); var webPartDefs = webPartManager.get_webParts(); ...


4

You are trying to read the property values too early in the web part life cycle. The property values are populated from the content database after the constructor has run. If you check the property values in OnLoad or OnPreRender you will see the values you have set in the editor.


4

Please try deleting "Error Web Part" from web part maintenance page. This is your "LightningConductorWebPart" which is throwing error.


4

You can, however it'll require adding code to the parent page and utilizing window.postMessage(). You will have to add an event listener on the parent page to listen for the message, and then open the dialog: window.addEventListener("message", receiveMessage, false); var receiveMessage = function(event) { if (event.origin !== "your app") return; ...


4

Please use List view filter webpart instead of choice filter webpart. It will fulfill your requirement.


4

Try adding the query string parameter to the URL: IsDlg=1 Can't test right now but that works for dialogs. Maybe it works for the page viewer too. I can try it out when I get back to my desk. EDIT Thanks to Akhoy for pointing out an issue with IsDlg when using the PageViewer web part. David Lozzi's blog describes the issue but basically, use IsDlg if ...


3

This can be definitely possible while using asset dialog provided OOTB in SharePoint. This dialog uses AssetPickers.js file present in _layouts/15 directory of SharePoint server. I found one blog and try it on my side by creating visual webpart and make the file selector as one of its properties. Link of ...


3

My take on these: Server-side code is fun and easy to write, and you can incorporate any feature of SharePoint in order to manipulate it. You can build out vast solutions that touch many different aspects, even outside SharePoint, and bakes it into SharePoint using webparts, timer jobs, event receivers, and the like. It is hard to maintain, and migration ...


3

It seems it occurs since sp.js library that contains SP.ClientContext class is not yet loaded when your code runs. Use SP.SOD.executeFunc to ensure that the specified sp.js library is loaded when the code runs. Try to change ApproveRejectRDA function to enclose it in SP.SOD.executeFunc like this: function ApproveRejectRDA(id, approved) { ...


3

When you get this type of requirement, you normally start with trying to understand what the real business case is. I mean, the security model in SharePoint is there for just that, security. When you get requirements trying to bypass it, you should be careful and really make sure to understand the real need. With that said, there are cases when you need to ...


3

You can get the ID through GetLimitedWebPartManager method You need file URL, the scope and something to filter by. Here is an example: _api/Web/GetFileByServerRelativeUrl('/sites/test/Home.aspx')/GetLimitedWebPartManager(scope=1)/WebParts?$expand=WebPart&$filter=WebPart/Title+eq+'Test'


3

user19952 has the easiest (and probably best) method, however as you can see from their screenshot there can be many web parts on one page, and it can be hard to differentiate which is which if you're not already familiar with the web parts. If you want to use the ID to find exactly what the web part is, you can use Powershell: $site = Get-SPSite ...


3

You should click on Apply then Ok on the web-part properties window. Also make sure page is published. During editing the page, the title will get displayed, and we can't change that behavior.


3

Microsoft's pattern and practices group has published guidance, including a hierarchical configuration manager library. The library uses a list or property bags. You can read more at http://www.microsoft.com/spg. (I would avoid web.config - the change management process for web.config in SharePoint is not reliable.)


3

You could store the connection string in an SPPersistedObject which you could then modify via PowerShell. You can also store it in the SPFarm or SPWeb property bag. I prefer the SPPersistedObject. You can see a real-world implementation of that here: https://github.com/Nauplius/FoundationSync/blob/2013/FoundationSyncSettings.cs


3

From MSDN for SharePoint 2013. If you want complete control over how a Web Part appears on your site, and if you want that Web Part to appear on all pages of a certain type, add the Web Part directly to a page layout. If you want a Web Part to appear on all pages in a site, you can also add a Web Part directly to a master page. Try with this ...


3

From the Excel Web Access Web Part it's not possible to edit the workbook in such a way that you save content. Excel Web Access is a Web Part. It can display all or part of an Excel workbook, and enables interaction with the workbook in a browser by using Dynamic Hierarchical Tag Markup Language (DHTML) and JavaScript. Because Excel Web Access is a ...


3

As Pradip has already told the reason for this behaviour I won't repeat it here again. But there are a couple of things you can try. Have a look at this article, Inconvenient Content Query Web Part and server-relative URLs, which suggests - Another way to get around this issue is to use a Feature Receiver. After activating the Feature that provisions ...


3

This is because it is not deployed by your solution, only referenced! In Visual Studio, double click the Package file and choose the "Advanced" tab. Then on that tab add a reference to the file from where nuget downloads it in your project folder. This way it will be deployed to GAC on installation of your wsp


3

Best way to move SharePoint solutions is using .wsp file which is created as you deploy any solution just copy from development, paste in production and then add and deploy solution there by power shell. To move list use export functionality in central admin of development and then import the .cmp file in production. done!


2

You can accomplish that using jquery. The idea is on page load to see if a field exists. This field should exist in view1 and not in view2. Let's name it Field1. If Field1 exists, hide the webart Add for ajax to the page or the master page or in a script editor. Next install firefox+firebug. Open the infopath form in browser, rightclick on the webpart ...


2

DataFormWebPart.ViewFlags property gets or sets the type of content to be displayed by the DataFormWebPart. The DataFormWebPart.ViewFlags property return type is SPViewFlags enumeration that describes the view type of a Web Part: [System.Flags] [SubsetCallableType] public enum SPViewFlags : long { None = 0L, Html = 1L, ClientModified = 2L, ...


2

You can use the SP.ListOperation.Selection class getSelectedItems() method to get the selected list items. You will get the IDs of the selected list items based on which you can do the further processing. Here is a good post. You might also want to consider going through this post.


2

Image Web Part doesn't allow specifying usemap attribute, so I'd recommend using Script Editor webpart instead and deal with code. It's not difficult at all. E.g. simplest code for an image tag looks like this: <img src="http://site.com/path/to/your/image.png" /> In your case you should also add usemap attribute: <img ...



Only top voted, non community-wiki answers of a minimum length are eligible