| | Tue, 09 Mar 2010 20:38:15 GMT | | This is Tim McConnell, Program Manager on the SharePoint Foundation team. For the 2010 release, I’ve worked with SharePoint platform and partner teams to deliver powerful, reliable, accessible user experiences. Like Office, Office Web Applications, Windows, and teams across Microsoft, everyone in SharePoint strives to remove barriers that make software difficult to use. Sometimes improvements can be obvious, like the reorganized Ribbon user interface. However, some users may not notice changes that can transform another user’s experience. Accessible software respects the range of different users’ experiences, and it accommodates everyone. Standards As a starting point, SharePoint adopted the Web Content Accessibility Guidelines 2.0, WCAG 2.0, and set a goal for Level AA. Becoming a W3C recommendation on December 11th, 2008, WCAG 2.0 defines the expectations of and the techniques deployed in well-built, accessible Web sites. The SharePoint teams followed the spec’s developments, and we designed and tested SharePoint 2010 against the guidelines. WCAG 2.0 represents a modern, international standard that’s as valuable to developers as it is to Web users. Core Investments The four principles of WCAG 2.0 are Perceivable, Operable, Understandable, and Robust. For each area, SharePoint has made key investments, and here I’ll scratch the surface to describe a few: Perceivable - SharePoint 2010 delivers broad changes to describe content and media and to explain controls.
- The redesigned masterpage leverages CSS and presents content in the appropriate sequence.
Operable - Keyboard interaction has been a cornerstone in our feature evaluations to maximize device compatibility and usability.
- Proper heading structures have been added to pages for informational, organizational, and navigational benefits.
- Core to a trustworthy interface is a dependable focus, and we’ve invested heavily in protecting the users focus and in deferring control to the user agent wherever possible.
Understandable - Across SharePoint, we’ve improved language support, and we’ve integrated this information into our pages and into our advanced editors.
- SharePoint supports browser settings to zoom content and operating system features to increase font sizes.
Robust - Our new design efforts let us declare DocTypes and specify CSS-standards rendering for our masterpages. This has dramatically improved our cross-browser support.
- Broad investments were made to update our markup to be like well-formed XML, and the new rich text editor has clean markup and a function to convert its content into XHTML.
We’ve tested these principles with and without Assistive Technologies to verify their value for all users. ARIA Integration ARIA stands for Accessible Rich Internet Applications, and it specifies descriptive extensions for Web applications. Like WCAG, WAI-ARIA is from the W3C’s Web Accessibility Initiative. In a nutshell, ARIA allows an inaccessible element, such as a div with an onclick attribute, to surface itself as a button control. This can be done with a new role attribute set to “button”—it’s that simple. SharePoint leverages ARIA in the Ribbon, in dialogs, in our new rich text editor, and elsewhere in the platform and in partner applications. Examples of Accessibility Investments Dialogs In order to keep users in context for as long as possible, we’ve introduced in-browser dialogs. With a dialog, the experience of reading, editing, and creating SharePoint content moves more quickly. Since SharePoint dialogs do not open new browser windows, we’ve built in important accessibility features to help all users navigate successfully. - Focus: SharePoint describes its dialogs using multiple accessible techniques, and form dialogs will set focus on the first form element like they would after a navigation event.
- Dismissing a dialog: depending on how a browser implements Access Keys, closing the dialog is a couple of key strokes away. For example, in Internet Explorer, a user can hit Alt+C to disregard a dialog; in Firefox users can hit Alt+Shift+C.
- Confirming a dialog: when the necessary forms have been filled, users can hit Alt+O to accept the dialog or to submit the form.
The Ribbon As the key component of the new SharePoint 2010 user interface, the Ribbon needs to deliver powerful, useful, and usable experience. We designed the Ribbon to be accessible from the beginning, and we took advantage of multiple tools and techniques to provide a rich experience. Keyboard Support Keyboard support comes from the ground up. Because the Ribbon is a complicated component, it has a simple link to skip all of its commands. To help users on keyboards and alternative input devices, the Ribbon provides hidden, in-context instructions that explain its structure and how it’s controlled. Each of the Ribbon’s commands and menu anchors appear within the page’s navigation order, so it’s always safe to explore either forwards or backwards. Tab Access Because the Ribbon appears at the top of SharePoint pages, it’s necessary to provide quick access. The Ribbon operates as a central control for all of the components on the page, so it’s impractical to navigate back and forth for every command. To accelerate Ribbon interaction, a new shortcut key combination, Ctrl+[, will jump the focus to the first available Ribbon tab. From there, users can move back toward the Quick Access Toolbar commands and the Site Actions menu, or users can move ahead to the other Ribbon tabs. In the following picture, the Browse tab has been highlighted to demonstrate focus after entering the Ctrl+[ shortcut key combination. Command Access Similar to accessing Tabs, it’s also important to quickly access commands. For this SharePoint supports the Ctrl+] shortcut key combination. This shortcut works in one of two ways: - It selects the first command on the active Ribbon Tab.
- It selects the last used command on the active Ribbon Tab.
To move between Groups of Ribbon commands enter one of the Ctrl+Arrow Left, Ctrl+Arrow Right, Shift+Arrow Left, or Shift+Arrow Right shortcut key combinations. These shortcuts will loop through the Groups to prevent users from accidentally navigating outside of the Ribbon. The shared use of Ctrl and Shift allows for maximum browser and Assistive Technology compatibility. Enhanced Tooltips Enhanced tooltips describe a command’s behavior and its availability without cluttering the user interface or slowing navigation. When trying to decipher small icons or to move between many rich commands, enhanced tooltips provide the extra bit of information needed to verify your actions. ARIA Integration Behind the scenes in each of the three Ribbon examples are ARIA role attributes describing the structure and purpose of the Ribbon controls. Here’s a short list of attributes: - aria-labelledby – Rich control labels
- aria-describedby – Rich control descriptions via enhanced tooltips
- aria-haspopup – Notification information to warn when a control may pop-up another control
- aria-multiline – Describes text fields for large amounts on content
- And here’s a short list of ARIA roles used within SharePoint:
- tabpanel – An expanded Ribbon Tab
- tooltip – Ribbon tooltip content
- button – An interactive button control
- dialog – An interactive dialog
Each of these simple strings dramatically changes how browsers and Assistive Technologies communicate Web content to users. While a basic a anchor tag will work for most basic command scenarios, it’s better and more reassuring to fully provide ARIA’s role=”button” syntax for clear descriptions. InfoPath Forms Through investments made in InfoPath Forms Services 2010, form designers can easily design and publish forms with an accessible user experience. Assistive Technology Friendly InfoPath forms have been designed and tested to work with browsers and assistive technologies. Broad changes have been made to describe simple controls and complex controls with field validation and relationships. ARIA Integration WAI-ARIA has been used to further improve the user experience on assistive technologies: ARIA is used to notify the assistive technology of form updates, alerts, warnings, and other pop-up dialogs. Keyboard Support Users filling forms in IPFS 2010 have full keyboard support to access all necessary functionality. InfoPath has also done work to ensure that keyboard focus is maintained in a predictable manner during dynamic changes to the form. Project Grid Editing The ability to display and edit tabular data is a core component of any productivity suite. SharePoint is no exception. In SharePoint Foundation 2010 we have introduced a new JavaScript based grid control that allows users to modify SharePoint Project Tasks Lists, change Project schedules, and edit Access databases. From the very early planning stages of developing this control we began to craft requirements to ensure the control was accessible. The control has complex requirements around the support of Gantt Charts and hierarchy (for Project Server) as well as very large datasets, macros and custom user validation (for Access Services). In order to ensure accessibility for these features we made use of ARIA and robust keyboard shortcuts. ARIA Integration Like the Ribbon, ARIA is used to achieve support for these complex requirements. Here are additional examples of how Project uses ARIA: - aria-owns – enables focus element to be set in a input element that maps to the entire control
- aria-activedescendant – enables virtual focus element to map to a specific cell within the grid
- aria-multiselectable – indicates that multiple cell selections can be made
- aria-expanded – indicate expand/collapse state within hierarchy
- aria-busy – indicates if a row has not yet been downloaded from the server
Keyboard Navigation SharePoint’s Grid control was designed to support keyboard navigation from day one. We know that frequently when dealing with tabular data whether it is datasheets, lists or projects, users often have many items to display on screen. Because of this we provide a simple link that allows users to skip the grid when moving through elements on a page. Additionally the Grid supports many of the keyboard shortcuts you have come to expect in desktop applications. Cell navigation can be easily performed by using directional arrow keys as well as traditional tabbing. Moving up and down within grid is easy with common shortcuts like Page Up/Page Down as well as support for Home/End and many others. Support is even present for complex selection and expanding dropdowns (Alt+Down). In Project Server the control supports changing Gantt chart zoom levels all through a couple keypresses (CTRL+* & CTRL+/), as well as expanding and collapsing hierarchy. Conclusion Thanks for learning more about the investments that we’ve made to make SharePoint an exceptional, versatile, and accessible web application and platform. Web technologies move quickly, and we’re always seeking new ways to present dynamic Web experiences that work for everyone. We’re proud of the richness that we’ve delivered, and we hope that you’ll discover SharePoint 2010 to be both powerful and usable. -Tim McConnell   | |
| | Fri, 05 Mar 2010 22:52:37 GMT | | Today, we officially announced that May 12th, 2010, is the launch date for SharePoint 2010 & Office 2010. In addition, we announced our intent to RTM (Release to Manufacturing) this April 2010. It’s an exciting time for us! We hope you can virtually join us on May 12th at 11am EST to listen to Stephen Elop, President of the Microsoft Business Division, announce the launch. You can register for the event @ http://sharepoint.microsoft.com/businessproductivity/proof/pages/2010-launch-events.aspx. Arpan Shah Director, SharePoint   | |
| | Tue, 02 Mar 2010 03:50:09 GMT | | In our last blog of this series Walkthrough of creating a SharePoint 2010 external list using Visual Studio 2010 Beta, we introduced how to create a simple “Hello world” external list in SharePoint 2010 Beta using Business Data Connectivity Designer in Visual Studio 2010 Beta. In this blog, we will show you how to pull data from an external database into an external list and enable Create, Read, Update and Delete (CRUD) functions to the external list. First of all, you need to have SharePoint 2010 Public Beta and Visual Studio 2010 installed on your machine in order to complete this walkthrough. We’ll use “Northwind” database as external data source, so if you do not have an existing “Northwind” database available, we’ll walk you through to create a local database using SQL Server Express first (SQL Server Express comes with Visual Studio installation by default, in case you don’t yet have it, download it here). At the end of this post, we will complete with a BDC model project which has a “Customer” entity connects to “Customer” table in “Northwind” database, and have CRUD operations enabled. The finished project can also be downloaded from here. Prepare the data source If you already have a “Northwind” database, you can skip this section. Otherwise, please download SharePoint2010_BDCSamples.zip from here and extract the SQL script file CreateSampleNorthwindDB.sql. Open Visual Studio. Go to View->Server Explorer. Right click Data Connections in Server Explorer, and select Create New SQL Server Database. 1. In the prompt dialog, type “localhost\sqlexpress” in Server Name text box, and give the new database name “SampleNorthwind”. * If you're using the SQL Express that comes with SharePoint Server, please replace “localhost\sqlexpress" with "localhost\sharepoint”. 2. Start a Command Prompt. Go to Start->Run, type “Cmd” in the text box and click OK. 3. In the Command Prompt, type in following command and press enter: sqlcmd -S localhost\sqlexpress -d samplenorthwind -i <Path of CreateSampleNorthwindDB.sql file> Create BDC Project Create a new C# BDC Model project and rename it “BdcSampleCSharp”. VB code snippets will also be provided, so you can create VB BDC Model project if you want. In this walkthrough, we will use C# project as an example. (Check this blog for how to create a BDC project) Connect to external data source To use the SampleNorthWind database, we add a LINQ to SQL model to the project: 1. On the Project menu, click Add New Item, in the prompt Add New Item dialog select Data in the Installed Templates pane, in the Templates pane select LINQ to SQL Classes, in the Name box, type “Customer”, and then click Add. 2. In the Server Explorer, go to Data Connections->[hostname]\sqlexpress.SampleNorthWind.dbo->Tables->Customers, drag the Customers table and drop it on the Customer.dbml design surface. 3. Add a new class file and rename it “CustomerDataContext.cs”. Replace the code of the class with the following code snippet. Note: We made the connection string a constant in the code only for demo purpose, if you’re using your own database, modify the connection string as needed. In our future post we will introduce how to set the connection string in a custom property on LobSystemInstance inside the BDC model and read the value through IContextProperty interface at runtime. C#: public partial class CustomerDataContext
{
private const string ConnectionString = @"Data Source=localhost\SQLEXPRESS;Initial Catalog=SampleNorthwind;Integrated Security=True;Pooling=False";
public CustomerDataContext() :
base(ConnectionString, mappingSource)
{
OnCreated();
}
}
VB:
Partial Public Class CustomerDataContext
Private Const ConnectionString As String = "Data Source=localhost\SQLEXPRESS;Initial Catalog=SampleNorthwind;Integrated Security=True;Pooling=False"
Public Sub New()
MyBase.New(ConnectionString, mappingSource)
OnCreated()
End Sub
End Class
Design BDC Model
1. On the design surface, delete entity Entity1 which is created by default. On the View menu, click on Toolbox if it is not shown. Create a new entity by drag and drop the Entity icon from Toolbox onto design surface (see the screenshot below). In the Properties Browser, change the value of Entity’s Name property to “Customer”.
2. Create a new Identifier CustomerID on entity Customer. To do so, on the design surface, right click the entity, click Add->Identifier. A new identifier appears on the entity, and then rename it to “CustomerID”.
3. Create a Specific Finder method for the entity. To do so, on the design surface, select entity Customer, you could find a <Add a Method> command in the Method Details Window. If the Method Details Window is not opened, you can find it in menu View->Other Windows->BDC Method Details. From the <Add a Method> drop-down list, select Create Specific Finder Method:
A method named ReadItem appears on entity Customer. In the Method Details Window, you will find that the method takes a In parameter and a Return parameter. In the next step we will define TypeDescriptors associated with these parameters.
4. Add TypeDescriptors for the return parameter Customer. The edit need to be done in BDC Explorer. You can find it by going to View->Other Windows->BDC Explorer.
a) In the Method Details Window, click <Edit> command in the drop down control from TypeDescriptor Customer as depicted below. After the click the BDC Explorer will get focused on the TypeDescriptor Customer.
b) In BDC Explorer right click the focused TypeDescriptor Customer and select Add Type Descriptor:
A new TypeDescriptor is created under TypeDescriptor Customer. In the Properties Browser, rename it to “CustomerID”. Next you need to set the Identifier property to “CustomerID” to tell the BCS runtime which identifier this TypeDescriptor represents. Here is a screenshot of Properties Browser after this step:
c) Continue to add following TypeDescriptors under Customer by repeating the operation described above: Address, City, CompanyName, ContactName, Country, Fax, Phone, PostalCode and Region, for each TypeDescriptor, you need to change its Type Name to make sure they match the type defined in the LINQ to SQL model. In this example, all the TypeDesriptors have a type of System.String which is the default one so we do not need to change them. After this step, we get the following TypeDescriptors in BDC Explorer:
d) Next we need to define the actual type of the TypeDescriptor Customer. Click TypeDescriptor Customer in BDC Explorer. You will find in the Properties Browser the value of Type Name property is System.String by default, we need to change it to “BdcSampleCSharp.Customer, BdcModel1” which is a LobSystem qualified type name. This specifies the actual the data type of the data structure that is represented by this TypeDescriptor Customer.
5. Create the other types of methods by the same way described in step 6. After this step we will have five methods in the entity Customer: ReadItem, ReadList, Create, Update and Delete. If you check the ReadList method in Method Details Window, the TypeDescriptors of the return parameter have already been defined with the same structure as we just built above. This is because when creating a new method, BDC designer will search the possible TypeDescriptors defined in the other methods of this entity and copy them to the newly created methods. This saves the developers so much time to define them repetitively.
Add code behind to access external data source
Now it’s time to add code to implement the CRUD functions. In Solution Explorer, find and open CustomerService.cs, and then replace the implementation with the following code snippet:
C#:
public static Customer ReadItem(string customerID)
{
CustomerDataContext context = new CustomerDataContext();
Customer cust = context.Customers.Single(c => c.CustomerID == customerID);
return cust;
}
public static IEnumerable<Customer> ReadList()
{
CustomerDataContext context = new CustomerDataContext();
IEnumerable<Customer> custList = context.Customers;
return custList;
}
public static Customer Create(Customer newCustomer)
{
CustomerDataContext context = new CustomerDataContext();
context.Customers.InsertOnSubmit(newCustomer); context.SubmitChanges();
Customer cust = context.Customers.Single(c => c.CustomerID == newCustomer.CustomerID);
return cust;
}
public static void Delete(string customerID)
{
CustomerDataContext context = new CustomerDataContext();
Customer cust = context.Customers.Single(c => c.CustomerID == customerID);
context.Customers.DeleteOnSubmit(cust);
context.SubmitChanges();
}
public static void Update(Customer customer, string customerID)
{
CustomerDataContext context = new CustomerDataContext();
Customer cust = context.Customers.Single(c => c.CustomerID == customer.CustomerID);
cust.CustomerID = customer.CustomerID;
cust.Address = customer.Address;
cust.City = customer.City;
cust.CompanyName = customer.CompanyName;
cust.ContactName = customer.ContactName;
cust.ContactTitle = customer.ContactTitle;
cust.Country = customer.Country;
cust.Fax = customer.Fax;
cust.Phone = customer.Phone;
cust.PostalCode =customer.PostalCode;
cust.Region = customer.Region;
context.SubmitChanges();
}
VB:
Public Shared Function ReadItem(ByVal customerID As String) As Customer
Dim context As New CustomerDataContext
Dim cust = (From c In context.Customers _
Where c.CustomerID = customerID _
Select c).Single()
Return cust
End Function
Public Shared Function ReadList() As IEnumerable(Of Customer)
Dim context As New CustomerDataContext
Return context.Customers
End Function
Public Shared Function Create(ByVal newCustomer As Customer) As Customer
Dim context As New CustomerDataContext
context.Customers.InsertOnSubmit(newCustomer)
context.SubmitChanges()
Dim cust = (From c In context.Customers _
Where c.CustomerID = newCustomer.CustomerID _
Select c).Single()
Return cust
End Function
Public Shared Sub Delete(ByVal customerID As String)
Dim context As New CustomerDataContext
Dim cust = (From c In context.Customers _
Where c.CustomerID = customerID _
Select c).Single()
context.Customers.DeleteOnSubmit(cust)
context.SubmitChanges()
End Sub
Public Shared Sub Update(ByVal customer As Customer, ByVal customerID As String)
Dim context As New CustomerDataContext
Dim cust = (From c In context.Customers _
Where c.CustomerID = customer.CustomerID _
Select c).Single()
cust.Address = customer.Address
cust.City = customer.City
cust.CompanyName = customer.CompanyName
cust.ContactName = customer.ContactName
cust.ContactTitle = customer.ContactTitle
cust.Country = customer.Country
cust.Fax = customer.Fax
cust.Phone = customer.Phone
cust.PostalCode = customer.PostalCode
cust.Region = customer.Region
context.SubmitChanges()
End Sub
Create an external list to test out the BDC Model!
Now we are done! Let’s deploy the solution and create an external list to test it out (Check this blog to see how to create an external list). After the list is created, you will see the following page appears when you click on the list name:
All the data are pulled out to SharePoint successfully, now you can create, delete or edit customer records.
To create a new Customer, find the List Tools->Items->New Item button on the ribbon shown in the following screenshot:
Click on the button, New Item dialog will pop out as below:
Fill in the dialog and click Save, you will find the item created in the list right away.
To edit or delete the item, just click the down arrow at the right side of CustomerID, all the operations you need are there.
   | |
