Thursday, Oct. 19, 2017

Actions on explicit WriteRecord using Runtime events

Written By:

|

December 16, 2012

|

Posted In:

Requirement:

The requirement is to make the record read only, only after user saves the record explicitly i.e. whenever Activity Status is changed to “Done” it should not be read only immediately. The record should get read only, with a condition (Status as Done), after user saves the record explicitly.

Solution:

Follow the below steps to implement this requirement.
1. In Siebel Tools, query the BC called “Action” and create a new calculated field as below:

runtime1

2. In the Action BC, create a new BC user property as shown below:

runtime2

3.  In your Action BC, go to BusComp_WriteRecord event and write the below line of code to refresh this calculated field “WR”

runtime3

4. Compile the Action BC and launch Siebel Client application.

5. In your Client application, configure a profile attribute in Runtime Events Adminsitration to set the Calculated field created in Step 1 as shown below

In Sitemap, go to Administration -RunTimeEvents and create an Action sets as below

Applet no: 1

runtime4

Applet No: 2

runtime5

Applet No: 3

runtime6

Go to the Events Tab and create the record as shown below

runtime7

In this applet, click on Menu and the press, “Reload RunTime Events”.

You are done…Happy learning!!



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.

  • Ranjith

    Where is the profile attribute being set back to N again ? What if the view has a list applet ? Won’t the profile attribute affect the other records in the list applet ?

    • Gurdeep

      Hi,
      Resetting profile attributes or global variables does not affect when you have WriteRecord in place as the values will refresh automatically.

      Regards,
      Gurdeep

  • bikash

    While records are updated through batch, Can a Runtime Event on write record get fired….?