Sunteți pe pagina 1din 8

Interactive use of the Calendar Component in Xcelsius

Applies to
SAP BusinessObjects Xcelsius 2008. For more information, visit the Business Objects homepage.

Summary
This article explains about using the Calendar component in Xcelsius in an interactive way and thereby adds additional functionality to your dashboards. Author: Anju Saseendran

Company: Applexus Technologies Private Ltd. Created on: 31 March 2011

Author Bio
Anju Saseendran works as SAP BOBJ Technology Consultant with Applexus Technologies Private Ltd. She has over three years of experience in SAP BusinessObjects-Web Intelligence, Desktop Intelligence, Universe Designer, Xcelsius and Crystal Reports.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 1

Interactive use of the Calendar Component in Xcelsius

Table of Contents
Introduction ......................................................................................................................................................... 3 Calendar Date Formatting in Xcelsius ................................................................................................................ 3 Interactive use of the Calendar Component ....................................................................................................... 3 Step 1: ............................................................................................................................................................. 3 Step 2: ............................................................................................................................................................. 4 Step 3: ............................................................................................................................................................. 4 Step 4: ............................................................................................................................................................. 4 Step 5: ............................................................................................................................................................. 5 Step 6: ............................................................................................................................................................. 6 Conclusion .......................................................................................................................................................... 6 Related Content .................................................................................................................................................. 7 Disclaimer and Liability Notice ............................................................................................................................ 8

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 2

Interactive use of the Calendar Component in Xcelsius

Introduction
The Calendar component in Xcelsius is a selector that allows date selection to be incorporated in to the models. All that is available with the properties tab available with the component is to select an insertion type either Day or Date and map the result to a destination cell. No option is available to associate the component to a particular source data. This whitepaper explains the way the calendar component can be mapped to source data with the help of other available UI components.

Calendar Date Formatting in Xcelsius


When working with dates within a connected Xcelsius dashboard, there are potential issues related to formatting. In most cases, a specific format is required when using Excel functions with the date value. This is because a date field does not store one value; it stores multiple values (month, year, day, minute, second). All of these are compressed in one database column. Using the calendar component, it is possible to insert and visualize a user defined date. Though able to set the cell format to modify the display of that date, Excel actually stores it using the 1900 date system. This simply means that the date Jan 1, 1900 has a true numeric value of 1, and Jan 1, 2007 has the true numeric value of 39083. This could be solved as explained in Step 1 and Step 2.

Interactive use of the Calendar Component


Here are the steps: Step 1: Map the destination of the calendar component to a cell in the worksheet.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 3

Interactive use of the Calendar Component in Xcelsius

Step 2: Use the day, month, and year formulas to extract the individual values and string them together in the desired format. =YEAR (N2) &"-"&MONTH (N2) &"-"&DAY (N2)

Step 3: Drag the UI component Combo Box to the canvas. The source data along with the date field could be associated with the calendar component using the additional UI component -Combo Box.

Step 4: Associate the source data for the calendar component as the source data for Combo Box.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 4

Interactive use of the Calendar Component in Xcelsius

The additional column field Column1 highlighted with arrow becomes the label for Combo Box. The formula for the field is given as =If (J2=$O$2, 1, 0) Where J column has sale_date field and O2 is the destination field of the calendar component.

Step 5: Map the destination data of combo box to the appropriate cells in the work sheet.

The highlighted cells in yellow color are the destination data of Combo Box mapped.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 5

Interactive use of the Calendar Component in Xcelsius

Step 6: Make 1 as the default selected item for Combo Box (where Label 3 has value 1).

Conclusion
The destination data of Combo Box could now be showcased as the destination data of calendar component by associating this data to other UI components.
Note: The UI Component Combo box has to be hidden so as to make the user feel that the calendar component itself offers all these interactive features.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 6

Interactive use of the Calendar Component in Xcelsius

Related Content
How to Design and Deploy High Performing Xcelsius Dashboards Calendar Component in Xcelsius 2008 SAP for BusinessObjects Experts For more information, visit the Business Objects homepage

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 7

Interactive use of the Calendar Component in Xcelsius

Disclaimer and Liability Notice


This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 8

S-ar putea să vă placă și