Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Business Component Events > BusComp_ChangeRecord EventThe ChangeRecord event is called after a record becomes the current row in the business component. SyntaxReturnsUsageCode in the ChangeRecord event handler is executed each time that the focus changes to another record. Avoid lengthy operations in this event handler to enable smooth scrolling in list applets. Used WithExampleThis Siebel VB example uses two subprograms in the (general) (declarations) section to set up an audit trail for service requests. The ChangeRecord event handler is used to initialize the values from the service record so that they can be compared with current values. (general) (declarations) Sub CreateAuditRecord (FieldName As String, NewValue As String, OldValue As String, ChangedText As String) Dim ActionBC As BusComp Set CurrentBO = TheApplication.GetBusObject("Service Request") With ActionBC .SetFieldValue "Activity SR Id", theSRNumber Sub InitializeOldValues |
Siebel Object Interfaces Reference |