Bookshelf Home | Contents | Index | PDF |
Siebel Developer's Reference > Business Component Classes > CSSBCActivity Class > CSSBCActivity MethodsThis section describes the methods that are implemented in the CSSBCActivity Class. ClearGridBeginEndDateThe ClearGridBeginEndDate method returns the business component to regular mode after it has been set to calendar mode with the SetGridBeginEndDate method. CompleteActivityThe CompleteActivity method commits the activity record and calculates the costs associated with an activity. It then updates the parts, time, and expense records of the activity with the costs of each item based on the price list, rate list, and cost list. In the preconfigured application, the CompleteActivity method is invoked by the Complete Activity business service. The Complete Activity business service is called when an activity record is saved. This method is typically used with the Action business component, but may be used with other business components in the CSSBCActivity class. This method cannot be called when the applet is in query mode. IsPrimaryInMVGThe IsPrimaryInMVG method returns Y or N to indicate whether the logged-in user is the primary in the multi-value group of a specified field. This method can be used to determine whether the logged-in user is allowed to perform operations that are limited to the primary in the multi-value group. For example, only the primary may be allowed to change the primary. SetEmployeeIdThe SetEmployeeId method sets the criteria of the next SQL query on the current activity business component to the row Id and login provided as input arguments, to enable visibility of that employee's calendar records.
SetGridBeginEndDateThe SetGridBeginEndDate method sets the business component to Calendar mode and sets the beginning and ending dates for the grid. This method is required in script that manipulates the business component in Calendar mode, such as manipulating the instances of a recurring activity. CAUTION: To avoid performance impact, set the date interval so that a large number of records, for example more than 1000, are not returned. Typically, the interval should be set as a month or a week. In the preconfigured application, this method is typically invoked with intervals of a calendar month or a calendar week. The business component is returned from Calendar mode to its regular mode by the ClearGridBeginEndDate method. |
Siebel Developer's Reference |