Tag Info

New answers tagged

0

thx a lot. Though it does not search multiple text from search box ? Example if I type : sharepoint asp.net.. it will only search for sharepoint write ? How to fix this ? Thank you


1

Picture Library Slideshow web part In SP2013, there is a check box Show Toolbar use that to hide next previous and pause control


1

If you are open to editing page in SharePoint Designer, then you can use following logic using JavaScript. Place a div tag around the web part <img src="MaximizeImage" id="webpartitleMaximize" onclick="Maximize()"/> <img src="MinimizeImage" id="webpartitleMinimize" onclick="Minimize()"/> <div id="webparttitle"> <!-- ...


1

You can save User data as below string[] userarray = a.CommaSeparatedAccounts.ToString().Split(',');; SPFieldUserValueCollection usercollection = new SPFieldUserValueCollection(); for (int i = 0; i < userarray.Length; i++) { SPFieldUserValue usertoadd = ConvertLoginAccount(userarray[i]); usercollection.Add(usertoadd); } ...


3

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; ...


0

Display Column settings are deprecated in the SharePoint 2013. Their is workaround suggest by one of MSFT support guy try it. create a page name p2 in Pages library, and check it in, then publish it. And try the powershell script below: $web = get-spweb http://sp/sites/retu $webpub = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web) ...


0

If they are audiences and not AD groups or Sharepoint groups, then it is probably an underlying GUID mismatch and it can't be resolved. While named the same, they have unique GUIDs under the hood on the Devs machine and the QA/Prod environment. This is most likely where the problem is. At a previous employer, they had news which was heavily reliant on ...


1

Change the path to include reference from 15 hive i.e private const string _ascxPath = @"~/_CONTROLTEMPLATES/15/


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 ...


2

If you enter a URL into the Content Editor Web Part as a relative link, the link converts to an absolute URL when the entry is saved. This automatic conversion can be an issue if you are deploying content from a staging environment to production, where absolute URLs reference the original server's name. To address this automatic conversion issue, You ...


0

Question Sign in to vote 2 Sign in to vote Hi, If you want to expand and collapse web part in SharePoint 2013, there is a solution as follows: Find the classes of div tags of title and content of this web part using IE developer(F12), in my environment, they are like ms-webpart-chrome-title and ...


1

The web part gallery is a special document library that is located at the root of each site collection. I dont think you can create another custom Web Part Gallery, because this library having direct links with web.config files safe control section. Web Parts are server-side controls that run inside the context of site pages in Microsoft SharePoint ...


0

