Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Wiki Markup
{scrollbar}

----
In *{_}O3 Designer{_}* you can define a group of parameters to use for:
* Controlling the build process
* Substituting values in the data sources definition

The parameter uses default values, or values assigned during the build.

Defining a build parameter includes declaring:
* Name
* Default value
* Type
* Whether it is used as a controller for incremental builds

Parameter values can be constants or expressions. If you use an expression, the value must begin with an = (equal sign).

You can use virtual fields operators and functions in the expression.

For example, you can define a parameter value as:
{code}
=today()
{code}
In this case the parameter will be set to the current date.

You can also use previously defined build parameters in parameter values by referencing it as $parameterName$.

For example:
{code}

...

In O3 Designer you can define a group of parameters to use for:

  • Controlling the build process
  • Substituting values in the data sources definition

The parameter uses default values, or values assigned during the build.

Defining a build parameter includes declaring:

  • Name
  • Default value
  • Type
  • Whether it is used as a controller for incremental builds

Parameter values can be constants or expressions. If you use an expression, the value must begin with an = (equal sign).

You can use virtual fields operators and functions in the expression.

For example, you can define a parameter value as:

Code Block

=today()

In this case the parameter will be set to the current date.

You can also use previously defined build parameters in parameter values by referencing it as $parameterName$.

For example:

Code Block
DIR=C:\O3
DIR2=$DIR$\files
{code}

In

...

this

...

case,

...

the

...

value

...

of

...

DIR2

...

is

...

C:\O3\files.

...

You

...

can

...

also

...

use

...

a

...

previously

...

defined

...

build

...

parameter

...

in

...

an

...

expression

...

which

...

assigns

...

value

...

to

...

another

...

parameter.

...

Note

...

that

...

you

...

do

...

not

...

enclose

...

the

...

previously

...

defined

...

parameter

...

in

...

$

...

(dollar

...

signs)

...

when

...

using

...

a

...

parameter

...

within

...

an

...

expression

...

}
Code Block
CURRENT_DATE=today()
TOMORROW=AddDay(CURRENT_DATE, 1)
{code}

h1. Build Parameter Definitions in Data Sources

You can refer to defined build parameters in a Text Data Source definition, or a SQL query by referencing it as $parameterName$.

For example:
{code}

Build Parameter Definitions in Data Sources

You can refer to defined build parameters in a Text Data Source definition, or a SQL query by referencing it as $parameterName$.

For example:

Code Block
SELECT *
FROM Table
WHERE date > $YESTERDAY$
{code}

During

...

the

...

cube

...

build,

...

parameter

...

values

...

are

...

substituted.

...

Values

...

are

...

either

...

default

...

values

...

assigned

...

in

...

the

...

model,

...

or

...

values

...

reassigned

...

during

...

the

...

build.

...

Use

...

the

...

General

...

tab

...

of

...

the

...

cube

...

properties

...

pane

...

to

...

define

...

build

...

parameters.

...

To

...

define

...

build

...

parameters

...

  1. Select

...

  1. the

...

  1. cube's

...

  1. branch

...

  1. in

...

  1. the

...

  1. Design

...

  1. tree.

...

  1. The

...

  1. Properties

...

  1. pane

...

  1. for

...

  1. the

...

  1. cube

...

  1. displays.

...

  1. Choose

...

  1. the

...

  1. General

...

  1. tab.

...

  1. Choose

...

  1. the

...

  1. Add

...

  1. button

...

  1. in

...

  1. the

...

  1. Parameters

...

  1. group

...

  1. box.

...

  1. A

...

  1. new

...

  1. build

...

  1. parameter

...

  1. displays.

...

  1. To

...

  1. edit

...

  1. the

...

  1. build

...

  1. parameter

...

  1. name,

...

  1. double-click

...

  1. in

...

  1. the

...

  1. Name

...

  1. field.

...

  1. Enter

...

  1. the

...

  1. new

...

  1. build

...

  1. parameter

...

  1. name.

...

  1. To

...

  1. edit

...

  1. the

...

  1. build

...

  1. parameter

...

  1. value,

...

  1. double-click

...

  1. in

...

  1. the

...

  1. Value

...

  1. field.

...

  1. Enter

...

  1. the

...

  1. new

...

  1. build

...

  1. parameter

...

  1. value.

...

  1. To

...

  1. change

...

  1. the

...

  1. build

...

  1. parameter

...

  1. type,

...

  1. double-click

...

  1. on

...

  1. the

...

  1. Type

...

  1. field.

...

  1. The

...

  1. list

...

  1. of

...

  1. types

...

  1. displays.

...

  1. Select

...

  1. a

...

  1. type.

...

  1. The

...

  1. Type

...

  1. field

...

  1. updates.

...

  1. To

...

  1. use

...

  1. the

...

  1. build

...

  1. parameter

...

  1. to

...

  1. control

...

  1. an

...

  1. incremental

...

  1. build,

...

  1. turn

...

  1. the

...

  1. Controller

...

  1. checkbox

...

  1. on.

...

  1. To

...

  1. continue

...

  1. adding

...

  1. build

...

  1. parameters,

...

  1. repeat

...

  1. steps

...

  1. 4

...

  1. through

...

  1. 11.

...

  1. Choose

...

  1. the

...

  1. OK

...

  1. button.

...

  1. You

...

  1. return

...

  1. to

...

  1. the

...

  1. Properties

...

  1. pane

...

  1. for

...

  1. the

...

  1. cube.

...

(warning) Note
You can also reassign parameter values during the build process by creating a file containing the new values in the format

Code Block
<Parameter1Name>=<Parameter1Value>
<Parameter2Name>=<Parameter2Value>
<Parameter1Name>=<Parameter1Value>
{code}

The

...

values

...

assigned

...

in

...

the

...

model

...

are

...

substituted

...

with

...

the

...

ones

...

specified

...

in

...

the

...

file.

...

These

...

can

...

be

...

constants

...

or

...

expressions.

...

Image Added

...

Wiki Markup
{scrollbar}
Child pages (Children Display)