Use Constants to Standardize Code

Siebel Visual Basic and Siebel eScript provide constants that you can use to make your code more readable by other developers. A constant clarifies the intent of the operation. Use the constant name in your code. Do not use the integer value in your code. The integer value is included only to aid in debugging. If you store the constant in a local variable, and if the value of the local variable is available, then Siebel CRM displays the integer value in the Debugger.

The following information lists the Siebel constants you can use.

It is recommended that you use the constant and that you do not use the integer value because integer values are subject to modification.

Used With Constant Name Integer Value

Pre Event Handler Methods

ContinueOperation

1

CancelOperation

2

Search Methods

ForwardBackward

256

ForwardOnly

257

NewRecord Method

NewBefore

0

NewRecord Method

NewAfter

1

NewRecord Method

NewBeforeCopy (Not available with Siebel Java Data Bean)

2

NewRecord Method

NewAfterCopy (Not available with Siebel Java Data Bean)

3

Siebel ViewMode Methods.

SalesRepView

0

Siebel ViewMode Methods.

ManagerView

1

Siebel ViewMode Methods.

PersonalView

2

Siebel ViewMode Methods.

AllView

3

Siebel ViewMode Methods.

OrganizationView

5

Siebel ViewMode Methods.

GroupView

7

Siebel ViewMode Methods.

CatalogView

8

Siebel ViewMode Methods. For more information, see Constants you can use with the SetViewMode method in SetViewMode Method for a Business Component.

SubOrganizationView

9