|Bookshelf Home | Contents | Index | PDF|
This topic describes the methods that are implemented in the CSSBCForecast Class.
The ForecastGenerate method fills out the creation of a forecast after the forecast header (top-level) record is created. ForecastGenerate queries for the correct revenue records, and then creates the detail records and summary records for the forecast. In the preconfigured application, this method is invoked when a new forecast is saved.
Table 16 describes the method arguments for ForecastGenerate.
When the WriteRecord method saves a new forecast header record, the default behavior of the preconfigured application is to call ForecastGenerate to create the detail and summary records. You can opt instead to create header records only, with no detail or summary records. To do so, you must provide script outside of WriteRecord that uses InvokeMethod to call the SetWriteRecordsWithGenerate method with an input parameter of N. For subsequent new forecasts, ForecastGenerate does not invoke when new records are saved. No detail or summary records are created unless ForecastGenerate is called elsewhere in script.
NOTE: Not invoking ForecastGenerate during the save record process is different from asynchronously creating a forecast, in which ForecastGenerate is invoked automatically but runs in the background to allow the user to do other tasks in the user interface. Unless you plan to turn ForecastGenerate on and off selectively, it is likely that you do not need to invoke SetWriteRecordsWithGenerate in script. Typically, you would set the Forecast: Use Server Task system preference and Forecast Service Manager server component to generate detail and summary records either synchronously or asynchronously whenever a new forecast record is created.
The RollupForecast method calculates the summary records for a forecast based on the detail records. Summary records are not updated dynamically; the RollupForecast method must be invoked, either by a control or programmatically, after detail records are modified. This method must have a current active row on the top-level forecast business component.
See also RollupParentForecast Method.
|Siebel Developer's Reference||Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices.|