Sunday, June 17, 2012

Adding additional Web Part Zone in SharePoint 2007 Existing page

  • Open SharePoint website using SharePoint Designer 2007
  • Open the desired page where you need additional “WebPart Zones”
  • Web parts zones needs to be defined in Content Placeholders .Make sure you have corresponding placeholders in Master page .
  • Add the following line at desired content placeholder of your page :

    < runat="server" frametype="TitleBarOnly" id="Left" title="loc:Left">
    <>
    < /ZoneTemplate>
    < /WebPartPages:WebPartZone >
  • Editing Web Part Pages with SharePoint Designer

    Now open the web page by clicking on it.

  • Here's a view of the blank page.

  • Assuming you have SharePoint Designer 2007 installed, go to the "File" menu of Internet Explorer and select "Edit with Microsoft Office SharePoint Designer".

    You will now see your page, in edit mode, from inside the SharePoint Designer. Note that the Web Part Zones exist within a standard HTML table. (You may need to open the "Design" tab in SharePoint Designer.)

    Select the lower row of the table.

    Then, from the "Table" menu in SharePoint Designer, select "Insert" and then "Row Below".

    Click into the row you just created. For illustration purposes, I am going to add a table with 3 rows and 3 columns. From the "Table" menu, select "Insert Table". Use the parameters I have below (or anything you like).


    In the top left cell of the table, I now add a Web Part Zone:
     Insert --> SharePoint Controls --> Web Part Zone.
    (The graphic below looks like I am in the HTML menu, I am really not.)



  • Tuesday, June 12, 2012

    Using a lookup field on a choice field workaround

    Unfortunately, it’s impossible to map a lookup field on a choice field. There’s a workaround, however, by using a calculated field which copies the information from the choice field. The look up field is then able to map the calculated field’s value.
    Start out by creating 2 custom lists; One list where the choice and calculated columns reside:
    create a custom list with content
    And another list where the lookup will be done:
    create a custom list with lookup
    Navigate to the list with content, and click on the “List” contextual tab in the ribbon. With the list options open, click on the “Create Column” button. When the dialog pops up fill in the desired options and select “choice” as column type:
    choice column
    Click on OK. The choice column should now be added to your list. Click the “Create Column” button again, but now select “Calculated” as column type:
    calculate column
    Scroll down and reference the choice field in your calculation formula:
    calculate column properties
    Click OK. The calculated column should now be added to your list with content. Add a new item to check whether the calculation formula works:
    custom list with content
    Navigate to the list where the lookup will be made and create a new column. Fill in a desired name and select “Lookup” as column type:
    lookup column
    Scroll down again, and select your list with content where the lookup column should get its information. Next, select the title to be looked up and as you can see, the calculated column shows up as a selectable property:
    lookup column properties
    Finish adding the column by clicking OK. Whenever you add a new item to the lookup list and use the lookup column, the chosen choice field from the content list will be shown:
    custom list with lookup content
    In an ideal situation, Microsoft addresses this issue and makes choice fields able to be looked up in the near future.

    Monday, June 11, 2012

    Anonymous access in SharePoint 2010 Survey

    Filling up survey form in SharePoint is one of the common tasks that we perform. However when we want to capture a feedback in terms of survey but we would not like to know the name of a person who responded to survey then anonymous survey comes into the picture.

    We directly cannot create a SharePoint 2010 anonymous survey. First we need to configure the site to have an anonymous site and then we can configure survey list to allow anonymous access.

    First we need to make a setting in central administration. Go to Manage web applications->Select your specific web app->Click on zone type Default->then check the enable anonymous access.

    Here are these steps shown as screen shots.






    Now select anonymous policy from the ribbon and select None.



    Now open your site to enable anonymous access. You can see this option only when you have set the anonymous option from the central administration.



    You need to set where you would want to enable the anonymous access.


    I’ve selected lists and library because we want to create an anonymous survey.

    Open your survey list where you want to configure anonymous survey. First step that needs to be performed is to break the inheritance from the parent site. Without this step, we cannot configure anonymous survey.

    Go to list settings and then permissions for a list and then click on anonymous access. This model page allows you to configure the action that anonymous user can perform. However you might see all options grayed out.





    The reason behind this is strange, however these is a work around to this. Go to advance settings option of the list and then select read all responses.




    Now again go back to the permission and then select anonymous access. You should be good to go for setting up the permissions.





    Now the problem is we do not want other people to see other’s responses although created by field is always empty when we enable the anonymous survey, but still we do not want any person to read any other person’s response.

    So go back to advance settings and now change from real all responses to read responses that were created by user.

    And there you go, give link URL to respond to anyone and they should be able to respond to a survey. At the same time created by field will always be blank so that we never come to know who responded to survey.



    Friday, June 8, 2012

    Export and Import a SharePoint List


    This was a requirement one of my clients faced few days back. So I thought of writing blog post on it so anybody can refer to it when needed .



    Exporting a SharePoint List can be done with the OOB feature given in SharePoint Central Administration.



    Central Administration >> Backup and Restore >> Export a site or list







    In the above image you can see…

    1. You can backup a site

    2. You can backup a list

    3. It supports of exporting with full security

    4. Exporting with the item versioning (Major / Minor / Both / Current)







    OK fine exporting can be done through the UI. How about Importing? Time to move on to PowerShell. Prior to that let’s see how to achieve the Exporting through PowerShell.



    Export-SPWeb “http://spdev:4422/netassist/” –ItemUrl “Lists/Students” –Path “C":\SharePoint Backup\StudentsList.cmp”



    Now the Importing.. (I’ve used a SubSite “network” for the clarity)



    PS C:\Users\SPAdmin> Import-SPWeb “http://spdev4422/netassist/network/” -Path "

    C:\SharePoint Backup\StudentsList.cmp"



    For more info read the TechNet Articles.

    Export

    Import



    Deploy Project Server 2010 on SharePoint 2010

    By any chance if you come across the requirement of installing and configuring Microsoft Project Server 2010, technet has provided a nice and easy guide of deploying Project Server 2010.

    http://technet.microsoft.com/en-us/library/cc197280.aspx

    In this section:

    •Deploy Project Server 2010 to a server farm environment

    This series of articles describes the steps necessary to install Microsoft Project Server 2010 in a server farm environment. This includes installing and configuring Project Server, creating a Microsoft Project Web App site, and configuring reporting.

    Deploy Project Server 2010 to a test environment

    This series of articles describes deploying a test installation of Microsoft Project Server 2010 in a virtual environment. The purpose of this series is as follows:

    •Install Project Server 2010 to a stand-alone computer

    Microsoft Project Server 2010 can be installed in a stand-alone configuration that uses Microsoft SQL Server 2008 Express. This configuration is useful for demonstration, but should not be used for a production environment.

    •TechNet Webcast: Project Server 2010 upgrade and migration

    This Microsoft TechNet Webcast discusses Microsoft Project Server 2010 features, requirements, and deployment considerations that IT professionals need to know about.

    •TechNet Webcast: Project Server 2010 - Backwards Compatibility Mode

    This Microsoft TechNet Webcast discusses the Microsoft Project Server 2010 Backwards Compatibility Mode (BCM) feature, which helps you to accelerate deployment of Microsoft Project 2010.

    •In-place upgrade to Project Server 2010

    This article describes the process of doing an in-place upgrade from Microsoft Office Project Server 2007 to Project Server 2010.

    Database-attach full upgrade to Project Server 2010

    This article describes how to do a database-attach full upgrade to Project Server 2010, in which you back up the required databases in the old farm and then restore them in the new farm.

    •Database-attach core upgrade to Project Server 2010

    This article describes how to do a database-attach core upgrade to Project Server 2010, in which you are basically using backup copies of your Office Project Server 2007 databases that contain your project data.

    •Virtual migration environment (VME) guide for Project Server 2010

    The Project Server VME is a virtualized Office Project Server 2007 environment that contains all the necessary applications and utilities required to migrate Microsoft Office Project Server 2003 data to Office Project Server 2007. To migrate from Project Server 2003 to Project Server 2010, first you must migrate your data to Office Project Server 2007 format.

    •Upgrade to Project Server 2010 from Project Server 2003

    This series of articles provides information and procedures about how to migrate from Microsoft Office Project Server 2003 to Project Server 2010.

    •Deploy language packs (Project Server 2010)

    Microsoft Project Server 2010 language packs enable Project Server 2010 users to view Microsoft Project Web App and project sites in multiple languages without requiring separate installations of Project Server 2010.

    •Deploy Project Server 2010 with Exchange Server

    These articles describe how to configure integration with Exchange Server, enabling Microsoft Project Server 2010 users to view Project Server tasks in Microsoft Outlook

    Thursday, November 17, 2011

    Enhancements for SharePoint 2010

    There are a number of platform and tool enhancements for SharePoint 2010.

    I picked out a few favourites which I briefly explain below:
    • LINQ to SharePoint (Language Integrated Query)
    • Data Platform Improvements
    • List Enhancements
    • Business Connectivity Services
    • Silverlight Integration
    • Managed Client Object Model
    • Sandbox Solutions
    • Visual Studio 2010 for SharePoint
    • WSP Changes
    • Developer Dashboard
    • Dialog Framework
    • SharePoint Designer 2010
    • Visio Services
    • InfoPath (changes)
    • Windows PowerShell
    LINQ to SharePoint (Language Integrated Query)
    LINQ is a feature of the programming languages C# and Microsoft Visual Basic .NET. Compilers are included with Visual Studio.
    LINQ adds a SQL-like syntax and vocabulary to each of the languages, which can be used to query data sources. But unlike other languages and query syntaxes which vary from one type of data source to another, LINQ can be used to query, in principle, any data source whatsoever. For this reason, developers may find that it is the only query syntax that they ever need to know.
    The LINQ to SharePoint Provider is defined in the Microsoft.SharePoint.Linq namespace. It translates LINQ queries into Collaborative Application Markup Language (CAML) queries. more details here...


    Data Platform Improvements
    The data platform improvements include: List Relationships, Unique Column Constraints, Data Validation, Column Formula Validation, etc
    more details here... 

    List Enhancements
    The list enhancements in SP2010 include: Bulk Operations, New capacity limits(more details here..), XSLT Views (more details here..)

    Business Connectivity Services (BCS)
    BCS is a set of services and features that provide a way to connect SharePoint solutions to sources of external data and to define external content types that are based on the external data. External content types resemble content types and allow the presentation of and interaction with external data in SharePoint lists (known as external lists), Web Parts, Microsoft Outlook 2010, Microsoft SharePoint Workspace 2010, and Microsoft Word 2010 clients. External systems that Microsoft Business Connectivity Services can connect to include SQL Server databases, SAP applications, Web services (including Windows Communication Foundation Web services), custom applications, and Web sites based on SharePoint. more details here... 

    Silverlight Integration
    In Windows SharePoint Services 3.0, you could host a Microsoft Silverlight application in a Web Part. Microsoft SharePoint Foundation 2010 goes beyond by providing a built-in, extensible, Silverlight Web Part specifically designed to host Silverlight applications. Closely related to the new Web Part is Silverlight Cross-Domain Data Access (Silverlight CDA) that enables secure, cross-domain, integration between Silverlight applications and SharePoint Foundation deployments, and Silverlight CDA can be used by non-Silverlight external applications as well. more details here...

    Managed Client Object Model
    The SharePoint Foundation 2010 managed client object model lets you write client-side code to work with all the common objects in SharePoint sites. Through the object model, you can add and remove lists, add, update, and delete list items, change documents in document libraries, create sites, manage permissions of items, and add and remove Web Parts from a page.
    With the SharePoint Foundation 2010 managed client object model, you can design client applications that access SharePoint content without installing code on the server that runs Microsoft SharePoint Foundation 2010. For example, you can build new categories of applications that include writing applications that are based on the Microsoft .NET Framework, rich interactive Web Parts, Microsoft Silverlight applications, and ECMAScript (JavaScript, JScript) applications that run client-side in a SharePoint Web Part.
    more details here...

    Sandbox Solutions
    You can deploy a Microsoft SharePoint Foundation 2010 solution directly onto your SharePoint Foundation farm, or you can deploy the solution into a sandbox. A sandbox is a restricted execution environment that enables programs to access only certain resources, and that keeps problems that occur in the sandbox from affecting the rest of the server environment. 
    Solutions that you deploy into a sandbox, cannot use certain computer and network resources, and cannot access content outside the site collection they are deployed in.
    more details here... and here.

    Visual Studio 2010 for SharePoint
    A number of areas for SharePoint developers in Visual Studio 2010 are worth mentioning. First, you get SharePoint project templates in the box, so you can start right away on solution development. Second, tooling has standardized on the Windows SharePoint Package (WSP) packaging standard, so when you import or deploy a solution to SharePoint, Visual Studio treats it as a solution package. Third, some great deployment and packaging features, such as solution retraction and custom deployment configurations, ship with the SharePoint tools in Visual Studio 2010. And last, the new SharePoint Explorer provides a view into native and custom artifacts (for example, lists and workflows) that exist on your SharePoint server.

    WSP Changes
    SharePoint 2010 improves the WSP format so that it is supported across all tools, allowing you to export your site through the browser, SharePoint Designer, and Visual Studio. This means that you can quickly upgrade or downgrade your solutions between the tools.
    SharePoint Online, the Microsoft - hosted version of SharePoint, supports this format so that you can move solutions to the cloud without having to rework the package.

    Developer Dashboard
    The developer dashboard is a new feature in SharePoint 2010 that is design to provide additional performance and tracing information that can be used to debug and troubleshoot issues with page rendering time. The dashboard is turned off by default, but can be enabled via the object model or stsadm (and PowerShell too, I just haven’t put together the script for it yet). When the dashboard is turned on you will find information about the controls, queries and execution time that occur as part of the page rendering process; this information appears at the bottom of the page.

    Dialog Framework
    SharePoint 2010 has a new framework for showing dialogs to the end-user. The dialogs allow people to work with some data without losing focus on the page they were working on to get things done. Closing the dialog will often cause AJAX based refreshes to give a sense of stateful-ness.
    The dialog is of course extensible through JavaScript code. You can either show a separate page, or use a DOM element on the source page and show that. You can then determine when the dialog closes and what happens when it has closed.
    more details here...

    SharePoint Designer 2010
    There have been a large number of changes to SharePoint Designer. 
    For a nice overview go to this post

    Visio Services
    Visio Services in Microsoft SharePoint Server 2010 is a service application that lets users share and view Microsoft Visio Web drawings. The service also enables data-connected Microsoft Visio 2010 Web drawings to be refreshed and updated from various data sources. 
    Visio Web drawings (*.vdw files) can be rendered by Visio Services and viewed in a Web browser. This lets users view Visio documents without having Visio or the Visio Viewer installed on their local computer. Basic exploration and navigation of these rendered Web drawings are supported within the Visio Web Access Web Part. Page designers can configure the user interface and functionality of the Web Part. 
    Visio Services can also refresh the data and recalculate the visuals of a Visio Web drawing hosted on a Microsoft SharePoint Server 2010 site. This enables published Web drawings to refresh connections to various data sources and to update affected data graphics and text fields. more details here...

    InfoPath 2010 (changes)
    InfoPath 2010 comes with a large number of enhancements which includes: 
    Easy customization of list forms with InfoPath, an InfoPath Form Web Part, Forms with code-behind can be deployed using sandbox solutions, creating a site template will produce a WSP package which includes the InfoPath forms, Forms Services forms now support WCAG 2.0 standard, InfoPath forms can be made available offline using SharePoint Workspace 2010, Forms Services also support FireFox and Safari. 
    more details here... and here. 

    PowerShell for SharePoint 2010
    Windows PowerShell is a command-line scripting tool that provides an administrator full access to applicable application programming interfaces (APIs), along with the ability to unlock the capability to interact directly with SharePoint 2010 Products to manipulate Web applications, site collections, sites, lists and much more. In addition, the administrator has the ability to script cmdlets (pronounced "command-lets"), which makes for an improved experience from past product versions.  more details here... and here

    Other enhancements (not covered in this post):
    Access Services
    Central Administration (Redesigned)
    Digital Asset Management
    Enterprise Search
    Excel Services
    Health Monitoring
    Managed Metadata
    PerformancePoint Services
    Enhanced Records Management
    Changes to Social Computing (previous called Collaboration)
    Upgrade

    very nice and usefull for sharepoint 2010 blog

    http://johanolivier.blogspot.com/2010/08/sharepoint-2010-ribbon-enabled-web-part.html

    http://virtualizesharepoint.com/category/sharepoint-2010-search/

    http://www.sharepointkings.com/2010/09/sharepoint-cascading-drop-downs-using.html