Difference between revisions of "SUN Report Builder/Documentation"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Added Function Names)
(Jump to detail page)
Line 35: Line 35:
 
The Sun Report Builder Verson 1.0.x includes functions in the following categories:
 
The Sun Report Builder Verson 1.0.x includes functions in the following categories:
  
'''Datetime''' functions<br>
+
'''Datetime''' <br>
 
Date, Datetime, Day, Hour, Month, Now, Year, Today, Weekday, Time,  
 
Date, Datetime, Day, Hour, Month, Now, Year, Today, Weekday, Time,  
  
'''Financial''' functions<br>
+
'''Financial''' <br>
 
Financial
 
Financial
  
'''Information''' functions<br>
+
'''Information''' <br>
 
Choose, HasChanged, Information, IsBlank, IsErr, IsError, IsEven, IsLogical, IsNA, IsNonText, IsNumber, IsOdd, IsRef, IsText, Na
 
Choose, HasChanged, Information, IsBlank, IsErr, IsError, IsEven, IsLogical, IsNA, IsNonText, IsNumber, IsOdd, IsRef, IsText, Na
  
'''Logical''' functions<br>
+
'''Logical''' <br>
 
And, False, If, Not, Or, True, Xor
 
And, False, If, Not, Or, True, Xor
  
'''Math''' functions<br>
+
'''Math''' <br>
 
Abs, Average, Even, Odd, Sum
 
Abs, Average, Even, Odd, Sum
  
'''Rounding''' functions<br>
+
'''Rounding''' <br>
 
Int
 
Int
  
'''Text''' functions<br>
+
'''Text''' <br>
 
Exact, Find, Left, Len, Lower, Mid, Replace, Rept, Right, Substitute, Text, T, Trim, Upper, URL
 
Exact, Find, Left, Len, Lower, Mid, Replace, Rept, Right, Substitute, Text, T, Trim, Upper, URL
  
'''Userdefined''' functions<br>
+
'''Userdefined''' <br>
 
Mapped, Null
 
Mapped, Null
 +
 +
A detailed [[Base/Reports/Functions|explanation]] will be found [[Base/Reports/Functions|here.]]
  
  
 
[[Category: Database]]
 
[[Category: Database]]
 
[[Category: Base Documentation]]
 
[[Category: Base Documentation]]

Revision as of 08:10, 11 October 2007

Sun Report Builder

You can find the Sun Report Builder here.

Functions

A function can be created when opening the report navigator. In the context menu on the functions entry you can create one function.

This function can either be in the global context of the report itself or in any group.

For example:

- compute the sum of a field

  1. In the name field enter the name of the functions. E.g. PopulationCount
  2. Enter the function. E.g. [PopulationCount] + [Population] Where Population is a column of the table.
  3. Enter the inital value. E.g. [Population]
  4. Insert a new formatted field and select the [PopulationCount] on the data tab.

Computed fields

Computed fields can be created in that way that the formula is entered directly into the data field.

E.g. 100*[Population]/[PopulationCount] to get the percentage of the current population

Syntax

  • quote for [ is \
  • \\
  • [] as reference for formula or field name
  • "" to quote strings
  • . as decimal separator
  • date as in java specific
  • parameter separator is ; (semicolon) and it is allowed to let some parameters empty inside a call like XYZ(;kk;;kkb)

Supported Functions

Generally all functions which are defined in the OpenFormula should be supported. But this is currently still ongoing work and may change after each release of the Sun Report Builder.

The Sun Report Builder Verson 1.0.x includes functions in the following categories:

Datetime
Date, Datetime, Day, Hour, Month, Now, Year, Today, Weekday, Time,

Financial
Financial

Information
Choose, HasChanged, Information, IsBlank, IsErr, IsError, IsEven, IsLogical, IsNA, IsNonText, IsNumber, IsOdd, IsRef, IsText, Na

Logical
And, False, If, Not, Or, True, Xor

Math
Abs, Average, Even, Odd, Sum

Rounding
Int

Text
Exact, Find, Left, Len, Lower, Mid, Replace, Rept, Right, Substitute, Text, T, Trim, Upper, URL

Userdefined
Mapped, Null

A detailed explanation will be found here.

Personal tools