Customizing the Sharepoint 2013 inbuilt "SearchResult" webpart

 
Acutally am working on the requirement,where i need to display the search results using Sharepoint 2013 inbuilt "SearchResult" webpart and where the results can be filtered by placing refining control in other Refiniment webpart in the same page.
here come the question is "how i can access the displayed results in my "searchresults" webpart in my custom code.,where i have to access the path from the results on page and downloading the files based on path content.... please guys.your
suggestions will be very helpful for my task...

Hi,
You can use the display templates to customize the results.  Please refer to the following article how to create the display template
Introduction to SharePoint 2013 Display Templates
Understanding how item display templates and hit highlighting work in SharePoint
Server 2013
Please mark it answered, if your problem resolved.

Similar Messages

  • Error while adding the app in the sharepoint(2013) page through powershell script

    Hi,
        I have created one powershell script to uninstall and install the sharepoint 2013 apps. The code is working fine, but after adding the app in the page I am getting the error "
    Internet Explorer can not display the webpage".
    If I am deploying the app through Visual Studio, its getting deployed successfully and I am getting an option to trust the app.And I am able to add it in the page. But this permission is not coming when I am installing the app using power shell.
    Please let me know whether to do any modifications to the power shell script.
    Thanks.
    Pradeep

    Hi,
       We are using sharepoint hosted app.
    Below is the script to uninstall and install the app.
    cls
    Add-PSSnapin Microsoft.SharePoint.PowerShell –ea SilentlyContinue
    # uninstall the app
    Write-Host "uninstallation of app"
    $InstalledSPApps = Get-SPAppInstance -Web "http://mySharepointSite.xyz.com"
    $appToUninstall = $InstalledSPApps | where {$_.Title -eq 'myCustomSharepointApp'}
    if ($appToUninstall -ne $null)
        Uninstall-SPAppInstance -Identity $appToUninstall ;
        Write-Host "uninstalled successfully"
    # Import-SPAppPackage
    Write-Host "Import the app"
    pause
    $sourceApp = ([microsoft.sharepoint.administration.spappsource]::RemoteObjectModel);
    $myspapp = Import-SPAppPackage -Path "D:\SharePoint 2013\AppsSolution\myCustomSharepointApp.app" -Site "http://mySharepointSite.xyz.com" -Source $sourceApp ;
    Write-Host "Enter to install the app"
    pause
    $app = Install-SPApp -Web "http://mySharepointSite.xyz.com" -Identity $myspapp;
    $AppName = $app.Title;
    Write-Host "app '$AppName' registered"
    pause
    $appInstance = Get-SPAppInstance -Web "http://mySharepointSite.xyz.com" | where-object {$_.Title -eq $AppName};
    $counter = 1;
    $maximum = 150;
    $sleeptime = 2;
    Write-Host -ForegroundColor White "Please wait..." -NoNewline;
    pause
    while (($appInstance.Status -eq ([Microsoft.SharePoint.Administration.SPAppInstanceStatus]::Installing)) -and ($counter -lt $maximum))
        Write-Host "." -NoNewline;
        sleep $sleeptime;
        $counter++;
        $appInstance = Get-SPAppInstance -Web "http://mySharepointSite.xyz.com" | where-object {$_.Title -eq $AppName}
    pause
    if ($appInstance.Status -eq [Microsoft.SharePoint.Administration.SPAppInstanceStatus]::Installed)
        Write-Host "The App was successfully installed.";
        $appUrl = $appInstance.AppWebFullUrl;
        Write-Host -ForegroundColor White "The App is available at '$appUrl'.";

  • Unable to get the SharePoint 2013 List names using Client object model for the input URL

    Please can you help with this issue.
    We are not able to get the SharePoint 2013 List names using Client object model for the input URL.
    What we need is to use default credentials to authenticate user to get only those list which he has access to.
    clientContext.Credentials = Net.CredentialCache.DefaultCredentials
    But in this case we are getting error saying ‘The remote server returned an error: (401) Unauthorized.’
    Instead of passing Default Credentials, if we pass the User credentials using:
    clientContext.Credentials = New Net.NetworkCredential("Administrator", "password", "contoso")
    It authenticates the user and works fine. Since we are developing a web part, it would not be possible to pass the user credentials. Also, the sample source code works perfectly fine on the SharePoint 2010 environment. We need to get the same functionality
    working for SharePoint 2013.
    We are also facing the same issue while authenticating PSI(Project Server Interface) Web services for Project Server 2013.
    Can you please let us know how we can overcome the above issue? Please let us know if you need any further information from our end on the same.
    Sample code is here: http://www.projectsolution.com/Data/Support/MS/SharePointTestApplication.zip
    Regards, PJ Mistry (Email: [email protected] | Web: http://www.projectsolution.co.uk | Blog: EPMGuy.com)

    Hi Mistry,
    I sure that CSOM will authenticate without passing the
    "clientContext.Credentials = Net.CredentialCache.DefaultCredentials" by default. It will take the current login user credentials by default. For more details about the CSOM operations refer the below link.
    http://msdn.microsoft.com/en-us/library/office/fp179912.aspx
    -- Vadivelu B Life with SharePoint

  • Do you need an additional slot for the RBS and does the RBS count as an additional hard drive in the Sharepoint 2013 Server farm?

    Hello Community
        If you have a clustered Sharepoint 2013 Server farm running RAID 10, on a
    clustered WS2012 R2 server that has 10 hard drive slots:
            (4) drives being part of the Sharepoint 2013 Server farm
            (1) drive for the Web App Server
            (5) are for hot swap if any of the production hard drives fail
        The question(s) is:
            - If the server only has 10 slots for hard drives are you still allowed to add a
    NAS/RBS drive and does the NAS/RBS drive get clustered also, or does this scenario require
    reducing the RAID level down to RAID 5 to allow for NAS/RBS hard drive?
            - Does the NAS/RBS hard drive need a hard drive for hot swap?
            - Does the NAS/RBS drive have to have Sharepoint 2013 Server or WS2012 R2 running on it?
            - Does the Web App Server have Sharepoint 2013 running or just WS2012 R2 running on it?
        Thank you
        Shabeaut

    RAID 10 requires a minimum of 4 hard drives. The LUN for RBS must be attached to the SQL Server, not SharePoint server, as a local drive. You just need to be running the minimum required OS for the version of SQL Server you're using.
    Do you mean Office Web Apps by "Web App Server"? If so, that cannot have SharePoint installed on it. Otherwise, if you're just referring to it as another SharePoint server, yes it would have SharePoint installed on it.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • SharePoint 2013 Foundation SearchBoxScript.webpart

    Search box is  no available on any site page.
    I've tried to create a new site as search server (Enterprise tag template) and when I try to open the search created site I get the following error.
    Sorry, something went wrong 
    An unexpected error has occurred.
    Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator. 
    Correlation ID: 0b5a5d9c-85a1-6072-9cae-82bae96b9a75 
    Once enabled "debug" in web.config: (callstack
    = “true” and customerror mode = “Off”) when open site i find the following trace error:
    Common Language Runtime detected an invalid program. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    Exception Details: System.InvalidProgramException: Common Language Runtime detected an invalid program.
    Source Error: 
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
    Stack Trace: 
    [InvalidProgramException: Common Language Runtime detected an invalid program.]
       Microsoft.Office.Server.Search.WebControls.SearchCommon.GetUserAdvancedLanguageSettingsUrl() +0
       Microsoft.Office.Server.Search.WebControls.ScriptApplicationManager..ctor() +1555
       Microsoft.Office.Server.Search.WebControls.ScriptApplicationManager.GetCurrent(Page page) +183
       Microsoft.Office.Server.Search.WebControls.SearchBoxScriptWebPart.OnInit(EventArgs e) +199
       System.Web.UI.Control.InitRecursive(Control namingContainer) +477
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +304
       System.Web.UI.WebControls.WebParts.WebPartManagerControlCollection.AddWebPartHelper(WebPart webPart) +440
       System.Web.UI.WebControls.WebParts.WebPartManagerControlCollection.AddWebPart(WebPart webPart) +228
       Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartWithRetry(WebPart webPart) +817
       Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts) +8218
       Microsoft.SharePoint.WebPartPages.SPWebPartManager.LoadWebParts() +146
       Microsoft.SharePoint.WebPartPages.SPWebPartManager.OnPageInitComplete(Object sender, EventArgs e) +350
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2059
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18056 
    I
    I've seen more than one issue similar to this in this forum.
    Someone has already fixed this problem? 
    Thanks in Advanced

    Hi eds2000,
    According to your description, my understanding is that you got an error when you used Search Box web part on pages in SharePoin 2013.
    If you remove the search box web part on the web part maintenance page, then add it into the page again, whether this issue occurres.
    Please open IIS, find the problematical web application pool, do a recyling for the pool, then restart IIS, compare the result.
    If this issue still exists, please check whether you have installed SharePoint 2013 October 8 CU. If not, please install it.
    SharePoint 2013 October 8 CU:
    http://support.microsoft.com/kb/2825665/en-us
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Modify Excel sheet from the sharepoint 2013 by remote event receiver

    Hi,
    I am new in sharepoint 2013.Actually i want to update excel sheet (that are stored in sharepoint library) by remote event receiver.
    Please help me how to do this.
    Thanks
    Sanjeev Tiwari
    Sanjeev Tiwari

    The proper response is that it's not possible because Excel Interops are not supported running on a server. The technical answer is that you could find work-arounds including treating it as an Open XML object. In either case, I think you need to develop
    the Excel processing component first and then connect to that the external event receiver.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Tool pane for selecting properties for app in SharePoint 2013(Something like webpart properties for apps)

    How to create a tool pane for apps in SharePoint using SharePoint hosted app model 2013..I mean i m looking for something like webpart propeties to be given to the user for selecting desired content.Can someone provide help code for this functionality

    Hi,
    According to your description, when users select several items in a library and click a button, you want to get related data from these items/files and then perform
    other operations.
    Yes, the “Custom Action in Ribbon” solution would be a good choice for you cause what you need is only clicking a button after selected items in a list view page.
    With JavaScript Client Object Model, we can get data of the selected items using JavaScript, then add the JavaScript code into the custom action to make it to be triggered
    when clicking the button.
    I would suggest you take a look at the two links below about how to work with custom ribbon button and JavaScript Client Object Model for a quick start:
    https://patrickboom.wordpress.com/tag/client-object-model/
    http://blogs.msdn.com/b/jfrost/archive/2009/11/08/how-to-display-a-sharepoint-dialog-from-ribbon-button-and-get-selected-item-context.aspx
    Best regards
    Patrick Liang
    TechNet Community Support

  • Create document preview in sharepoint 2013 content search webpart slideshow

    I want to show preview of documents(word,excel,ppt or videos) in the content search webpart slideshow view. By default we can show images from picture library in the content search webpart slide show view. But i need to show preview of documents(like search
    results document preview) in the help me to content search webpart slider. 
    Please help me to solve this issue!
    Thanks in advance!
    SangeethaAjith

    Hi, Thanks for your reply. Actually m working with Sharepoint Online 2013. I need to show the doc preview
    in content search webpart slideshow. If u have any idea pls let me know.
    The content search webpart is fetching documents using query and we didnt know what results are going to come. For the result documents i need to show the preview.

  • Sharepoint 2013 Content query webpart translation "BUG"

    I want to use a CQWP form my SharePoint(online) site in order to show all links in the link webparts. The site is in the Dutch language. What I want to do is described here:
    http://www.its-on-the-internet-so-it-must-be-true.com/2013/01/sharepoint-link-list-content-query.html So in the properties of the webpart I want to do this:
    In Dutch this looks like this (image 2 in my comment):
    Link; URL [Basiskolommen];
    Title: Comments;
    The field "Comments" is ok, this is a part of the URL when I go to the properties of that field "89%7D&Field=Comments"
    When I press apply in the properties the result is fine. The webpart return the link to a external site where the description of the link is the "Comments" field (in this example "SharePoint blog") (image 3):
    However, after that, when I press save (page). This is changes: Now I see the complete URL and not the description anymore (image 4)
    When I check the properties of the webpart I see that the field "Comments" is translated.
    Now is says "Opmerkingen". I do not have any clue how to avoid this translation.
    Any suggestions?
    thanks, Mike

    Hi Mike,
    According to your description, there is an unexpected issue occur when using a Content Query Web Part to query the Link list in your online environment.
    This is what I have done in my environment: in a Dutch site, create a Link list, add a column “Comments” into it. Then insert a Content Query Web Part into a page,
    set the “Presentation” as “Title: Comments;”, apply and save the page.
    It turns out that the “Title: Comments;” stay the same without being translated.
    In the web part properties panel:
    I would suggest you create another page and Link list and make the test again to see if it is an issue of the page in use.
    Feel free to reply if there any progress.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Where is the SharePoint 2013 Note Board Web Part?

    Was the Note Board web part deprecated in SP 2013? I don't see it under Social Computing web parts.
    Thanks,
    Chuck

    Hi Jasper - I added a newfeed webpart on the blank web part page. It is working fine in Post and Replies. But the news feeds are not appearing on my site. I explored that were is it storing data and found it is going in the Microblog list. How can I see
    the news feed on my site? I checked the my-site is configured and working. Other Ideas and Opinions ect.. I can see on my-site. 
    Any thoughts.
    Regards,
    Khushi
    I found out that my-site also has Microblog List. Each site collection has it's microblog list. Site Feed webpart stores data in their respective list. I am wondering if we can show my-site's news feed on my homepage which is in my root site collection.
    Any thoughts.
    Regards,
    Kausar

  • Installing and deploying a .webpart file in SharePoint 2013

    I have a webpart that took from a SharePoint 2010 web site from its webparts library. This webpart has the .webpart extension. I downloaded it as a copy. Now I want to install it to a SharePoint 2013 site ti its webpart gallery. I tried using Visual Studio
    by opening the .webpart file and copy its XML to the new empty .webpart source code. Also I uploaded the .webpart file to the Sharepoint 2013 WebPart Library. That also not successful. There was an error regarding when I insert the webpart to a page with a
    Correlation ID.
    The error is at the below.
    Unable to display this web part. To troubleshoot the problem, open this web page in a Microsoft SharePoint Foundation compatible HTML editor such as ...........................
    Correlation ID: cb3b839c-b011-e0f5-999c-31292d78623c
    Then how am I supposed to do this properly. I am new to Sharepoint.
    Could someone please help me to solve this matter?
    Thank you,
    Regards,
    Chiranthaka

    What web part is it?  Is it a custom / third party one?
    Also, more information on the .webpart structure might be handy -
    http://www.wictorwilen.se/Post/Web-Part-Properties-part-3-the-webpart-file.aspx
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Listform webpart is throwing error in SharePoint 2013

    Hi,
    I have added a listform webpart(newform of a SPlist) to a page. But,the page is throwing "Object Reference Not Found" error. If i replace the listform webpart with custom list form, i am not getting any error.
    Please let me know if i need to make any change in the SharePoint 2013 site. Any help is highly appreciated.
    Thanks

    Hi,
    How did you add a listform webpart to a page? Do you mind to breaking this down into steps so we can try to reproduce the error?
    James
    Please mark as Answered if it helped you
    James Tsai | SharePoint Consultant | MCPD,MCTS |
    www.jamestsai.net

  • Using SharePoint 2013 OIP the "Title" column is not displayed

    Using the SharePoint 2013 OIP against our SharePoint 2013 environment, I am seeing that the "Title" column is never displayed in any of the activities or published data.  This is the only limitation that is preventing me from using this OIP.
     Currently using the scorch OIP and am concerned that it seems is not being actively maintained.  Which by the way shows the Title column in all the same lists I am connecting to with the Microsoft provided OIP.
    Thanks for any guidance you can provide,
    Jim

    Hi Jim, this is something I've seen before. It may be a bug in the SharePoint 2013 IP, though it does work in some cases and not in others, so difficult to say what the cause is. My recommendation is to change your list to make the default Title column optional
    and hidden, and use a new custom field for the name of the item instead. See also:
    http://sharepoint.stackexchange.com/questions/118181/how-to-remove-title-column-in-sharepoint-2013-list
    Noah Stahl | Automys |
    Downloadable Microsoft automation examples and solutions

  • Can you install the Office Web Application Server on one of the App Servers for SharePoint 2013?

    Hi,
    Is it possible to run Office Web Application Server (shows preview images for docs and allows Notepad, Word, Excel to work etc) on one of the SharePoint 2013 App Servers. I don't want to have to create a new server. It talks about setting
    up a farm. 
    Better still how the feck do you switch this functionlity off - I always remember it being a pain in the arse. We accidentally ran the first part of the configuration on one of the SharePoint App Servers only to find out our subscription does not
    have this download (bar stewards changed this Nov 2014 - just after started contract).    
    Help would be much appreciated as close to go live
    Thanks.
    John.

    Hi John,
    Please reboot the server at the very beginning and test the issue again.
    Quote from you:
    Problem is I get Internet Web Page cannot display the webpage everytime I click in a excel document, powerpoint document, notebook link or the preview
    Please post the url in browser address here.
    If you just executed the command below:
    Add-WindowsFeature Web-Server,Web-Mgmt-Tools,Web-Mgmt-Console,Web-WebServer,Web-Common-Http,Web-Default-Doc,Web-Static-Content,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Security,Web-Filtering,Web-Windows-Auth,Web-App-Dev,Web-Net-Ext45,Web-Asp-Net45,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Includes,InkandHandwritingServices
    It just install some windows feature to the current server, we can find it should be done before installing several server products.
    Could you please verify if the command you executed is the same as the one above?
    You could also go to local disk and check if there is OfficeWebApps folder under C:\ProgramData\Microsoft\?
    If you check in Control Panel > Programs, is there any feature related to Office Web Apps?
    If you have confirmed there is no Office Web Apps feature installed, please go to SharePoint document library settings, and make the document to open in client, does it work?
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Workflow Manager 1.0 (SharePoint 2013): The process was terminated due to an unhandled exception

    I am seeing large numbers of the following errors appearing in the event log of the SharePoint 2013 application server hosting Workflow Manager 1.0:
    Log Name: Application
    Source: Application Error
    Date: [Date/Time]
    Event ID: 1000
    Task Category: (100)
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: [Application Server]
    Description:
    Faulting application name: Microsoft.Workflow.ServiceHost.exe, version: 1.0.20922.0, time stamp: 0x505e1b24
    Faulting module name: KERNELBASE.dll, version: 6.2.9200.16864, time stamp: 0x531d34d8
    Exception code: 0xe0434352
    Fault offset: 0x0000000000047b8c Faulting process id: 0x691c Faulting application start time: 0x01cfc2776b3f0d74
    Faulting application path: C:\Program Files\Workflow Manager\1.0\Workflow\Artifacts\Microsoft.Workflow.ServiceHost.exe
    Faulting module path: C:\Windows\system32\KERNELBASE.dll Report Id: b8157bf8-2e6a-11e4-9413-00155d38891d Faulting package full name:
    Faulting package-relative application ID: Event Xml:
    Log Name: Application
    Source: .NET Runtime
    Date: [date/time]
    Event ID: 1026
    Task Category: None
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: [same application server]
    Description:
    Application: Microsoft.Workflow.ServiceHost.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception
    Info: Microsoft.Workflow.Common.FatalException Stack: at Microsoft.Workflow.Common.Fx+<>c__DisplayClass2.<failfast>b__0() at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object,
    Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
    at System.Threading.ThreadHelper.ThreadStart()
    Event Xml:
    Log Name: System
    Source: Service Control Manager
    Date: [date/time]
    Event ID: 7031
    Task Category: None
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: [Same application server]
    Description:
    The Workflow Manager Backend service terminated unexpectedly. It has done this 895 time(s). The following corrective action will be taken in 30000 milliseconds: Restart the service.
    Event Xml:
    The SharePoint 2013 farm is updated through the September 2014 PU (KB2995902).  Topology: 1 App, 2 WFEs.  Workflow Manager 1.0 installed to the App server.  Workflow Manager 1.0 cumulative updates one
    and two have not been installed.  The Service Bus Gateway and Service Bus Message Broker services are started.  The Workflow Manager Backend service can be started, but then quickly stops.
    Thoughts?  Resolution?  I would be grateful for any assistance.

    Hi Stephan,
    As I understand, you are encountering the issue that Workflow Manager Backend service terminating each time. May I know did you run the update cmdlets after you installed the updates for SharePoint server 2013? Please confirm it per the link below:
    http://technet.microsoft.com/en-us/library/dn133867.aspx
    If you haven’t run the updates cmdlets, I suspect this is an install issue. I’d suggest you re-install workflow manager to resolve the issue:
    1) Leave WFM/SB Farm
    2) Uninstall updates and application in the following order and one at a time:
    Service Bus CU1
    Workflow Manager CU1
    Service Bus 1.0
    Workflow Manager 1.0
    Workflow Manager Client 1.0
    Microsoft Windows Fabric
    3) Log into SQL server and delete Service Bus and Workflow Manager databases.
    SBManagementDB
    SBGatewayDB
    SBMessageContainer01
    WFManagementDB
    WFInstanceManagementDB
    WFResourceManagementDB
    4) Install in the following order one at a time through Web Platforms Installer:
    Workflow Manager 1.0
    Service Bus 1.0 CU1
    Workflow Manager 1.0 CU1
    Regards,
    Rebecca Tu
    TechNet Community Support

Maybe you are looking for