Archive for October, 2008

PDC08- Silverlight

Wow why arent i at PDC, awesome lineup of over 10 sessions to do with Silverlight:

BB36 FAST: Building Search-Driven Portals with Microsoft Office SharePoint Server 2007 and Microsoft Silverlight
Stein Danielsen, Jan Helge Sageflåt

The combination of FAST ESP and Microsoft Office SharePoint Server (MOSS) 2007 allows for the development of powerful search-driven portals. Learn about the architecture and functionality of FAST ESP, and see how FAST ESP can complement and extend existing search features in MOSS 2007. Watch a demonstration that shows how to create search user interfaces by configuring and extending the FAST ESP Search Web Parts, including the use of Silverlight to deliver unique search experiences.

and also:
PC11 Microsoft Silverlight Futures: Building Business Focused Applications
Jamie Cool

What if you could develop your solutions with the ease pioneered by Microsoft Office Access, deploy them like an Internet application, and take advantage of the power of Microsoft .NET? Learn about an exciting new technology that is all about making business applications for RIA (Rich Internet Applications) much easier to build. In this session, hear how we’ve made n-tier application development as simple as traditional 2-tier, provided application level solutions to developers, and how we’re doing all of this with the same .NET platform and tools on both the client and server.

More info of the current sessions here: https://sessions.microsoftpdc.com/public/timeline.aspx

Office Live

After months of speculation the Office team have finally released their live version of their suite of products, currently the web applications have ajax and rich control controls, but with also the ability to have silverlight as well. Which is the exciting part about enhancing the user to be more inline with the current office applications normally found on the desktop.

Azure & Sharepoint

Today, in Day 1 of the PDC Keynote, Ray Ozzie unveiled the Azure Services Platform. Azure makes it possible for developers to create applications and services that run in the cloud or to create web, mobile, or hybrid applications that extend the value of on-premises applications. To learn more about Azure, go to http://www.azure.com .

In the Azure Services Platform, a number of developer services were mentioned including Microsoft SQL Services, Microsoft Dynamics CRM Services & Microsoft SharePoint Services. Keep in mind that this not the same as Windows SharePoint Services 3.0 which shipped in Windows Server. Microsoft SharePoint Services is a developer service that will be available as part of Azure in the future.

The keynote also emphasized Microsoft’s investment in cloud applications that developers can extend and customize. Specifically, David Thompson (VP of Online Services) talked about Microsoft SharePoint Online and demonstrated how developers can write code against SharePoint Online web services as well as make customizations with SharePoint Designer. For example, using the Data View Web Part to surface data from an external source – this could be a web service living in Windows Azure. In fact, later in the week at PDC, there’s a breakout session that walks through the different ways SharePoint Online can be customized.

Here are answers to a few frequently asked questions:

What is Microsoft SharePoint Services in Azure?

In the future, developers will have access to SharePoint functionality in the Azure Services Platform (“Microsoft SharePoint Services”). With the flexibility to use familiar developer tools like Visual Studio, developers will be able to rapidly build applications that utilize SharePoint capabilities as building blocks for their own applications. Developers can expect a breadth of SharePoint capabilities across the spectrum of on-premises, Online and the Azure Services Platform.

Where can I find more information about Microsoft SharePoint Services in Azure?

We have not announced any further detail or release dates. We will release more information about this in the future.

How do developers get ready for Microsoft SharePoint Services?

Keep developing on SharePoint technology (MOSS, WSS, SharePoint Online)! You can learn more about SharePoint Development here.

New .NET Logo

Microsoft have released the new .NET logo to the masses, take a look what you think?

Windows Azure Released

Windows Azure Logo
Micrsoft have just released details to their next OS, Windows Azure.
Windows Azure allows developers to quickly develop and managed web application services hosted directly with Microsoft’s Datacenters.
Windows Azure builds on the current technology foundations such as ASP.NET, IIS and VS2008, so getting up to speed is quick and developers can immediately user their existing skillset.
Windows Azure is Standards based and gives developers SOAP, REST and XML protocols available.
Developers have control of their environment and can specify their own performance standards while paying only for the resources needed for their applications. New Fabric Controller technology in Windows Azure provides developers with the ability to upgrade applications without interruption. Windows Azure includes tracing, logging, and monitoring functionality, giving insight into resource usage and performance.
Cheers
Steve

Modify Select list width UI Styles in Sharepoint

Sharepoint typically with its list styles default have a set width placed on them, now thats all fine and good but clients will also want to increase and customise their form lists to have somthing a little better, especially when the select lists are quite long.
See here for example:

As you can see the select lists arent wide enough to support the entries. Utilising the trust Sharepoint Designer, open your Site and  do the following:
1. On the File menu, point to New, and then click CSS.

2. Add the following code to the new CSS file:

.select-container div { width:300px; height:150px; }

3. On the File menu, click Save and then use the Save dialog box to save the file as shared_styles.css in the root directory of your site. Now the tricky part comes in, what we know have to do is create a generic function which sweeps the rendered page for any<select> tags and clears the attributes for height and width for them, for this case we’ll name this javascript function  removeLocalStyleAttributes(). So on Sharepoint Designer goto:
1. On the File menu, click New, click JavaScript, and then click OK.

