Friday, 22 October 2021

SharePoint online imort excel file - Select a table from this file

While importing data from excel file into SharePoint if there is no table in file SharePoint will show you below screen shot.

To resolve this issue open the file select the data you want to import and click on "Form Table"


Select the table that you want to import into SharePoint


After selecting it will show you table to modify any change if you want.


Click Save and Load form File menu

Close the file and try again to import the file. It should work now.


Thursday, 21 October 2021

SharePoint Online create Datasheet View

SharePoint online provide only List Calendar and Galley view option from list page.


To create DataSheet follow the below steps:

Select the List settings by clicking top gear icon





From the list setting page click on Create view


From Settings : View Type  page select Datasheet View



Create view page will be displayed and create the Type the view name and Click OK.


New DataSheet view will be available in view list.

Wednesday, 4 December 2019

Sharepoint site - change welcome page

Welcome page:
The Welcome Page in a SharePoint site
We have below option to change the welcome page in SharePoint 2013:
user interface form site setting page
Using the SharePoint designer
SharePoint object model
Powershell


SharePoint object model:

 SPSite site = new SPSite("http://test");
 SPWeb web = site.OpenWeb();
 web.RootFolder.WelcomePage = @"/_layouts/AreaWelcomePage.aspx";
 web.Update();

Saturday, 3 November 2018

_spPageContextInfo properties

This class is very helpful while working with SharePoint using JavaScript. This class contains different properties related to current context of a SharePoint page.

How to access:
var  propertyValue = _spPageContextInfo.propertyName

Example: You can access different properties of _spPageContextInfo class on any SharePoint page as below:


<script type="text/javascript">

var  weburl = _spPageContextInfo.webServerRelativeUrl

</script>

Below are some properties that we can access on SharePoint page:

alertsEnabled
true
allowSilverlightPrompt
"True"
clientServerTimeDelta
-2595
crossDomainPhotosEnabled
false
currentCultureName
"en-US"
currentLanguage
1033
webPermMasks
Hiigh
Low
Two 32-bit integers - indicating permissions a user has
currentUICultureName
"en-US"
isAppWeb
False
layoutsUrl
"_layouts/15"
pageItemId
1
pageListId
"{172916e0-cb50-4eac-9d31-80658f35cfb9}"
pagePersonalizationScope
1
serverRequestPath
"/kum/site1/Documents/sample.aspx"
siteAbsoluteUrl
"https://test.com/kum/site1"
siteClientTag
"0$$15.0.5023.1000"
siteServerRelativeUrl
"/kum/site1"
systemUser
"test\pkum"
tenantAppVersion
"0"
userId
21
webAbsoluteUrl
"https://test.com/kum/site1"
webLanguage
1033
webLogoUrl
"/_layouts/15/ /logo.png"
webServerRelativeUrl
"/Audit/adc"
webTemplate
"10442"
webTitle
TEST
webUIVersion
15




Tuesday, 9 January 2018

Command prompt - change drive


After providing command  > cd c: the drive remained the same. To change the drive try the below options:

Put /d as below
>cd /d e:\

The above command with the /d option will switch to E: drive

Crawling a List or Library SharePoint 2013

SharePoint 2013 introduce a feature re-index a list or library.

This is useful where you don't have access in higher environment or the content is large that take lot of time to do a full crawl.

So in this case you use re index the document library/ list.

To do so use the following steps:

1. Go To Document library settings
2.. Click Advanced settings
3. Advanced Settings Page will be displayed
4 Click Reindex Document Library
A pop will appear again Click on Reindex Document Library. As in below image.


When the search crawler will run next time the new changes will be there in search result.
 

Thursday, 18 February 2016

Dependency feature 'DocumentManagement' (id: 3a4ce811-6fe0-4e97-a6ae-675470282cf2) for feature 'DocumentSet' (id: 3bae86a2-776d-499d-9db8-fa4cdc7884f8) is not activated at this scope.

I was getting this error while creating site collection in Central administration.

To fix this error go to web application feature in central administration and activate Document Sets metadata synchronization feature.    

Doing this site collection should be created successfully.