Generating web services for Xcelsius using Flynet Web Service Generator

In this post David Lai, a BI Consultant and the author of davidlai101.com explains how to generate Web Services using Flynet Web Service Generator and use the Web Services to build live Xcelsius Dashboards.

For those who are using Xcelsius but without Business Objects Enterprise, you will either have to grab data from the database using XML mapping or Webservices.  XML mapping not very flexible in terms of generating complicated queries so most people will go to the webservice route.  The only draw back with generating your own webservices is the time it takes to code or cost to hire a developer to build the web services.

One way to generate webservices quickly is to use the Flynet Web Service Generator.

Its quite easy to install and setup as long as you follow the instructions which are included with the installation. Flynet works simplest with IIS but for those using apache like me, you will need to follow the Apache Web Server instructions which is included in the Flynet help file.

Generating a Web Service
First you will want to generate your webservice and you can follow the interactive walk-through found here

The tutorial shows how to create a web service from simple queries, HOWEVER if you want to create queries that involve Aggregates, Case Statements, and Procedures, the code will be a little bit more complicated. The manual and tutorial doesn’t really teach you how to do these things so the first thing you might think is that it is not possible and just stop using it.

Here is how you create queries with Aggregates, Case Statements, and Procedures

Aggregate
If you want to perform a count query, you will need to enclose the row counted and use the as ~row~ otherwise flynet will throw and error

Case Statements
Case Statements are similar to the Count statements where the case section is enclosed in the brackets.

Procedures
Procedures need to have the text EXEC at the start of the Query SQL statement followed by the name of the Stored procedure.

Please note that you must include the for the output parameters

Connect the webservice to the Xcelsius Dashboard
Finally you can connect the webservice to your Xcelsius Dashboard but before you do so you should be careful of values that get returned that are of type DATE. Apparently a T gets inserted into the date row and Excel will think that the field is a text field, thus any date functions on the date cells will screw up.

To fix this, in Excel just use the DATEVALUE(), LEFT() and RIGHT() functions to strip out the T into the new cells

To try out Flynet Viewer go to http://www.flynet.co.uk

Barack Obama’s journey of Life on Google Maps

What a night it was for America. Barack Obama is the President Elect. Coincidentally I was in Chicago Downtown on the night of the results. Although I had no tickets to attend the Winning speech from Obama, I can listen to the roar of the crowd coming out of Grant Park. The downtown was lit up with USA on all the Buildings. It was a spectacular sight to watch. Barack Obama has come a long way in his Journey to the White House. Here is a google maps version of the same.

The data is coming from MIBAZAAR (www.mibazaar.com/barackobama.xml). Thanks to Virender Ajmani for creating such a wonderful Gadget.

Click on Autoplay or the Left Right arrows to navigate.

Interactive Map Dashboards: Where do I Vote?

As the Day Progresses, the heartbeat of millions of Americans is going up. Everyone is keeping their fingers crossed about who is going to be the Next American President. Millions already voted and some are waiting in lines as I write this post. According to CNN 5% of American’s are still Undecided until November 3rd. If you are among those who is unable to find a place to vote or you are thinking “OK, I’ve decided now and I want to Vote, But where do I go?” Don’t worry, MSN and Google have interactive maps to find your voting location and more.

MSN Your Vote 2008: Map Room – Polling Place Info:

Click on a State and select your County.

Google Maps 2008 US Voter Info:

Find your voting location and more. Enter the home address where you are registered to vote.


Live Dashboards: Real Time Election Results and Poll Closing times

Today is the day. McCain and Obama are fighting for votes across the country. Prediction is that Voters are going to storm the Polling booths. I hope everything goes well and a deserving candidate emerges as a winner. Since many of you like me want to be up to the minute with the election results, I’ve consolidated some great looking Dashboards and Widgets which will give you information about Results in real time and also the Poll closing times in different states. Keep visiting back, I will updating this as in I find an interesting widget or a dashboard. Click on the Images for the Interactive versions.

CBS News Election Results:

The New York Times Election Results Tracker:

CNN Live Results:

CNN Last poll closing times:

Google Election Results Tracker: It’s Interactive


Election 2008 Primary Results Tracker: Live Dashboard using Google Maps

Google always surprised me with its Gadgets. Here is a new one which catches my attention. I call it Google Live Dashboard to keep a track of Election 2008 Primaries.

Keep up-to-date on the 2008 election with Google Maps

Use the Primary Results Map to view outcomes of each state primary. See results down to the county level by zooming in on a particular state.