You could simply apply your settings and add this snippet to your page: (function () { //this snippet reloads an iframe on the page in a set interval function getIFrameBySrc(src){ var matchingElements = []; //shim for querySelector heavily stolen from ...


0

Seems like your secure store connection is not configured properly


0

If you have a wsp file for the webpart. you can download it from webpart gallery then Make a copy of that file and name it original so as you will have an extra copy. Then with another copy rename the extension from .wsp to .cab. It will make it a rar file and then you can open the file contents in visual studio and see the contents of the webpart. If you ...


1

Your WebPart has error's, check the ULS logs, it Says ystem.NullReferenceException: Object reference not set to an instance of an object. at WebPart.CreateChildControls() and so on. You add your webpart in a test Page, and Then attach the (W3Wp)worker process to debug the code, Attach the breakPoint on Load and OnInit method, Then start debugging you will ...


0

I know it's a little bit late for answering this thread, but this may be useful for someone with the same issue. Apparently, sandboxed solutions are somehow not running properly in Domain Controller servers. We need a little bit of coding, as it was pointed out in a previous answer, for sorting it out. Source


0

This is a Style Issue happened by overriding Microsoft Style. I think the source of this is either Master Page or Page Layout. Check the Master Page and see if that helps.


0

If you have Static objects then the associated SPSite/SPWeb/SPList object will get used by different threads (in your case two web part code might get executed in different threads). Hence to resolve you can try removing static.


0

Try <table class="table table-hover"> <thead> <tr> <th>First Column</th> <th>Second Column</th> </tr> </thead> <tbody> <% lstTable = Data.DTable.Tablo(); foreach (ETable temp in lstTable) { ...


1

You can create your own by using the Search API (or REST) to look at Query Suggestions. https://msdn.microsoft.com/en-us/library/office/dn194079.aspx


0

You can try Html Form Web Part. Add a HTML Form Web Part to the page you wish to display the list, or document library on. Edit the webpart and click on "Source Editor". Delete the default code, and add the following: <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jQuery/jquery-1.9.1.min.js"></script> <!-- Load and ...


1

You can use Content Query Web Part. Then choose the site and library you want to display.


0

There is no direct way. You can do this using PowerShell. Use PowerShell to get the web part properties and set it based on already created one.


1

The following example demonstrates how to add Content Search Web Part using SharePoint 2013/Online CSOM API Prerequisites: SharePoint Online Client Components SDK var pageUrl = "/Pages/SearchResults.aspx"; var webPartSchemaXml = @"<?xml version='1.0' encoding='utf-8'?> <webParts> <webPart ...


2

Since in SharePoint 2013 CSOM API was introduced SP.Publishing.Navigation namespace, the following example demonstrates how to create a publishing page. How to create a publishing page via SharePoint 2013 JSOM function createPublishingPage(pageName,pageLayout) { var ctx = SP.ClientContext.get_current(); var pubWeb = ...


1

Use the C# following code to modify the web.config: string content; string WebServiceServer = "example.com"; // <=== your host-name here using (TextReader tr = File.OpenText(bindingFilePath)) { content = String.Format(tr.ReadToEnd(), WebServiceServer); } SPWebConfigModification modification = new SPWebConfigModification("system.serviceModel", ...


1

I guess you are trying to insert web part into Rich Text Editor (RTE) of publishing page (e.g., for Body only page layout), in that case the solution would consist of two steps: insert web part into hidden zone template named wpz since the publishing page does not contain any public zone templates insert special marker for web part into ...


0

Exact same issue in SP2013 as user24085. I had already tried the tabular view check box and configuring the webpart to refresh the view settings. Deleting and adding the app web part back to the page resolved it for me.


1

There is default SharePoint CSS class available that you can use. ms-dialogHidden is the class when you don't want particular div or any element to appear on the dialog. So simply specify extra class to the navigation div ms-dialogHidden.


0

When a user views his or her own profile on Person.aspx page, the Organization Chart Web Part only displays the user's college and immediate manager & hierarchy. this is what OOTB available. from the picture i am seeing you are viewing the HTML view of Org Chart.Please click on the SilverLight view( use the IE browser, it will not render properly in ...


1

This error occurs since GetCurrentCtx function is a part of core.js SharePoint library, it is intended for getting context info of XLV web part (ContextInfo object), so: core.js library have to be loaded first it could be executed only in the SharePoint page that contains the instance of XLV web part since ContextInfo object is generated when the XLV ...


2

If your web part is stored in V3 format (http://schemas.microsoft.com/WebPart/v3) then the following example demonstrates how to get web part property: $path="c:\Search Box.webpart" $propertyName = "Title" #replace to your property name UrlWebPart [xml]$webPart = Get-Content $path $property = $webPart.webParts.webPart.data.properties.property | ...


1

Before getting to the cause of your issue, let me give you some recommendations for improving your code, because, as it stands, it is hardly readable. Avoid clattering the global scope with unnecessary variables and functions. Look into the module pattern, it will help you keep your code cleaner. You don't really need to use the Function.CreateDelegate, ...


0

You should open web part maintenance page. (appending query string contents=1) Then remove all web parts, then add one by one. This way you can find which webpart is causing the issue.


0

You can read it from array using array index string pageUrl = webTemplateDetailSettings[1]; string webPartZone = webTemplateDetailSettings[2]; string title = webTemplateDetailSettings[3];


0

We also faced this issue. To resolve this, after deployment we went to site collection feature, deactivated that feature and again activated the feature. This solved the issue for us.


0

We had the same issue in recent past, where our team updating a wsp but for some reason it was not updating it properly. We tried. remove the solution completely and redeploy it. reset IIS. ON/Off it is working n not. But one thing we noticed if we reboot the server then it updated. Finally with the help of MS, we figured out what's happening. even we ...


1

I am assuming that you are using your given code and SharePoint 2013 for your question. You are using SPSecurity.RunWithElevatedPrivileges(delegate().. that means you can have full access to the operation which you are performing inside that code blocks, this will use Application pool credentials automatically to perform the operations. Take a look at MSDN ...


0

Make sure Nedia you follow all the steps explained here: Link. Or you can refer this example here. I doubt that there might be some problem with the App permission you are assigning for the app. Using CSOM you can do your operation but for that first you need to assign the permission to your app to access those functionalities. Hope this helps!


2

The rules for when to Dispose SharePoint object unfortunately aren't simple. The overall principle is that object use create using new or by enumerating should be disposed and object which are simple references from an existing should be left alone. But as this is SharePoint development (and if it was easy everybody could do it) there is a number of ...


2

I'm also relatively new to SharePoint development, but will try share some of my experience. :) When I created new code/functionality to a site, I make sure that I 'deactivate' the webpart/feature, then under your Admin Settings I retract the solution from the farm. Before I package the solution in Visual Studio, I update both the .feature title and ...


0

I had the same issue and found that turning the Publishing feature on enabled me to insert Data Views in SharePoint Designer.


0

Before site admin access the landing page, the Blog Notifications Web Part (RSS WP) has not ListId associated, but after access is automatically set and within the RSS WebPart shows the corresponding ‘Posts’ List contents. Workaround: Set on RSS Web Part the corresponding ‘Posts’ ListId Guid try{ $PostsList = $oWeb.Lists[$ListName] ...


0

Copy the existing display template: go to https://your-server/_catalogs/masterpage/Forms/AllItems.aspx copy Item_Person.html and rename it After this, open your copied file and check whether uPicUrl is empty. If yes, provide it with your default URL. Now, you have to create new Result type. Go to Site settings -> Search -> Result types. Find 'Person' ...


1

Copy the out of the box Display Template, rename it and upload it back to SharePoint. Edit the Display Template to point to your desired image. There are many answers to this process here in SE as well as blog posts on the topic. You just have to create a new Display Template.


0

I guess you are getting issue while updating metadata for image. To add meta data like title and description you can use hashtable in list.RootFolder.Files.Add For example you can check this link: SPFile.CopyTo() vs RootFolder.Files.Add()


0

This should be a good start: http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/02/sharepoint-2013-customize-display-template-for-content-by-search-web-part-cswp-part-1.aspx The writer explains what Display Templates are, how they work, and how you can add your own or edit already existing ones to your needs.



Top 50 recent answers are included