Xcelsius: Using the Push Button for data input

Posted by Xavier Hacking

Xcelsius is a great tool to build interactive what-if scenarios based on MS Excel models. We recently got a request to build such a dashboard and one of the user interface requirements was that the user should be able to change a value by clicking something like a +/- button. Clicking the plus had to increase the value with 1, and clicking the min had to decrease it with 1.

Luckily, Xcelsius provides us the Spinner component. This would have been a good and easy solution, if another requirement wouldn’t have been that the dashboard had to be used on a (multi)touch screen. Touch means big buttons for user input and as you can see on the right, the Spinner component is way too detailed. So we needed something else to do the job.

To solve this we used the new Push Button components. The Push Button simply does what its name says and pushes a value from a source cell to a destination cell. To solve our little problem we used two of these Push Buttons and some basic MS Excel logic.

[kml_flashembed publishmethod=”static” fversion=”8.0.0″ movie=”http://hackingsap.com/blog/wp-content/uploads/plusminhackingsapcom.swf” width=”500″ targetclass=”flashmovie”]

[/kml_flashembed]

In the spreadsheet two formulas and a cell with a start value for the gauge (C2) are created. The formulas add or deduct 1 from C2 (C2+1 and C2-1). After this the Push Buttons have to be bound to these cells. The plus button now gets B2 as Source Data and C3 as destination. After a click on this plus button the value of C2 will increase to 26.

You can download the source file here (via Pay with a Tweet). If the file downloads as a ZIP-file, just rename the .zip into .xlf.

HackingSAP.com - May 8, 2010 | DIY, Knowledge sharing, SAP BusinessObjects Dashboards, Xcelsius
Tagged | , , , , , ,

4 comments

  1. Timo Elliott
    May 9, 2010

    Nice example, thanks!

    Reply
  2. Suyog
    December 28, 2012

    I used a VALUE button instead of the gauge.What
    do i need to do if i have to set the max value of value button to 12 and how can we change the text in value button from “Jan” to “Feb” on clicking the increment button of +1 and “Feb”to “Jan” on on clicking the decrement button of -1

    Reply
  3. Suyog
    December 31, 2012

    You are awesome:)

    Reply

2 Trackbacks

Leave a Reply