Sie sind auf Seite 1von 4

https://docs.oracle.com/cd/E12032_01/doc/epm.

921/html_hf
m_admin_webhelp/frameset.htm?/cd/E12032_01/doc/epm.92
1/html_hfm_admin_webhelp/AdminHelp-10-02.html

Items Supported in SCalc Calculations


You can use the following types of items in SCalc calculations:

References to dimension members. The following example references the Account


dimension members Purchases and OtherCosts:
R6=SCalc(((A#Purchases)-(A#OtherCosts))*100)
Cell references, using the syntax Cell(rowIndex,columnIndex). The following
example refers to the cell in the fourth row of the second column in the form:
R1=SCalc(Cell(4,2))
Row references, using the syntax Row(rowIndex). The following example divides
row 4 by row 2:
R3=SCalc(Row(4)/Row(2))

Note:

For rows or columns that contain member lists, the calculation occurs on the
total for the members of the list.

Column references, using


the syntax
Col(columnIndex). The
following example adds
column 1 and column 3:
C4=SCalc(Col(1)+Col(3))
Nested formulas, using parentheses to nest.
Forward references to cells with SCalc calculations

Note: SCalc calculations are not performed until the data is saved and the calculated results are
not displayed on the form until the form is refreshed.

An SCalc row or column can reference another SCalc row or column in its calculation, however
you cannot forward reference in a SCalc row or column for another Scalc row or column. For
example, the following SCalc forward reference is allowed:
C1=A#Sales
C2=A#COGS
C3=SCalc(Col(1)-Col(2))
C4=SCalc(Col(3)/Col(1)*100)

String
Use this option to specify a text string in a column, row, or cell. Use this option within a row or
column definition or within a cell override definition. The String option is considered a serverside calculation, therefore it can be used anywhere that SCalc is used.
Example
C4=String("Show this read-only string")

Scale
Use this option to specify the scale for uncalculated columns, rows, or cells.
Syntax
Scale:n

Replace n with a value from -12 to 12.


Example
C4=A#Inventory,Scale:2

Override
Use this option to specify different POV dimension members, formula calculations, or text for
one or more consecutive columns or rows or to change a style. Use this option within a row or
column definition.

Note: To override cells that are not consecutive, you can enter the override in the Other field of the
form builder. You can enter multiple overrides by separating each override by a comma. The
following example overrides three individual cells:

Override(1,1,string("455")),Override(3,3,string("23")),
Override(5,5,string("2234"))

You cannot use member lists with the Override option. You can apply multiple overrides to a
cell, with the last value being used when there is a conflict. In most cases, you can also mix the
overrides on a cell. For example, if an override on a row specifies a value for NumDecimals
while an override on a column specifies a value for Scale, there is no conflict except if the same
dimension is used. If you use a leading semicolon, you can mix values for Style.
You can also mix overrides where they intersect by including a semicolon after the Override
keyword. Note that without the semicolon, the style defined for the row is used because row
values supersede column values when they conflict in the form. To mix the overrides from the
row and column definitions, you must include the semicolon on the row keyword.
Syntax
Override(StartCell,EndCell,Override)

Syntax for Override Option


Parameter

Description

An integer value representing the starting point of the override. If the override is defined for
a row, this parameter indicates the starting column where the override is applied. In the
StartCellfollowing example, the override starts with column 2:
R2=A#Sales, Override(2,3,A#SalesTP)
EndCell

An integer value representing the ending point of the override. In the example above, the
override ends with column 3.
A POV. For example, to override with a different account, you specify A#newacct. To
override with a different scenario and account, you specify A#newacct.S#newscenario.
You can also use the following values or options with a POV override or by themselves:

Override

Blank

NumDecimals

ReadOnly

SCalc

Scale

String

Style

Example
In the following override example, the system overrides columns 2 and 3 for row 2 with
December as the period and the PriorSales amount instead of the sales amount for the month:
R2=A#Sales, Override(2,3,Y#2002.P#December.A#PriorSales)

In the following override example, the system overrides columns 2 and 3 for row 2 with a
formula calculation of the average of Sales1, Sales2, and Sales3:
R2=A#Sales, Override(2,3,SCalc((A#Sales1+A#Sales2+A#Sales3)/3)

In the following override example, the system overrides columns 2 and 3 for row 2 with the read
only option.
R2=A#Sales, Override(2,3,readonly)

Das könnte Ihnen auch gefallen