OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

office message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] Commented: (OFFICE-3494) Part 2 6.13 AddCURRENTVALUE function



    [ http://tools.oasis-open.org/issues/browse/OFFICE-3494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=22929#action_22929 ] 

Andreas Guelzow  commented on OFFICE-3494:
------------------------------------------

Yes. This distinction between relative and absolute references is quite powerful. Normally the interpretation of relative addresses is always to the current cell. In situations were we don't have a current cell (as in this case) we have table:base-cell-address to specify the basis for relative addresses:

The table:base-cell-address attribute specifies the address of the base cell for relative
addresses in formulas that occur within a condition. This attribute is only necessary when the
condition contains a formula. The value of this attribute shall be an absolute cell address that
contains a table name. The dollar signs "$" (DOLLAR SIGN, U+0024, DOLLAR SIGN) that
indicate an absolute address may be omitted.

Note that your examples above are technically not valid, ie.
<table:content-validation
      table:name="mode-swing"
      table:base-cell-address="A5"
      table:condition="is-true-formula(AVERAGE([.A1:A10]) > (MAX([A1:A10])+MIN([A1:A10])/2)"
      />
needs to be
<table:content-validation
      table:name="mode-swing"
      table:base-cell-address="'Sheet 1'.A5"
      table:condition="is-true-formula(AVERAGE([.A1:A10]) > (MAX([A1:A10])+MIN([A1:A10])/2)"
      />



> Part 2 6.13 Add CURRENTVALUE function
> -------------------------------------
>
>                 Key: OFFICE-3494
>                 URL: http://tools.oasis-open.org/issues/browse/OFFICE-3494
>             Project: OASIS Open Document Format for Office Applications (OpenDocument) TC
>          Issue Type: Sub-task
>          Components: OpenFormula, Part 2 (Formulas)
>    Affects Versions: ODF 1.2 CD 05
>            Reporter: Dennis Hamilton
>            Assignee: Dennis Hamilton
>             Fix For: ODF 1.2 CD 06
>
>
> The CURRENTVALUE( ) function is an additional Information Function that provides access to the existing value in the context for which the OpenFormula formula is being evaluated.
> This function corresponds to the current-content( ) function defined in ODF 1.2 style:condition and table:condition attributes and it has the same purpose:
> Whenever the evaluation is in a context where there is a current value, that value is made available to the evaluation as the result of CURRENTVALUE( ).  [Note: a current value need not be associated with a specific cell or even a table, depending on the context in which the evaluation is employed.]
> Whenever the current value is that of a table cell, that value is delivered in the same manner as if CURRENTVALUE( ) were a reference to that cell.
> CURRENTVALUE( ) is a special form of reference that delivers a value based on the context of evaluation.
> When there is no current value available, CURRENTVALUE( ) returns an error-type value.   If the current value is an error-type value, that error is returned.
> Evaluation of CURRENTVALUE( ) shall not induce recalculation.  It does not constitute a recursive reference of any kind.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]