Siebel Developer's Reference > Operators, Expressions, and Conditions > Functions in Calculation Expressions >

Syntax for Predefault and Postdefault Fields


The Pre Default Value property of a field (Predefault Value in the Object List Editor) automatically assigns a value to that field for a new record. The user can modify the field if it is displayed and not set to Read Only. For example, Currency Code has a predefault value of System: Currency. The currency code for a new contact is automatically set to the default system currency.

The Post Default Value property of a field assigns a value to a field before the record is written to the database, if one has not been entered by the user. For example, Personal Contact has a postdefault value of N. If the user does not designate a new contact as personal, the system assumes that it is not.

Table 133 provides the syntax to be used in predefault fields.

Table 133. Predefault Values and Functions
Function
Result Type
Description

System: Creator

String

Login name (for example, BSTEVENS).

System: CreatorId

String

Login Id (for example, 0-3241).

System: OrganizationId

String

Organization ID (for example, 1-24E1).

System: OrganizationName

String

Organization name (for example, Siebel Service).

System: Position

String

Position name (for example, VP of Sales).

System: PositionId

String

Position Id (for example, 0-4432).

System: Today

Date

Today's date (for example, 4/26/05).

When using System: Today as the predefault value for a field, the data type for that field must be DTYPE_DATE.

System: Timestamp

DateTime

Today's date and time (for example, 04/02/05 11:15:22).

System: Currency

String

Currency for this position (for example, USD). Determined by the setting for the Currency field in the Divisions or Organizations view under the Group Administration screen.

If the division has a different Currency setting from the organization, the division Currency setting is used.

System: LocalCurrency

String

Currency for this machine (for example, JPY).

Parent: 'BusComp.Field', 'BusComp.Field'

String

Value in parent business component field.

The field in the parent business component must have Link Specification set to TRUE for values to be defaulted.

You can have multiple 'BusComp.Field' constructs separated by commas; the list is checked from first to last until a value is found—for example:

Parent: 'ServiceRequest.Account', 'Account.Name'

NOTE:  A space is required after every comma that separates the fields for this function to work correctly. If the business component has an apostrophe in its name, you must enclose the name in double quotes—for example:

Parent: "FINS AG Agent's Contracts.Status Of Contract"

You can also terminate a chain of Parent calls with a System call—for example:

Parent: 'Opportunity.Currency Code', 'Account.Currency Code', System: Currency

Field: 'FieldName'

String

Value in field in current business component field "FieldName."
Field: 'FieldName' does not work in the Predefault Value property if FieldName is a join field.

Expr: 'Today() - 1'

String

Value of expression.
Example: Today() - 1.

Siebel Developer's Reference