Thursday, Oct. 19, 2017

Force a User to change a field value when another field is updated

Written By:

|

November 12, 2012

|

Posted In:

Requirement:

Requirement is to force the user to change the “Prioirty” of the Service Request as soon as the Service Request field called “Closed Date” is set to a non null value i.e. when the user sets the service request Closed Date to a non null value, user should not be allowed to save this date unless he changes the priority from existing value(say Low) to a new value as High.
If user tries to do an Undo record after changing the Closed date to a new value, then Closed Date should be rolled back to null value with an error message.

Solution:

Follow the below steps to implement this requirement:
1. In Siebel Tools, go to the BC called “Service Request” and modify the server script event called BusComp_PreSetFieldValue as below:

field_update1

CDChanged is the name of the profile attribute

2. In the same BC modify the Server Script’s- BusComp_PreWriteRecord event as shown in screenshot below:

field_update2

3. Compile the BC and see the result in form of an error message as below:

field_update3



Share This Article

About Author

Gurdeep

Hi, I am sharing my experience to alleviate beginners with open UI and HI version of Siebel CRM. I work in Sun Life Financials and can be reached via IT Tool box as well. Thanks.

Comments are closed.

Leave A Reply