Wednesday, 19 November 2014

SideLoadinf feature is not enabled on the site in SharePoint online


Error: Error occurred in deployment step 'Install app for SharePoint': Sideloading of apps is not enabled on this site.

I was trying to deploy a app in to SharePoint Online, then i got above error.

Solution: I have enabled Sideloading, then it resolved my problem.

Open: sharepoint online Management Shell

Copy below script and paste it sharepoint online Management Shell.

It will ask SPO Site url. Enter SPO url.
It will ask SPO Administrator User name and password. Enter user name and password.

You will see:
SideLoadinf feature enabled on the site.....

That's it. Now deploy your app in to SharePoint Online.

Sign in as Different User option missing in SharePoint 2013

Today i was trying to login to my SharePoint site using different user, but i couldn't find that option.
Then i came to know OOB SharePoint 2013 don't provide it.

Solution:
Follow below steps to get "Sign in as Different User" option

Go to SharePoint Server, open this path
C:\Program Files\Common Files\microsoft shared\Web ServerExtensions\15\TEMPLATE\CONTROLTEMPLATES\
Open Welcome.ascx

Search for ID = ID_RequestAcess




Paste above code above the tag ID = ID_RequestAcess

Tuesday, 18 November 2014

Not connected - No connections are available Windows 8


I am not able to see wifi icon
Solution:
Open C drive
You will find Network in the left side pane
Right click on Network, select properties
You will get new window
Click on "Change adapter settings"
You will get another window.
If You are able to see Wi-Fi and if it is Disabled.
Right click on Wi-Fi Click Enable
Now you will see wi fi icon in your task bar
Click on wi fi icon, it will show Wi Fi is On or Off
If Wi FI is Off, change to On
Now you will see abailable Wi Fi connections
Select any connection Click on Connect
If it is having pass word, enter password.
Check Connect automatically
Now you ready to access wi fi

SharePoint result source with OR condition

Using GUID
path:"https://spo" SPContentType=MyList owstaxIdColumnTerm:{03b7b387-506e-4620-99ff-2d1ee315581d} owstaxIdColumnType:{e5035750-1c98-4a72-8e12-0f1ccdb4244f} owstaxIdListPageElement:{720a2f5c-52f3-482e-a359-5861a48aac5c} isActiveOWSBOOL=1 -owstaxIdColumnRegion:{USA} OR owstaxIdColumnRegion:{QueryString.region}

Using Column text
path:https://spo SPContentType=MyList owstaxIdColumnTerm:MyTerm owstaxIdColumnType:MyType owstaxIdListPageElement:MyElement isActiveOWSBOOL=1 -owstaxIdColumnRegion:{USA} OR owstaxIdColumnRegion:{QueryString.region}

SharePoint Client Object Model JavaScript

Advantage of SharePoint Client Object Model for JavaScript
Web page can interact with SharePoint without requiring a page refresh. In the background, the page uses JavaScript to communicate with SharePoint via the COM to retrieve or update data in SharePoint.
Accessing SharePoint
The first thing to note about the COM with JavaScript is that it is disconnected from SharePoint in the sense that in order to retrieve or update data in SharePoint, asynchronous calls to the server must be made. Because of its asynchronous nature, the page can continue to be responsive to the user while the data is being retrieved or updated in the background. This can be both an asset and a liability if not handled properly.
In order to access the COM in a webpage, a reference to the JavaScript file containing the COM code must be included. There are 3 JavaScript files which contain the code for the COM: SP.js, SP.Core.js, and SP.Runtime.js. SharePoint provides the SharePoint:ScriptLink server control tag for referencing JavaScript files. Using the ScriptLink control will:
assure that the JavaScript file is loaded only once
assure that dependency files are also loaded
In a SharePoint Application page, the ScriptLink tag should be declared within the PlaceHolderAdditionalPageHead Content Placeholder.

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server" />
<SharePoint:ScriptLink Name="SP.js" LoadAfterUI="true" runat="server" />
</asp:Content>

Monday, 17 November 2014

Infosys PL/SQL Interview Questions

Tell me about your project
Can we load the data from table to table through utl_file package
Difference b/w sql *loader and utl_file package
Which is the faster way to load the data
Description about project?
What r the packages, functions, procedures you Developed in your project what are their Functionality?
Where u stored the files in db?
How u execute the code in sql prompt?
Tell me some names of functions and Procedures that u created in u r project?
What is the name of requirement Specification?

JSON JavaScript Object Notation

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate.
It is an open standard format that uses human-readable text to transmit data objects consisting of attribute–value pairs. It is used primarily to transmit data between a server and web application, as an alternative to XML.
Ex: Create JSON Object
var objJason = {
"EmpNo" : "1001",
"Name" : "JSON",
"Dept" : "IT"
};
Ex: Read JSON Object
document.write('EmpNo ' objJason.EmpNo); // Output: EmpNo 1001
document.write('Name ' objJason.Name); // Output: Name JSON