| | Fri, 26 Feb 2010 23:45:13 GMT | | SharePoint web dialogs bring an exciting new UI feature: they can auto-size to the content of a hosted page. Auto-sizing works by examining the contents of your page during page load, and setting the size of the dialog accordingly. Unfortunately, this feature can be speed bump on the road to master page customization. This post will describe the master page customization process necessary to keep dialog auto-sizing working with your master pages. The most important thing to note is that the auto-sizing feature is aware of whether the ribbon is fixed at the top of the screen. It is important to know whether your master page has the ribbon fixed at the top of the screen or not in order to customize it to work well with auto-sizing. A ribbon fixed on top of the screen looks like this, with the page content below the ribbon scrollable separately from the ribbon itself: If the ribbon is fixed at the top of the screen, be sure the following statements about your master page are true: - The ribbon is inside an element with ID "s4-ribbonrow".
- The remaining page content is inside an element with ID "s4-workspace".
- The element with ID "s4-workspace" is scrollable.
- The <body> element is not scrollable.
If the ribbon is not fixed at the top of the screen, be sure the following statements about your master page are true: - There is no element on the page with ID "s4-ribbonrow".
- The <body> element is scrollable.
The auto-sizing process happens when the hosted page loads. If your master page or any individual pages use dynamic HTML to change the size, position, or amount of content on the page after page load, you may need to re-invoke the auto-sizing process after the dynamic content update in order to obtain a correctly-sized dialog. From within a hosted page, call window.frameElement.autoSize(); to invoke the auto-sizing process. During initial page load, the dialog is hidden and a loading dialog is shown (see below). However, after the page has loaded, re-invoking the auto-sizing process will continue to show the existing dialog while changing its size. If your master page uses a table-based layout, or a variable-width layout, the auto-sizing process may be unable to determine the correct size. In that case, you can try to set a minimum or fixed width on an element in the page in order to help the auto-sizing process. Zach Nation Software Developer on SharePoint Foundation   | |
| | Thu, 25 Feb 2010 23:13:47 GMT | | | Hi all. This is Greg Chan, Program Manager on the SharePoint team, for the third part in this List View series. In this post I’m excited to have one of the key architects of the new XSLT List View Web Part (XLV) talk more about its architecture. Here is what he has to say: Hi! I’m Eric Andeen, a developer on the SharePoint team. I’m going to describe in a little more detail how the XSLT List View Web Part (XLV) works, and how that affects people building and using SharePoint sites. List View XML and minimal markup As Greg mentioned in Part I, the XLV is the new list view technology in SharePoint 2010, replacing the List View Web Part (LVWP). Since the XLV is the replacement for the LVWP, it needs to do all the same things, as well as adding new capabilities. The best place to start this discussion is with some of the things that haven’t changed. The markup required to specify a LVWP is pretty simple – we need to know which list the LVWP is displaying, and we need to know about the view. The list can be identified by name, URL or guid identifier, but the view is a little more complex, and is specified in XML. This is an example of the ViewXML of the default view of an announcements list: <View Name="{F5D7FCD1-BEFE-42b5-9339-4F4F3C6A38FE}" DefaultView="TRUE" DisplayName="All Items" Url="/Lists/Announcements/AllItems.aspx"> <Query> <OrderBy> <FieldRef Name="Modified" Ascending="FALSE"/> </OrderBy> </Query> <ViewFields> <FieldRef Name="Attachments"/> <FieldRef Name="LinkTitle"/> <FieldRef Name="Modified"/> <FieldRef Name="Number"/> </ViewFields> <RowLimit Paged="TRUE">30</RowLimit> </View> The primary use of the ViewXML is to generate the SPDataSource that gets the data, but it is also used in the xsl transform to turn the raw xml data returned into presentable HTML, as we will see below. The part of the ViewXML that’s most important to this discussion is the <ViewFields> tag – it tells SharePoint which fields are in the view. Schema Independent XSL The XLV is now the default list view technology in SharePoint, and that means it has to scale as well as the LVWP. The only way that’s possible is for the XLV to render any uncustomized, out of the box view using a single XSLT. An uncustomized XLV has no <xsl> property at all – SharePoint supplies the same shared XSLT that is used to render every other XLV. The XSLT responsible for this lives on your server at http://<myserver>/_layouts/xsl/main.xsl – go ahead and open it up and look at it, as well as the xsl:import files vwstyles.xsl and fldtypes.xsl that do most of the work. Before we discuss how the XLV’s schema independent XSLT works, it’s worth considering how typical, schema dependent XSLT like that used in the DataFormWebPart works. In order to render a tabular view of rows and columns, any technology, XSLT included, needs to iterate through the rows, and in each row, it needs to iterate through the columns, rendering each part appropriately. The XML we’re transforming looks like this: <Rows> <Row @Field1="Hello" @Field2="World!" @Field3="" /> <Row @Field1="Some" @Field2="More" @Field3="Data" /> <Row @Field1="Yet" @Field2="More" @Field3="Data" /> </Rows> The interesting portion of a typical XSLT for this XML looks like this: <xsl:for-each select="$Rows"> <tr> <td> <xsl:value-of select="@Field1"/> </td> <td> <xsl:value-of select="@Field2"/> </td> <td> <xsl:value-of select="@Field3"/> </td> </tr> </xsl:for-each> The output HTML is a 3x3 table: | Hello | World! | | | Some | More | Data | | Yet | More | Data | This XSLT is schema dependent because it iterates through the list of columns by naming each one explicitly. Using this XSLT, the schema of the rendered list is fixed; it’s not possible to change the set of fields without changing the XSLT. The schema independent XSLT that the XLV uses iterates through the rows pretty much the same way as the example above, but it iterates through the columns quite differently. When the XLV renders the list, the XML passed in to the transformation engine includes not just the data in the <Rows> collection; it also includes the ViewXML shown above, enhanced with additional schema information. There are several instances of the field iterator in the XSLT to accommodate different view styles, but they all look something like this: <xsl:for-each select="ViewFields/FieldRef"> <xsl:apply-templates mode="PrintField" select="."> <xsl:with-param name="thisNode" select="$thisNode"/> </xsl:apply-templates> </xsl:for-each> The “ViewFields" referenced in the <xsl:for-each> is the <ViewFields> tag in the enhanced ViewXML markup, and the $thisNode variable refers to the current row in the Rows collection. The XSLT also contains a set of templates for rendering the fields. A simplified version of those field templates would look like this: <xsl:template match="FieldRef" mode="PrintField"> <xsl:param name="thisNode" select="."/> <td> <xsl:apply-templates match="FieldRef" mode="PrintValue"> <xsl:with-param name="thisNode" select="$thisNode"/> </xsl:apply-templates> </td> </xsl:template> <xsl:template match="FieldRef" mode="PrintValue>" <xsl:param name="thisNode" select="."/> <xsl:value-of select="$thisNode/@*[name()=current()/@Name]"/> </xsl:template> The first template outputs the <td> tag and then calls the next template to output the actual value. The second template is where things get interesting. In the schema dependent example above, the values were all named explicitly – @Field1, etc. We can’t do that in the schema independent XSLT, so instead, we use the FieldRef node in the ViewFields markup to get the appropriate attribute from the row. $thisNode is the row of data we’re looking at, and the current XSLT context (.) is the FieldRef node for the field we’re rendering. So the value of the funky xpath expression above – $thisNode/@*[name()=current()/@Name] – is the value of the attribute in the Row tag for the current field – exactly what we want. $thisNode is the row of data we're looking it; @* is the xpath attribute axis, and [name()=current()/@Name] selects the one attribute whose name matches the @Name attribute of the current context – the FieldRef node. The actual XSLT for the XLV has to do more than just render simple values inside unadorned <td> tags – it has to render field headers, list item menus on title fields, proper CSS classes on <td> and other tags, etc. It also has to render some field types (hyperlink, person, etc.) differently from simple text fields. All this is done through the same basic mechanism as in the simplified version above – the fields iterator calls a template to render the field, which in turn calls into a series of other templates. Some of the simpler differences make use of <xsl:apply-templates> to select the right template – the template that renders date fields has a match="FieldRef[@Type='DateTime']" instead of just match="FieldRef", for example. More complex checks make use of <xsl:if> and <xsl:choose> along with <xsl:call-template> to call the right template. XLV Model The following diagram sums up the process which turns list data and XSLT into the view you see when you browse to a SharePoint page. The data comes from an SPDataSource control, but unlike the DataFormWebPart, the SPDataSource control is dynamically generated from the ViewXML in the diagram below. The SPDataSource control produces an XML rowset containing the list data. The ViewXML gets enhanced with list schema information and added to the XML rowset containing the data. The XSLT is compiled into an XslCompiledTransform – and since we always use the same XSLT, it's only compiled once per web server. The XML rowset, with both the data and the enhanced ViewXML, is passed into the XslCompiledTransform, and the HTML output goes into the page stream and onto the screen of your browser. Modifying the View One of the benefits of this approach is that we can now change the set of fields in the view, and the XSLT will still render them properly. Want to add Field4 to the data? No problem – just add it to the ViewXML. Want to change Field1 from a simple text field to a person field? No problem – just change the field definition in SharePoint, and the enhanced ViewXML markup has the new type, so the field will render properly as the new type. What if we want to make more complex changes to the XSLT – things like conditional formatting? It's possible to do so in SharePoint designer, generally without losing the advantages of the schema independent XSLT. We'll cover that in depth in the next post in this series. Performance Although the ability to modify the view without changing the XSLT is a very nice benefit of the schema independent XSLT, it's not the most important one. The primary benefit, and the one that allows the XLV to become the default view technology, is performance and scalability. The SharePoint server loads one copy of the XSLT into memory and reuses it for every uncustomized XLV it renders, which allows the server to render many views very quickly. And the lack of a large <xsl> property on uncustomized views means that each view takes only a small amount of space in the content database, which allows a site collection to contain a large number of lists and views without space issues.   | |
| | Mon, 15 Feb 2010 18:00:46 GMT | | A lot of people have asked me how to create a button which enables if and only if a single item is selected. This isn’t something we have out of the box, but the code to get this functionality is pretty simple. I’m going to assume that you’re generally familiar with SharePoint, CustomActions, and customizing the Ribbon – if that’s not the case, you’d probably be better off researching those things before delving into this. Basically, the enabling behavior all boils down to the following few lines of code: EnabledScript="javascript:function singleEnable() { var items = SP.ListOperation.Selection.getSelectedItems(); var ci = CountDictionary(items); return (ci == 1); } singleEnable();" What this does is query to get the dictionary of selected items, and if the size of the dictionary is 1 it returns true (enable), otherwise it will return false (disable). Technically, I should have used Script on Demand to call into the SP.* namespace, but since I’m calling this from the Ribbon I have a high confidence that SP.js has been loaded already. With nothing selected: With one item selected: Clicking the button: And with more than one item selected: You could also change this to enable only if no items were selected, or if any number of items were selected. The way to make those kinds of changes should be relatively self-explanatory. The full CustomAction code for a sample Ribbon button which enables when one item is selected is at the end of this post. The code assumes the following: - You want to add this button to the New group on the Documents tab. If you want to add the button to another location, you should change the Location attribute of the CommandUIDefinition element (as well as change any appropriate attributes in the Button element, such as Id and Sequence, to match the new location).
- You have an icon image at LAYOUTS/SharePointProject1/DemoButton.jpg. If that’s not the case, you should either put an icon at that location or change the Image32x32 attribute to a valid icon path.
CustomAction code: <CustomAction Id="EnableSingleSelectButton" Location="CommandUI.Ribbon" > <CommandUIExtension> <CommandUIDefinitions> <CommandUIDefinition Location="Ribbon.Documents.New.Controls._children"> <Button Id="Ribbon.Documents.New.EnableSingleSelectButton" Alt="Button enabled on single selection" Sequence="35" LabelText="Single Select" Image32by32="/_layouts/SharePointProject1/DemoButton.png" Command="SingleSelectButton" TemplateAlias="o1" /> </CommandUIDefinition> </CommandUIDefinitions> <CommandUIHandlers> <CommandUIHandler Command="SingleSelectButton" CommandAction="javascript:alert('There is only one thing selected!');" EnabledScript="javascript:function singleEnable() { var items = SP.ListOperation.Selection.getSelectedItems(); var ci = CountDictionary(items); return (ci == 1); } singleEnable();" /> </CommandUIHandlers> </CommandUIExtension> </CustomAction>   | |
| | Fri, 22 Jan 2010 22:55:22 GMT | | We've seen some confusion in the newsgroups and elsewhere on the versions and editions of Windows that SharePoint 2010 will run on. This post is meant to clarify some of the most common questions we have seen. SharePoint 2010 will support only 64-bit (x64) versions of Windows Server 2008 SP2 and Windows Server 2008 R2. SharePoint will not install at all on 32 bit Windows, or any earlier version of Windows such as Windows Server 2000 or Windows Server 2003. SharePoint is not supported on 'Server Core' installations of Windows Server 2008 and R2. The Server Core installations of Windows server do not contain some of the components required for SharePoint to be configured or run. To make developing for SharePoint 2010 easier, it is possible to install SharePoint on 64-bit versions of Windows Vista SP2 and Windows 7. Note that running production environments on these OSes are not supported and it will not be possible to upgrade deployments running on client versions of Windows to future versions of SharePoint. Instructions on installing SharePoint 2010 on client versions of Windows are a bit more involved and we recommend reading the instructions at http://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx. | Windows version/edition (64 bit only) | SharePoint 2010 support | | Windows Server 2008 R2 Foundation | No | | Windows Server 2008 R2 Standard | Yes | | Windows Server 2008 R2 Enterprise | Yes | | Windows Server 2008 R2 Datacenter | Yes | | Windows Web Server 2008 R2 | No | | Windows HPC Server 2008 | No | | Windows Server 2008 R2 for Itanium-based systems | No | | Windows Server 2008 Standard | Yes | | Windows Server 2008 Enterprise | Yes | | Windows Server 2008 Datacenter | Yes | | Windows Web Server 2008 | No | | Windows Storage Server 2008 | No | | Windows Small Business Server 2008 | Yes* | | Windows Essential Business Server 2008 | Yes* | | Windows Server 2008 for Itanium-based systems | No | | Windows Server 2008 Foundation | No | | Windows Vista | Developer-only** | | Windows 7 | Developer-only** | * Small and Essential Business Server editions of Windows install SharePoint as an optional component. ** Support for specific editions of Windows 7/Vista are yet to be finalized, but are likely to be 'Business'/'Professional' editions and above. The list above is meant for informational purposes only. The official list of system requirements for SharePoint 2010 is located at http://technet.microsoft.com/en-us/library/cc262485(office.14).aspx and includes additional details on prerequisites and other optional components. Umesh Unnikrishnan Program Manager, SharePoint   | |
| | Mon, 11 Jan 2010 21:37:46 GMT | | Management Packs allow users to monitor SharePoint 2010 with System Center Operations Manager. SharePoint Foundation Management Pack and SharePoint Server 2010 Management Pack enables monitoring of SharePoint Foundation 2010, SharePoint Server 2010, Search Server 2010 (These is separate management pack for FAST search), Project Server 2010 and Office Web Apps. Once management pack is imported to System Center console, based on console configuration it automatically discovers what SharePoint bits or servers are installed in the environment that is being monitored and start monitoring those components. These 2010 management packs will be released to System Center Operations manager catalog and will also be released to web along with SharePoint 2010 RTM. Out of box experience SharePoint Management Packs monitors all prominent services, Shared Services, SharePoint Health Analyzer rules, Web Applications and SharePoint Servers. In SharePoint 2010 you can use it to monitor both physical (servers and services running on those servers) and logical (Shared Services, Web Application etc.) of SharePoint. You can monitor multiple farms, and even fix some issues automatically by running out of box tasks. You can also write your own tasks using System Center Wizard or Windows PowerShell script to enable this self-healing. Primary takeaway of SharePoint 2010 MP is depth and breadth of monitoring and rapid detection and resolution. Here’re the improvements compared with the previous product. | | Management Packs for Windows SharePoint Services 3.0 and Microsoft Office SharePoint Server 2007 | Management Packs for SharePoint 2010 | Change | | Discoveries | 5 | 16 | ↑300% | | Classes | 10 | 133 | ↑1293% | | Monitors | 28 | 240 | ↑300% | | Rules | 235 | 107 | ↓45% | | Reports | 27 | 9 | ↓33% | | SPHA Rules | NA | 100+ | ↑100% | | TechNet KAs | NA | ~150 | ↑100% | These numbers illustrate significant improvements over 2007 management pack. 1200% and 300% change in number of classes and discovery represents improvement in depth and breadth of monitoring. Change in number of monitors indicates improvement in granularity of monitoring that enables quick isolation of issues. Detailed knowledge articles represent rapid diagnosis and resolution. Did you also notice knowledge articles are on TechNet, which means we will be able to improve these articles based on your feedback even after release! In 2007 you can just monitor, one farm with multiple servers and some services. Diagram view below reflects a typical 2007 monitoring. Anything that is crossed was not available in 2007 management pack and remaining had limited depth of one additional level. In 2010 you can monitor multiple farms, multiple servers, services, shared services, SharePoint Health Analyzer rules (Which saves you a trip to central admin which also means that System Center Operation Manager console is your one stop shop for all monitoring requirements) and web applications. Server Monitoring Service Monitoring Share Service Monitoring SharePoint Health Analyzer monitoring (One stop shop for both native and external monitoring) Web Application Monitoring Download Management Pack Beta for SharePoint 2010 SharePoint Foundation 2010: http://www.microsoft.com/downloads/details.aspx?FamilyId=43d5ee9a-b9a6-441d-a35e-8a7b9b15e20c SharePoint Server 2010: http://www.microsoft.com/downloads/details.aspx?FamilyId=c8a9d749-b7a8-412a-b2db-f3e464ed3fcf   | |
| | Fri, 08 Jan 2010 21:47:14 GMT | | Hi! I'm Jason Morrill, another Program Manager on the SharePoint team. I wanted to write a bit about what it feels like to use SharePoint lists with the new user experience. If you've got a SharePoint site sitting around, I'd encourage you to open it in another window and follow along as I talk about things. Let's start by just browsing to a document library with no content. The first thing you'll notice is that we've moved some of the navigation and menus around. The stuff right in the middle (Site Name > Document Library > All Documents) is your current location. You can click on the Site Name to get back home, and you can click on the view name (All Documents) to switch to another view. Above the title, you see there's a black row - this is where you go to access all your commands. I’ll talk more about that later. Below the title, you see the list view items. Right now there are no items, so let's fix that. To add an item to this library, you can click on the Add document button in the view. That button will always be available at the end of the current page, if you want to quickly add documents to this library. When you click it, you’ll notice that instead of navigating the entire page, we just put up a dialog asking you where you want to upload. This makes it faster to load and also easier to understand what’s going on. For this post, I actually want to upload multiple files – so go ahead and click on Upload Multiple Files. You’ll see something like this: You can drag files onto the blue rectangle to add them to your upload list, or you can click on Browse for files instead to find the files in a windows dialog. Once you’ve picked them, click Ok and they will start uploading. When the page refreshes, you’ll see lot of items in the view. If you hover over one, you’ll notice that the row gets highlighted: You can click on the dropdown arrow in the middle of the row to see a menu of commands for this document. However, you can also click anywhere else on the row (well, anywhere that’s not a link) to select the document. This will automatically open a menu of all the available commands for the selected document: This menu is where you can find all the commands in SharePoint. Sometimes, it will open automatically (like when you select an item). But, if you want to open it manually, you can always click on one of the tab names. Once it is open, you can look through the various available tabs by clicking on their names. The names generally describe the thing the command affects, so if you click on Library you are looking at commands you can perform on the Document Library. Commands on the Documents tab are relevant to the currently selected document or documents. When the ribbon opened, you might have noticed that it covered up the page title. We did that to save space, but if you ever want to get back to the page title, you can just click on Browse: Changing ribbon tabs won’t change what items you have selected, so it’s always safe to click around looking for the command you want. Now, go ahead and click back on the Documents tab and look through the available commands. You’ll notice that you can do all the familiar SharePoint actions from here. Go ahead and click on Edit Properties, and you’ll see the form pop up in another dialog. You can make whatever changes you want, click Save and we’ll drop you right back on the same page again, quick and easy. In addition to just selecting one item, you can select multiple items. To do that, just click on the check box that appears on the left of each row when you hover over it: Not all commands work on multiple items, and you’ll notice that the ribbon has greyed out commands that can’t be used. This multiple selection makes it easy to delete, check in and check out many files at once. Once you’ve added enough items, the view will start to page. This means that you’ll need to click on the next page arrow at the bottom of the view to see more of what’s in the list: You can control the number of items shown on each page from the Modify View page, which can be accessed from the Library tab (just to the right of the Documents tab we were looking at earlier): In addition to modifying the current view, the Library tab also allows you to switch views and use the datasheet. You can also create new columns, connect the lists to client applications – like Excel, Windows Explorer or SharePoint Workspaces – and customize the list’s forms, workflows or other settings. By looking through those commands, there’s obviously a lot more that can be done with SharePoint lists. But, with what I’ve shown above, you should be able to get around your lists and libraries with relative ease. Good luck!   | |
| | Mon, 04 Jan 2010 18:01:14 GMT | | In order to upgrade to SharePoint Foundation 2010 or SharePoint Server 2010, you must first be running Windows SharePoint Services 3.0 at SP2 or Microsoft Office SharePoint Server 2007 at SP2, respectively. For customers running prior versions of SharePoint, including Windows SharePoint Services 2.0 and SharePoint Portal Server 2003, this means that you must first upgrade to Windows SharePoint Services 3.0 SP2 or Microsoft Office SharePoint Server 2007 SP2 prior to upgrading to 2010 versions. Windows SharePoint Server 3.0 with SP2 is available as a free download, and trial versions of Microsoft Office SharePoint Server 2007 are available and supported for use in this upgrade/migration process: SP2 Slipstream Downloads and Trial Versions Windows SharePoint Services 3.0 (32-bit) with SP2 http://www.microsoft.com/downloads/details.aspx?FamilyId=EF93E453-75F1-45DF-8C6F-4565E8549C2A Windows SharePoint Services 3.0 (64-bit) with SP2 http://www.microsoft.com/downloads/details.aspx?familyid=9FB41E51-CB03-4B47-B89A-396786492CBA Microsoft Office SharePoint Server 2007 Trial Version (32-bit) with SP2 http://www.microsoft.com/downloads/details.aspx?FamilyId=2E6E5A9C-EBF6-4F7F-8467-F4DE6BD6B831 Microsoft Office SharePoint Server 2007 Trial Version (64-bit) with SP2 http://www.microsoft.com/downloads/details.aspx?familyid=3015FDE4-85F6-4CBC-812D-55701FBFB563 Please note that the trial product versions are licensed for 180 days of use from the date of installation. Upgrade Method This upgrade process should be done using the Database Migration approach documented in the following links: Windows SharePoint Services and Microsoft Office SharePoint Server 2007 Determine upgrade approach (Office SharePoint Server) http://technet.microsoft.com/en-us/library/cc263447.aspx Determine upgrade approach [Windows SharePoint Services] http://technet.microsoft.com/en-us/library/cc287821.aspx SharePoint Foundation 2010 and SharePoint Server 2010 (pre-release documentation) Determine upgrade approach (SharePoint Server 2010) http://technet.microsoft.com/en-us/library/cc263447(office.14).aspx Determine upgrade approach (SharePoint Foundation 2010) http://technet.microsoft.com/en-us/library/cc287821(office.14).aspx Note that this method is referred to as “Database attach upgrade” in pre-release documentation Please note that there are manual steps involved in this upgrade path in order to maintain some configuration information, as documented in the links above. Example Upgrade Sequence The upgrade documentation above should be referenced for full detail and information, but the following illustrates an example of an upgrade sequence for moving from Office SharePoint Server 2007 to SharePoint Server 2010. 1. Prepare Farms a. Set up a small, temporary farm running Office SharePoint Server 2007 b. Set up full SharePoint 2010 farm and verify that it is configured and running correctly 2. Upgrade content from 2003 to 2007 a. Detach the content databases from the 2003 farm and take the 2003 farm offline b. Attach the content databases to the 2007 farm and upgrade them c. Verify the content has upgraded and that the 2007 farm is working correctly 3. Upgrade content from 2003 to 2007 a. Detach the content databases from the 2007 farm b. Attach the content databases to the SharePoint Server 2010 farm and upgrade them in parallel c. Verify the content has upgraded to SharePoint 2010 and is working correctly 4. Start serving requests on the SharePoint Server 2010 farm Again, this is just an example for illustration: for full detail, including all steps and important considerations, please review the existing and pre-release documentation linked above. Additional Information and Notes Please note that SharePoint Server 2010 Beta cannot be upgraded to the final release version (RTM). Any use of these steps or guidelines with any pre-release version of SharePoint 2010 should be for testing/evaluation only. This upgrade path will necessarily mean a move from 32-bit OS architecture to 64-bit OS architecture. Windows SharePoint Services 2.0 and SharePoint Portal Server 2003 were supported only on 32-bit operating systems, as opposed to SharePoint Foundation 2010 and SharePoint Server 2010, which are supported only on 64-bit operating systems. The database platform selected for Microsoft Office SharePoint Server 2007 or Windows SharePoint Services 3.0 should be consistent with the planned platform for Microsoft SharePoint Server 2010 or Microsoft SharePoint Foundation 2010. For example, if SQL Server 2008 will serve as the database software for the Microsoft Office SharePoint Server 2007 or Windows SharePoint Services 3.0 trial versions you should maintain that version for Microsoft SharePoint Server 2010 or Microsoft SharePoint Foundation 2010 to avoid downgrade support limitations such as SQL Server 2008 to SQL Server 2005. For additional information on SQL Server 2008 downgrade rights see: SQL Server 2008 Licensing Frequently Asked Questions http://www.microsoft.com/sqlserver/2008/en/us/licensing-faq.aspx   | |
| | Thu, 03 Dec 2009 22:49:17 GMT | | There are a bunch of SharePoint features in Visual Studio 2010 Beta. You may have already heard about them from reading the blog Short Overview of SharePoint Features in Visual Studio 2010 or by other means. Today I want to introduce one of them, Business Data Connectivity (BDC) designer, which is available in the project template Business Data Connectivity Model. If BDC is new to you, here is a short description. BDC is one of two most important architectural components of Microsoft Business Connectivity Services (BCS) which enables users to read and write data from external systems—through Web and Windows Communication Foundation (WCF) services, databases, and Microsoft .NET Framework assemblies—from within Microsoft SharePoint 2010 and Microsoft Office 2010 applications. This MSDN webpage Business Data Connectivity (BDC) Service has a more descriptive version. Visual Studio 2010 helps a SharePoint developer to develop, debug and deploy .NET assemblies as external data sources to SharePoint. In the following paragraphs, I will walkthrough with you how to create your first SharePoint external list using Visual Studio 2010. In order to make this walkthrough work on your machine, you need to install SharePoint 2010 Public Beta* and Visual Studio 2010 Beta2#. *: Please read Setting Up the Development Environment for SharePoint Server before the installation. If you are using SharePoint Foundation 2010 you will need to create a Feature Event Receiver to enable the import of BDC models. How to create a Feature Event Receiver will be covered in a future blog post. #: Please make sure Microsoft SharePoint Development Tools component is selected when installing. It is chosen by default if you choose Full installation. Let’s start the journey. 1. Create a new BDC Model project. (Main menu: File -> New -> Project…). In the left column of the New Project dialog, you are able to find node 2010 under tree view Visual C# -> SharePoint. Similarly you can find same node under Visual Basic -> SharePoint. In the middle column of the dialog, you should be able to see Business Data Connectivity Model listed as one of the project templates. See the screenshot as follows. Here I am creating BDC Model project in Visual C#. You are able to do the same things in Visual Basic.
 2. After clicking [OK] button in the New Project dialog, the SharePoint Customization Wizard dialog will be displayed. In this dialog you can customize the local site you want to target and trust level for the SharePoint solution. Since a BDC model is deployed to a farm, a collection of one or more SharePoint servers and one or more SQL servers, only “Deploy as a farm solution” option is enabled. Here is the screenshot of the dialog.
 3. When you click [Finish] button in the SharePoint Customization Wizard dialog, the BDC Model project will be created. There are four main UI panes that help you manage the BDC model visually. They are the BDC Designer Surface, BDC Method Details Pane, BDC Explorer, and Properties Browser. a. The BDC Designer Surface allows editing entities, identifiers, methods, and associations between entities. And you can do that either from toolbox or context menus. b. The BDC Method Details pane, where its name is already self-explanatory, lets you edit everything related to a method, from the method itself, its parameters to its parameters’ type descriptors, from method instances to filter descriptors, etc. c. BDC Explorer lists and organizes metadata objects in the BDC model in a tree view. It lets you to browse and search metadata objects in a graphical way and allows you to copy/cut/paste type descriptors between different parameters or type descriptors. d. Properties Browser gives you a familiar way of editing components and attributes of BDC Models. We use it to supplement the functions offered by the other three panes and list all the attributes for a particular metadata object for editing. Here is a typical layout of a BDC Model project as described above.  4. If you notice, there is already a default entity generated for you when the project is created. This default entity also has an identifier and two methods ReadItem and ReadList created. One is a Finder method that is to return a collection of data. The other is a Specific Finder method that is to return a specific entry based on the input parameter(s). 5. Now let’s deploy to the SharePoint server. You can either click the deploy menu item in main menu (Build -> Deploy Solution), or in the context menu of the project or the solution. In the output you will see several activities happening including packaging, solution retraction/addition, deployment, etc. 6. Let’s open the target site and see if our model has been successfully deployed. Open the target site with any browser supported by SharePoint, like Internet Explorer 8. Create an external list based on the model we just deployed. Here are the steps to create an external list in case you are new to it. a. In main menu: Click Site Actions -> More Options… b. On the Create dialog, select External List, click [Create] button in the right column c. On the next external list create form, type a name for the list. Check ‘Yes’ to display the list on the Quick Launch for easy access. Then click to select the model we just deployed in the External Content Type Picker form. Click [Create] on the external list create form. Now the Hello World list is displayed.  In the main menu under List Tools -> Items, you may find only “View Item” option is enabled. Guess why? Yes, it is because the default entity only has a Finder method to view the entire list and a Specific Finder method to view a specific item. In our next blog in this series, we will show you how to add more functions like Add, Update and Delete to the list as well as pull data from external data sources.   | |
