Showing posts with label SharePoint OOB Feature. Show all posts
Showing posts with label SharePoint OOB Feature. Show all posts

Tuesday, October 18, 2016

Custom ribbon button action always disabled when command is defined

The issue is that the feature is not enabled that allows the layouts.

To fix the issue go to Site Actions -> Site Settings in the upper right corner.

Under "Site Collection Administration" click on "Site Collection Features".

Look for "SharePoint Server Publishing Infrastructure" and activate it. It might take a moment to load.

Next return to "Site Settings" and click on "Manage Site Features"

Look for "SharePoint Server Publishing" and activate it. It might take a moment to load.

Wednesday, September 21, 2016

How to get Open Wiki Page by ID in SharePoint 2013 Page



OOB Feature 


  1. Enable "Document ID Service" in the Site Collection Features
  2. New entry in the Site Collection Administration appears: "Document ID settings"
  3. In this menu you can define a prefix for your Document IDs
  4. In any list/library a new column is provided: Document ID (linked to document)
  5. Display this column in a list view --> use the provided URL of this column for linkage



http://test/_layouts/15/DocIdRedir.aspx?ID=DocIDPrefix-SomeNumbers-ID

http://test/_layouts/15/DocIdRedir.aspx?ID=DocIDPrefix-12231-987

Monday, June 20, 2016

Content editor webpart overrides Sharepoint CSS

 CSS, Selectors and its rules for CSS Specificity and you will be able to master any CSS problem.

In your scenario you can wrap your content in a DIV unique  selectors ID

<div id='myCEWP'>
  <H1>Hello World!</H1>
</div>
And then apply your CSS only to that one H1 in the DIV :

<style>
   #myCEWP > H1 {
     color:green;
   }
</style>

Friday, May 20, 2016

Sharepoint Calendar change default view

Yes, it is possible to change the default calendar view.
Create a new view with all the filters and columns you need. After confirming that the view works as expected, edit the view again and tick the box to make it the default view for the list


enter image description here

Thursday, February 18, 2016

SP.SOD in SharePoint?

SP.SOD is a nice feature of SharePoint.

function message()
{
alert("Hello World")
}
ExecuteOrDelayUntilScriptLoaded(message, "core.js");

Friday, February 5, 2016

How to add Print Option to SharePoint Page to print one particular web Part?


<input type="button" ID="printBtn1" OnClick="javascript:void(PrintWebPart())" value="Print">

<script language="JavaScript">

//Controls which Web Part or zone to print
var WebPartElementID = "WebPartWPQ2";

//Function to print Web Part
function PrintWebPart()
{
var bolWebPartFound = false;
if (document.getElementById != null)
{
//Create html to print in new window
var PrintingHTML = '<HTML>\n<HEAD>\n';
//Take data from Head Tag
if (document.getElementsByTagName != null)
{
var HeadData= document.getElementsByTagName("HEAD");
if (HeadData.length > 0)
PrintingHTML += HeadData[0].innerHTML;
}
PrintingHTML += '\n</HEAD>\n<BODY>\n';
var WebPartData = document.getElementById(WebPartElementID);
if (WebPartData != null)
{
PrintingHTML += WebPartData.innerHTML;
bolWebPartFound = true;
}
else
{
bolWebPartFound = false;
alert ('Cannot Find Web Part');
}
}
PrintingHTML += '\n</BODY>\n</HTML>';
//Open new window to print
if (bolWebPartFound)
{
var PrintingWindow = window.open("","PrintWebPart", "toolbar,width=800,height=600,scrollbars,resizable,menubar");
PrintingWindow.document.open();
PrintingWindow.document.write(PrintingHTML);

// Open Print Window
PrintingWindow.window.print();
PrintingWindow.document.close();

}
}
</script>

Tuesday, January 19, 2016

How to Copy List item to Another list using sharepoint designer 2013 workflow?

We can use the the REST services to move the items one to another list.
  • Add Dictionary is a new variable 
  • create a dictionary add Build Dictionary action
  • Accept and Content-Type
  •  set the values for both of them to application/json; odata=verbos
  • add key __metadata 
New item created from workflow 
call the web service
_api/web/lists/getbytitle('examples')/items and the HTTP method is POST. 
Set the request to your parameters dictionary. 
To set the header of your request go to :
Right click option

Call HTTP service -> properties -> RequestHeaders and set it to your header dictionary.
 

Thursday, October 22, 2015

How to import .ascx file in SharePoint 2013?

SmartPart  Webpart is  third party tool avaliable 

Great webpart to convert your user control into SharePoint 2010/2013 web part,

  1. Automatic deployment using the SharePoint Solutions Framework
  2. Manual deployment by copying and editing a couple of files
 Easy host any ASP.NET user control, basically allowing you to visually design the web part rather than write it in code. I’m sure you will all agree, this is a very useful tool!


http://smartpart.codeplex.com/

Page viewer Webpart In SharePoint 2013

  1. Go to the web part page
  2. Click the Page ribbon tab and click Edit Page
  3. In one of the web part zones, click Add a Web Part
  4. Click the Media and Content category
  5. Click Page Viewer and Add
  6. Edit the web part and add the URL to your report

Three properties available:
  1. Webpage
  2. Folder
  3. File




frame tag in SharePoint Script Editor Webpart

1.Select the gear icon .Click Edit Page

2.Edit Page Select Media and Content Categories

3.Add Script Editor Webpart

4.Click Edit Snippet


<iframe src="https://www.google.com/" width="200" height="200"></iframe>