2. Add the following code to the new JavaScript file:

function removeLocalStyleAttributes() {

var coll = document.body.getElementsByTagName(”div”);

for(x=0;x < coll.length; x++) {

if(coll[x].className == “select-container”) {

var collDivControls = coll[x].getElementsByTagName(”DIV”);

for(y=0;y < collDivControls.length; y++) {

collDivControls[y].style.width = null;

collDivControls[y].style.height = null;

}

}

}

}

What this function is doing is grabbing all instances of the <div> tag and getting a collection.

Once we know the size of the collection, we’ll loop through the <div>’s looking for a className called “Select-container”, if found then get the control width and height and specify them to be null.

On the File menu, click save and then save the file as share_functions.js in the root directoy of your site.
Now we could do this site wide for you page and apply the code to the .master of the site as follows:

Look for the <asp:content contentplaceholderid=”PlaceHolderAdditionalPageHead” runat=”server”></asp:content> In there paste the following code that links to the previous 2 created files:

<asp:Content contentplaceholderid=”PlaceHolderAdditionalPageHead” runat=”server”>
<link rel=”stylesheet” type=”text/css” href=”../../shared_styles.css” mce_href=”../../shared_styles.css”>
<script src=”../../shared_functions.js” mce_src=”../../shared_functions.js” type=”text/javascript”></script>
<script type=”text/javascript”> _spBodyOnLoadFunctionNames.push(”removeLocalStyleAttributes”); </script>
</asp:Content>

Lastly in the DataformWebPart where your select box was orginally, wrap this with an outer div as follows
<div class=”select-container”>
<SharePoint:FormField runat=”server” id=”ff5{$Pos}” ControlMode=”New” FieldName=”Projects” __designer:bind=”{ddwrt:DataBind(’i',concat(’ff5′,$Pos), ‘Value’,'ValueChanged’,'ID’,ddwrt:EscapeDelims(string(@ID)),’@Projects’)}” /> </div>
Save the file.

What the content place holder is now doing is importing the new css and javascript functions, then pushing or executing the javascript function that removes the height so that the css style will be inherited to it.

So the rendered page will remove the attributes, then any select that has contained with it the class “select-container” then it will apply the .select-container div { width:300px; height:150px; } And thats it, a generic css and javascript webpart to sweep the rendered page, set the values to null and let good old CSS apply its styles to the form object.



Cheers Steve

Creating Webparts and applying to Content Pages

By default, Sharepoint Contains typically 2 zones when you are in Edit Mode (Under Site Actions-Edit Mode).

A Left and Right Zone

Thats all fine and good but customising the locations of those areas is a little more difficult, but not that more difficult. You can assign as many webpart zones on your content page as you like, start by firing up Sharepoint Designer and opening the URL of your sharepoint site you wish to add another webpart location.

Place your cursor in the location you wish to insert your new webpart zone and goto:

New Webpart Zone

This will insert a new web part zone onto your content page.

Once inserted double click on the newly created web zone (Will be titled ZONE 1), and give it a new name eg BOTTOM ZONE, or somthing similar.

Zone Properties

Save your page and now you have a newly created webpart zone to place your content into.

Steve

Office Devcon 08 Sydney

Office DevCon is an annual community-driven conference that allows Microsoft Office developers and power users to come together in one location to hear expert speakers present on a wide range of Office-related topics.

Over 2 days, you will hear presentations on advanced core Office technologies for Office 2003 and 2007, including Word, Access, Excel, SharePoint, PowerPoint, Groove, InfoPath, OneNote and Outlook. We may also be able to provide some previews of Office 14, the next version.

The inaugural Australian event was held in November 2007, and was an unprecedented success - check out last year’s programme at http://www.block.net.au/devcon/programme.htm. The 2008 event has already generated an extraordinary level of interest from many local and international speakers and organisations, and promises to ‘raise the bar’ even higher.

Stargate Global Consulting Sharepoint Practice Manager Ed Richard will there in full swing showing users  Word Building Blocks and Content Controls, Context driven action panes and much much more, for a full view of the sessions and times head on over to the devcon website at Office Devcon 2008

Silverlight 2 Released to the masses

Finally after all the testing and retesting, Silverlight 2 has got out of the gate and is now final!, this is an exciting time with alot of focus now on implementing this new technology.

Tim Heur has given us the rundown on his blog about the final build of Silverlight, roll on Silverlight Mobile!.

Check his blog out here: http://timheuer.com/blog/

With better controls especially calendar control, the Silverlight team have really got on a winner here.

Cant wait to show this off the way its really designed to do and that is in Business Apps especially in Sharepoint.

Also Silverlight can call secure (SSL) services from a non-secure hosted Silverlight XAP?

The service endpoint must specify a policy (via clientaccesspolicy.xml at the root of the endpoint domain) to enable this, but once done, your XAP hosted in a non-SSL HTTP instance can call an HTTPS-based service.  Here’s an example of what that policy might look like on a secure SOAP service at https://foo.com/services/foo.svc:

Exciting times thanks Microsoft!

Steve