Pages Side

Saturday, September 6, 2014

Organization Browser web part

by default the Organization Browser working on my site only but It's not working in different web application 

To add Organization Browser Web Part in different web Application ;you have to do the below steps

1. Active SharePoint Server stranded Site Collection feature under Site Setting>Site Collection features 

2. go to your page where you want to add the Web Part and insert it





Note : In SharePoint 2013, It has a problem in rendering but you can add the below script in content editor web part under Organization Browser web Part (Microsoft reference ) to resolve it
<script type="text/javascript">
 function CreateHierarchyChartControl(parentId, profileId, type, persistControlId) {
  var i = profileId.indexOf("|");
  var claimsmode = profileId.substr(i-1,1);
  if((i >=0 ) & (claimsmode=="w"))
  {
   profileId = profileId.substr(i+1,profileId.length-i-1);
   var initParam = profileId + ',' + type + ',' + persistControlId;
   var host = document.getElementById(parentId);
   host.setAttribute('width', '100%');
   host.setAttribute('height', '100%');
   Silverlight.createObject('/_layouts/ClientBin/hierarchychart.xap',
    host,
    'ProfileBrowserSilverlightControl',
    {
     top: '30',
     width: '100%',
     height: '100%',
     version: '2.0',
     isWindowless: 'true',
     enableHtmlAccess: 'true'
    },
    {
     onLoad: OnHierarchyChartLoaded
    },
     initParam,
     null);
    }
  }
</script>





Friday, August 29, 2014

How to Make Copy Bulk of photos through windows explorer

Sometimes ; we are need to make copy bulk of files or photos inside SharePoint once .
In our case ; we should to have bulk of photos and we need to copy them inside SharePoint.

1)  Create list image and copy list URL



2) Open windows explorer to find out Add network location button in computer tab ribbon

3) In Add network location screen ; Follow hit next button until you find network address text and then past list URL and follow hit next button



4) After we finished ,we will find folder mapped like the below and we can browsing it like windows explorer and make copy for bulk files or images what ever






This is so useful when i want to make migration data  for  bulk files by windows explorer to skip validation data entry or replace bulk of photos


Thursday, August 28, 2014

Visual Studio: Productivity Power Tools 2013

Productivity Power Tools 2013 for Visual Studio 2013 is an extension pack that brings powerful tools for improved developer productivity.

In the May update, we fixed a number of customer-reported bugs and issues, and introduced a new feature called syntactic line compression, which enables you to make better use of your screen's vertical real-estate. It shrinks lines that contain neither letters nor numbers by 25% vertically, allowing more lines to be displayed in the editor. Other lines are not affected.

Summary of features

  1. Peek Help
  2. Solution Explorer Errors
  3. Structure Visualizer
  4. Double click to maximize windows
  5. Timestamp margin
  6. Quick tasks – Edit Present On
  7. Ctrl + Click to Peek Definition
  8. HTML Copy improvements
  9. Recently Closed Documents
  10. Match Margin
  11. Power Commands context menu cleanup
  12. Syntactic Line Compression

Other features:

  1. Quick Tasks
  2. Power Commands
  3. Color printing
  4. Middle-Click Scrolling 
  5. Organize Imports for Visual Basic
  6. Custom Document Well
  7. Tools Options Support
  8. HTML Copy
  9. Fix Mixed Tabs
  10. Ctrl + Click Go To Definition
  11. Align Assignments
  12. Column Guides
  13. Colorized Parameter Help 
Ex feature:
Solution Explorer Errors
This feature adds error, warning, and message squiggles to Solution Explorer. The information is fetched from the Error List and directly displayed in the Solution Explorer tree view.  Hovering over the nodes with squiggles brings up a pop-up with the error/warning/message information



Yo can watch all features by this video  and download it from here



Wednesday, August 27, 2014

SharePoint : How to Sign in as a Different User in SharePoint

SharePoint used to have a menu option called β€œSign in as Different User” in the top-right corner of every page. It was a handy tool for developers and IT professionals in SharePoint  2010, which allowed them to login with another account to test their solutions or customizations. Microsoft removed the option in SharePoint 2013, but you can still do it with workarounds 

Why Was This Feature Removed

I don’t know exactly why Microsoft removed this feature. What I do know is it was never perfect and has a number of issues in SharePoint 2010. Some of the most common issues like the below :

β€’ Caching problems
β€’ Documents opened in external applications are saved with an unexpected user account (previous account).
β€’ Right after user logs in with a different account, the page content shows information from the previous account and the cookies are not properly cleared
In other words, this feature was never meant as a security mechanism. Therefore, even though it’s possible to bring the menu option back, you should carefully consider whether doing so is really necessary. After all, it was removed for a reason.
If you want to bring the menu option back for all users, you can modify the Welcome.ascx file  in SharePoint Farm
  • Locate the file \15\TEMPLATE\CONTROLTEMPLATES\Welcome.ascx and open in a text editor.
  • Add the following element before the existing element with the id of β€œID_RequestAccess”:
1
2
3
4
5
6
7
<SharePoint:MenuItemTemplate runat="server" ID="ID_LoginAsDifferentUser"
 Text="<%$Resources:wss,personalactions_loginasdifferentuser%>"
 Description="<%$Resources:wss,personalactions_loginasdifferentuserdescription%>"
 MenuGroupId="100"
 Sequence="100"
 UseShortId="true"
 />
  • Save the file.
Now, the menu item shall be displayed:

  • A slightly faster way to accomplish this is to navigate to the Close Connection page. Just visit the following URL in your browser:

http://<site URL>/_layouts/closeConnection.aspx?loginasanotheruser=true
As soon as you hit this page, the familiar pop-up will prompt you for the username to log in with. Once you log in, you will be redirected to the home page.