Showing posts with label SharePoint designer. Show all posts
Showing posts with label SharePoint designer. Show all posts

SharePoint 2013 Search PDF Result Type with Previw in Browser

Friday, December 14, 2012





Search is the one of the most improved Feature that i found in SharePoint 2013. It’s Not only in Architecture or functionality. Even that Microsoft Improved Search User experience allot in SharePoint 2013. Now UI is more Informative and User Friendly. By Playing with SharePoint 2013 Search that t I Notice in SharePoint 2013 its Search quit Preview window. Where you can see immediately Preview the Search Result Items in Browser like Word Document. You don’t need to open them in any client app. To check is the same document that your look for. By just putting mouse over on the search result item it will give very nice small Hover Panel on right side of Search Results. Where you can see preview of your word,excel,powerpoint,html items and you can scroll down the document’s. it’s a Cool Feature and time saving. Another most important and requested feature for SharePoint 2013 Search to Provide PDF Search indexing by default OOB. So not need of IFilters for PDF Search. 

I was playing with SP15 Search then I notice SharePoint 2013 Search will not show me the PDF Documents in Preview mode Like documents word or excel. 

Then I jump into and try to some customized little bit. In SharePoint 2013 Search there is another very cool Feature in Search it’s called "Result Types" By default there is so many Result Types are there in your siteCollection and  you  can also create new by copying any existing one of the modified and create from scratch. To modified html and js files to display custom content in Preview window you need you find Display Templates under SPD2013 . Here i am trying to modify existing Result Types to Open Pdf in hover panel and display in Browser.


workaround 

Open SharePoint Designer 2013 and open Site where you want this modification to be done. then navigate 
to All File>_catalogs>masterPage>Display templates>Search.


Find Item called   " item_PDF_HoverPanel.html " and right Click on Edit.

find Item
 then navigate the  Tag Div with ID  id="_#= $htmlEncode(id + HP.ids.content) =#_" data-displaytemplate="PDFHoverPanel". in Side this Tag just Past the Following Code. and save.

Refresh the Search Results and Mouse over again on PDF Item. if you will not find the Preview window so kindly install PDF plugin in your Browser 





By Usama Wahab Khan Happy SharePointing :)

Reference :
http://blogs.msdn.com/b/frmcsiw/archive/2012/11/18/sharepoint-2013-search-result-types-amp-display-templates.aspx




    




Create SharePoint 2013 Workflow Loop By Using SharePoint 2013 designer Preview

Sunday, October 7, 2012

One the Major Enhancements in SharePoint 2013 Workflows is availability  of "Loop"s is in SharePoint Actions. now loop are fully integrated in workflow actions. there is two type of loops. "Loop n Times" and Loop with conditions. this new feature is available with SharePoint 2013 Workflows  You can create directly   loop based workflow by using SharePoint designer 2013 preview with different actions. here i am showing one basic example how you can create loop in workflows by using SharePoint 2013.

before start this

Set up and configure SharePoint 2013 Workflow Manager


  • Installing and configuring workflow for SharePoint Server 2013


  • Open SPD2013 Preview Click on List & libraries>Select any existing list or Create new List.  




    Click on List Workflow button in ribbon. It will open one Popup.


    Fill Workflow Name and description and Select SharePoint 2013 Workflow form dropdown. if in case 
    you only see the SharePoint 2010 Workflow kindly check. did you Install and configure workflow in SharePoint Server 2013. because SharePoint 2013 Workflow is based on Azure workflows.




    In side the Ribbon  you will see one yellow to Add loop to your workflow.


    here i am create Initiation form Parameters for Loop Count.

     set the by default Value

    Click on Yellow spot in ribbon and select loop n timers.  set parameters. 


    Set send email Action in side the loop. 





    Add Email Address that mail to be send.

    create message for email.



    Click  Loop Yellow button in Ribbon. and select loop n Condition



    Create another Initiation form Parameters.



    Set Parameter and with loop values and set condition equal to not equal and hard code 10 value for comparison 

      Save and Publish

    Assess your Site from Browser and navigate to that list create one Item and
    click on workflow


    double Click on your created worflow.

    fill Parameters in  Initiation form and Click on Start Button
    Go back and list Workflow setting page



    Go to SharePoint Workflow History. you  will see updates that done in loop.


    check you Main Box for emails. 



    By Usama Wahab Khan
    thank you