| | Wed, 02 Dec 2009 17:40:29 GMT | | Hello. This is Greg Chan, a Program Manager on the SharePoint team. I am excited to kick-off a new blog series that will cover a wide spectrum of topics related to the new List View in SharePoint 2010. What is a List View again? Put simply, a List View is a view for displaying SharePoint list data. The concept of List View has been around since SharePoint v2. While there are other technologies being used for visualizing list data in different scenarios (e.g. Content Query Web Part), List View remains the default component for displaying list data in SharePoint 2010. List Views can be spotted everywhere in SharePoint. They are used to display information such as your announcements, tasks and calendar schedules. Examples of List Views  What’s the big change with List Views in 2010? In 2010, we are introducing a component called the XSLT List View Web Part (XLV) that serves as the new default technology for displaying list data. This honor used to belong to the List View Web Part (LVWP), which was the default from SharePoint v2 to 2007. (Note: LVWPs are still supported in SharePoint 2010, but just not as widely used as the new XLV.) The new XLV brings a ton of improvements to the SharePoint platform. This blog series aim to cover most of these areas. What are the key benefits to the new List Views (XLV)? Replacing the default technology for List Views required fundamental changes to the SharePoint platform. So why did we do it? Let me call out the high level benefits of the XLV compared against LVWP from 2007: - More Designer Friendly
- Rich customization support through SharePoint Designer (SPD) while preserving browser UI experience
- In SharePoint 2007, two of the main web parts for displaying list data were LVWP and the DataFormWebPart (DFWP). Both had their own advantages and disadvantages. The LVWPs were fully integrated into the browser with in-browser editing support, but lacked rich customization experience as they were not fully customizable inside SharePoint Designer 2007. The DFWPs had a much richer customization story as they were fully editable inside SharePoint Designer, but lacked the in-browser editing capabilities that LVWPs had. With the new XLV, SharePoint combined the best aspects of these two technologies and now allow you to richly customize your XLVs in SPD and also provide the in-browser editing experience. It is important to note that XLV will preserve both SPD customizations and in-browser modifications, and not blow any of that away.
- Extensible and shareable custom styles
- A custom view style that you designed in SPD can now be easily shared with other designers across your site collection.
- Popular designer features such as Conditional Formatting.
- Similar to the Conditional Formatting feature in Excel, designer can now set conditions on when to format items in a list view (e.g. KPIs.)
- More Developer Friendly
- Uses standards-based XSLT instead of CAML
- Easily extensible
- Developers no longer have to include large blobs of CAML to define views in their List definitions. Take advantage of shared XSLT used to define out-of-box views and only define custom XSL for the sections you want.
- More End-User Friendly
- Enhanced user experience including Ribbon UI and new multi-selection model.
- Bulk editing and deletion are now supported.
- Inline editing support
- Edit fields in your list view without being directed to another page or dialog.
- More Robust Ways to Access Data
- Display enterprise data through Business Connectivity Services (BCS)
- End users can now interact with business data similar to how they interact with regular SharePoint list data.
- Cross-web list views displaying data from another web
- Display list data joined from different lists
What’s coming up in the blog series? Many people from different teams in the SharePoint family contributed to the new List View in SharePoint 2010. In this blog series, you’ll get a chance to hear from some of those area experts covering key List View topics. Here are the topics that will be covered: - Introduction to the new List View (you are reading it! J)
- List View – New User Experience
- List View Architecture
- List View Customization
- External Lists
- Conditional Formatting
- How to Share Your Custom List View Styles
- How to Create Custom Fields for the new List View
- Related Item View
- How to Create Views Displaying Cross-Web and Joined List Data
The order in which these topics will be published may change. We may also add or modify topics on this list. If there is any areas regarding List Views that you’d like to learn about and isn’t on this list, feel free to suggest them here. Thanks for reading. I hope everyone is excited about the new List Views. Stayed tuned for more!   | |
|