Siebel Tools >  How to make a field in an Applet Read Only

How to make a field in an Applet Read Only

There are 7 ways that i could find to make a Field read only.

The first is the easiest - check the read only flag at the Business Component level.

Read Only Flag

BC level read only flag siebel

 

Field Read Only Field

You can also use the Business Component User Properties.

Add a new field and call it 'Field Read Only Field: Field Name'

e.g. If I want to make Field 'Account Name' in Business Component 'Action' read only.

Name = Field Read Only Field : Account Name

Value = Account Read Only

'Account Read Only' can be a field in BC Action which could be a calculated value, a static value (=TRUE)

or could be equal to another existing field.

 

Business Component user Properties

 

Parent read only

You can make a field read-only based on the value of another Field in Parent Business Component.

You can specify the parent Business Component name or omit it and let Siebel automatically find it.

e.g.

Name: Parent Read Only Field: [BC Name]
Value: [field name in parent BC]

or 

Name: Parent Read Only Field
Value: [field name in parent BC]

Here is an example

Parent read only field siebel

 

Aspect BC Read Only

This value will make all fields in a Business Component read only.

You can set conditions on when this will be read only also.

An example is shown below

Aspect read Only

This could also be used to make Child Business Compnents read only also

 

Name: Aspect Child BC ReadOnly: [Child BC name]

Value: TRUE/FALSE/Conditions

Applet Level Read Only

You can set a field as 'No Update', 'Read Only', 'No Insert'. 'Read Only' value is set at the Property level of an Applet Field. The others can be set at the Applet Controls.

Applet level controls in siebel

Control level:

Applet control in Siebel

State Models

This can be used to make entire Busniess Components or Child Business Components read only. You can also make them partially read only. 

If you are not familiar with State Models, you can find information in these links: 

Creating State Models and State Transitions

Configuring Business Components for State Models

Activating State Models

 Scripting Methods

I have been partially successful in disabling Fields using scripts or setting up values in Workflows.

You could in the Functions PreInvokeMethod ( In Web Applets, Service or Application) set up a command like

ObjectName.SetProperty("ReadOnly","TRUE")

This works on certain fields.