Sunday, April 11, 2010

Secure Store Service - SharePoint 2010



Secure Store Service in SharePoint 2010

The Secure Store Service stores credentials in database(user identity and password) for application IDs that can be used by applications to authorize access to shared resources. SharePoint 2010 can use the secure store database to store and retrieve credentials to access external data sources.
The support for storing the credentials of multiple back-end systems using multiple application IDs is provided in the Secure Store Service.

Before using the Secure Store Service to create target applications, you must provide it with a pass phrase. The pass phrase is used to generate a key that is used to encrypt and decrypt the credentials that are stored in the Secure Store Service database. If you have to supply the initial pass phrase, you will see the following message when you open a Secure Store Service application instance: Please generate a new key for this Secure Store Service application.

How to create Secure Store Service in SharePoint 2010?


* Go to SharePoint Central Admin


* Click on Manage Service Applications under Application Management heading.



* On the ribbon, click on New button that will show the list of the services you can create. Click on Secure Store Service.



* Enter necessary details as Name, Database server, Database, Credentials etc.



* Click Ok to create service. If there is no problem with DB or service account, Secure Store Service will be created successfully. :-)




* You need to start the Secure Store Service after it has been created.

* Go to Central Admin

* Click on Manage Services on Server under System Settings heading.

* Locate the Secure Store Service then click start.


That's it!!!

So this is the creation of Secure Store Service. I am gonna discuss about the BDC - How to create external content type to access external data in SharePoint 2010 in my next post. And what additional steps need to be done in Secure Store Service and in BDC Service to make BDC work in SharePoint 2010.


BDC Service in SharePoint 2010

How to create Business Data Connectivity Service Application ?

BCS in SharePoint 2010 is all about connecting with external data. You can leverage SharePoint 2010 BCS component and manipulate with your external data with just a few clicks. In order to use external data in SharePoint 2010 you should have BDC Service up and running.

* Go to SharePoint Central Admin

* Click on 'Manage Service Application' under Application Management heading.




* On Ribbon, click on New dropdown then click on Business Data Connectivity.



* A pop up will be opened where you fill out the necessary information then click OK.

* If there is no problem connecting with DB or Service Account, a message will be displayed "BDC Service Application has been created successfully".

* When the service applications are created they are not started by default. You have to Start the Business Data Connectivity Service manually.

* Go to Central Admin and click on 'Manage Services on Server' under System Settings heading.



* Click on Start against Business Data Connectivity Service.



That's It!!!

Saturday, April 10, 2010

Branding in SharePoint 2010 - CSS Classes

I was working on a project where I happened to implement Branding on SharePoint site. I created/modified the existing CSS Classes to achieve the desired result.
Here are some CSS classes listed below that I modified:

To hide Quick Launch

.ms-quicklaunchouter
{
display:none;
}
#s4-leftpanel-content
{
display:none;
}
.s4-ca
{
MIN-HEIGHT: 324px; BACKGROUND: #fff; MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px
}

Change global navigation background color

.s4-tn
{
background:white;
}

Change the font color of the site actions text

.ms-menu-a span
{
color:black;
}

To hide title logo - breadcrumb

.s4-titlelogo
{
display:none;
}

Make breadcrumb bar height small
.s4-title, .s4-lp
{
background:white;
}

To hide breadcrumb tag & Notes section - breadcrumb

.ms-socialNotif
{
display:none;
}

Change the font color of Browse and Page text in the menu
.ms-cui-tt-span
{
color:black;
background:white;
}


Change the background color of top bar (site actions, browse, page)

.ms-cui-topBar2
{
background:white;
}

Make all menu item color black

.s4-tn li.static > .menu-item
{
color:black;
border-color:black;
}

Menu item background color

.s4-tn li.static a.menu-item
{
background:white;
}

Global navigatioh selected item color red i.e. first tab

.s4-toplinks .s4-tn a.selected
{
color:red;
border-color:black;
}

Global navigation menu item hover - black

.s4-toplinks .s4-tn a.selected:hover
{
color:black;
}

Menu item hover

.s4-tn li.static > a:hover
{
background:white;
border-color:black;
border:thin;
color:red;
}

Change the Action Button background color -Logged on Username

.ms-SpLinkButtonActive a,.ms-SpLinkButtonActive a:hover{
color:red;
text-decoration:none;
background:FFDBAD;
}

Change the background color of the web part header where the Title is 'Working at ABC'

.ms-WPHeader TD[title^="Working at ABC"]
{
background:#FF9900;
}

Change the font color of logged on username

.ms-SPLink A:link,.ms-SPLink A:visited
{
color:gray;
text-decoration:none;
font-size:14px;
font-weight:bold;
text-decoration:underline;
}

SharePoint 2010 Developer Dashboard

How to Set On/Off Developer Dashboard in SharePoint 2010

Open "SharePoint 2010 Management Shell".

Go to Start > All Programs >> Microsoft SharePoint 2010 Products >> SharePoint 2010 Management Shell

Run As Administrator
Make sure you run "SharePoint 2010 Management Shell" as an Administrator. You wont be able to perform this operation otherwise. Right click on "SharePoint 2010 Management Shell" select "Run As Administrator"

Turn On Developer Dashboard
------------------------------------------------
Stsadm -o setproperty -pn developer-dashboard -pv on

Turn Off Developer Dashboard
------------------------------------------------
Stsadm -o setproperty -pn developer-dashboard -pv off


Enjoy :-)

Create Themes for SharePoint 2010 in PowerPoint

Create a Theme in MS Power Point for SharePoint 2010.




* Open MS PowerPoint



* Office Button --> New


* Under Templates tag select "Installed Themes". Select any theme then click Create button as shown:






* Select Design tab




* Click on Colors dropdown on the right then 'Create New Theme Colors'



* Change the colors as you like then click on Save button.



* Now you have to save this file as a theme. Click on Office Button



then click on Save As



* Enter filename and select "thmx" as Type from drop down and click Save.


* Theme is saved by the name of Orange.



Add Theme to SharePoint



Now lets go to SharePoint site and then see how we can add our customized theme to the site.



* This is the SharePoint site:


* Go to Site Actions then Site Settings:


* On Site Settings page click on "Themes" under Galleries sections:




* Click on Upload Document as shown below:







* It will open a File Dialog box where you select the theme which was created in PowerPoint.







* You would see the uploaded theme "Orange" in the list.

* The Theme has been uploaded in the gallery. Now activate the theme to see how it looks.




* Go to Site Actions then Site Settings. Click on "Site Theme"










* Select the Orange theme from the list then click on Apply















* Site theme has been changed successfully.





Comments plz.



Thx