Building BI Application’s with SharePoint 2010

Posted by Troy on July 1, 2010 under Business Intelligence, IT, Microsoft, SharePoint, Web | Be the First to Comment

 

SharePoint 2010 is an excellent Platform for creating enterprise applications that leverage your current Business Intelligence infrastructure and operational systems.  Of course your not going to build mission critical applications like POS or Supply Chain Ordering system but what about tracking weekly sales and expenses or building a pricing model that requires data from multiple data sources.    Using a combination of SharePoint 2010 and the Office 2010 products it is possible to create robust enterprise applications with a reasonable amount of effort.

Business Connectivity Services (BCS) in SharePoint 2010 and SharePoint Designer 2010 is what makes these applications possible.  Sure you could build your application using native SharePoint list but this approach is limited and does not allow you to leverage existing systems like your corporate data warehouse.    Below is a simple diagram which show how BCS allows business user’s to access external data:

image

The best way to learn about how these tools work is to work through a practical example.    Over the next few blog posts I will walk through how to create a simple sales forecasting application.   I am assuming that you have access to a desktop machine or server with at least the following software:

  • SQL Server Express 2008 R2
    • Adventure Works DW R2
  • SharePoint 2010 Foundation Server
  • SharePoint 2010 Designer

In this scenario the business users want to create a weekly forecasting model which will forecast Internet Sales by Territory by Product Category.  Execute the following to create a forecasting table in the Adventure Works DW R2 database:

select fcst.* into dbo.WeeklySalesForecast from ( select dt.CalendarYear,'Week ' + convert(nvarchar(2),dt.WeekNumberOfYear) WeekNumber , dt.MonthNumberOfYear, dt.EnglishMonthName, ter.SalesTerritoryGroup, ter.SalesTerritoryRegion, cat.EnglishProductCategoryName Category, sum(fct.OrderQuantity) LastYearQuantity, sum(fct.SalesAmount) LastYearAmount, null ForecastQuantity, null ForecastAmount from dbo.FactInternetSales fct inner join dbo.DimDate dt on fct.OrderDateKey = dt.DateKey inner join dbo.DimProduct prd on fct.ProductKey = prd.ProductKey inner join dbo.DimSalesTerritory ter on fct.SalesTerritoryKey = ter.SalesTerritoryKey inner join dbo.DimProductSubcategory sub on prd.ProductSubcategoryKey = sub.ProductSubcategoryKey inner join dbo.DimProductCategory cat on sub.ProductCategoryKey = cat.ProductCategoryKey where dt.CalendarYear = 2008 group by dt.CalendarYear,dt.WeekNumberOfYear, dt.MonthNumberOfYear, dt.EnglishMonthName, ter.SalesTerritoryGroup, ter.SalesTerritoryRegion, cat.EnglishProductCategoryName) fcst

This will create a table that can be used for building the BCS.   In this post we are going to simply create a SharePoint site using SharePoint Designer to host our SharePoint application using SharePoint Designer 2010.   Open SharePoint Designer 2010 and open the Main Site.  In my case my main site is on my laptop and can be accessed at http://localhost.  From the Site Actions menu select “New Site”:

image

 

We are now going to create a new Site called Ops Forecast (http://localhost/opsforecast) use the Team Site template:

  • Title: Ops Forecast
  • Url Name:  opsforecast

image

Now click Create and the site will be created.  In the next post we will build 2 stored procedures and create an External Content Type which will be used as a list to view the forecast data in SharePoint.

 

Troy

Error Installing the Blackberry Plug-in for Eclipse

Posted by Troy on July 13, 2009 under BlackBerry, IT, Mobile, Web | Read the First Comment

 

If you try installing the BlackBerry JDE Plug-in for Eclipse using the BlackBerry update site you will probably receive the following error:

An error occurred while collecting items to be installed Error closing the output stream for net.rim.EclipseJDE/org.eclipse.update.feature/1.0.0.67 on repository file:/C:/eclipse-SDK-3.4.1-win32/eclipse/. Error unzipping C:\DOCUME~1\scottt\LOCALS~1\Temp\net.rim.EclipseJDE_1.0.0.674162146521096327961.jar: Invalid zip file format Problems ...

 

There is a post on the BlackBerry support forum which says that the issue is related to their update site and that you need to download the plug-in:

http://na.blackberry.com/eng/developers/javaappdev/javaeclipseplug.jsp

It is also important to make sure that you have a valid version of Eclipse.  You need Ganymede 3.4 or 3.4.1.  You can download it here.  

I didn’t have much luck with the Full Installer.  I downloaded one of the component packs instead and manually added the packages to Eclipse.  When I ran the full installer the video display on my computer froze.

image

Go to Windows/Preferences once you have copied the correct files to the features and plugins folders in Eclipse.

Troy

Installing Google App Engine SDK on Windows

Posted by Troy on April 12, 2008 under Google, IT, Microsoft | Read the First Comment

Installing the Google App Engine SDK for Windows is fairly straightforward.  You can download the SDK here.   Before installing it on Windows make sure you have python 2.5 installed:

http://www.activestate.com/solutions/python/

It is a free download from ActiveState.  The Google App Engine SDK install will fail if python is not installed first.

image

By default the installer will install python in C:\Python2.5\ .  Once the install is complete double click on the Windows Installer application for the SDK (GoogleAppEngine.msi).

image

By default  it installs the SDK in :

C:\Program Files\Google\google_appengine\

But I prefer to have it installed at:

C:\google_appengine

image

After you set the directory for the SDK the installer should complete.  Now you can go to the command line and go to the google_appengine directory.

image

The SDK comes with a simple application called guestbook.  To see if your installation succeeded type the following from the google_appengine directory:

> dev_appserver demos/guestbook

You will then be prompted to check for updates on startup.  Respond “n” for the test.   If you have a firewall like Windows OneCare you may be prompted to allow python.exe to access the Internet.  Click “Allow this program”.

image

You can now access the guestbook application by going to your browser and entering:

http://localhost:8080

image

Type something in the text box and click the button to try out the guest book application.

Troy

Using Subversion (SVN) with Eclipse

Posted by Troy on April 5, 2008 under IT | Be the First to Comment

Usually I use CVS for version control but in the last few months I have started using SVN.   In windows most user’s use SVN Tortoise because it works well with OS but I prefer to have it integrated with my IDE.    Below is a link to an IBM article which explains in detail how to setup SVN:

http://www-128.ibm.com/developerworks/opensource/library/os-ecl-subversion/

Here is a more recent update link for SVN:

http://subclipse.tigris.org/update_1.2.x

Troy

Apple Releases Safari for Windows

Posted by Troy on March 21, 2008 under IT | Be the First to Comment

Apple released Safari 3.1 for Windows this week and also distributed via an i-Tunes update.  You can download it here:

http://www.apple.com/safari/download/

Here is a shot of Safari installed on Windows XP:

SafariBrowser

The install was very straight forward.  The browser doesn’t have a home button but you can just use the following shortcut:

CTRL + SHIFT + H

Troy