Changing of TOLAPGrid.OnShowMeasure event since 1.15

Article Details
URL: http://support.radar-soft.net/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=40
Article ID: 40
Created On: 13 Sep 2007 04:17 PM

Answer

Working with custom measure display modes has been simplified. So all the TOLAPGrid.OnShowMeasure event handlers needs to be changed according to the following recommendations:

  1. Instead of the deleted CurrentCell property there are three new properties here: the CurrentAddress property describing the multidimensional cell address, RowSibling and ColumnSibling properties representing the lists of "neighbors" of the current Grid cell by row and by column accordingly.
  2. Instead of deleted Data property, there are two new properties to be used: the OriginalData property (read only, representing the original cell value) and the ReturnData property (representing the calculated measure mode value).
  3. The FormattedValue property renamed to ReturnValue.

The ReturnValue and ReturnData properties, representing the formatted and unformatted values of a calculated measure mode, need to be set within TOLAPGrid.OnShowMeasure event handler.