Codeunit "Time Series Management"

ID 2000
Namespace: System.AI

Methods

Initialize

Obsolete

This element will become obsolete from version 24.0. Use Initialize(Uri: SecretText; "Key": SecretText; TimeOutSeconds: Integer; UseStdCredentials: Boolean) instead.

[NonDebuggable]
[Obsolete(Use Initialize(Uri: SecretText; "Key": SecretText; TimeOutSeconds: Integer; UseStdCredentials: Boolean) instead.,24.0)]
[TryFunction]
procedure Initialize(Uri: Text, "Key": Text, TimeOutSeconds: Integer, UseStdCredentials: Boolean): Boolean

Parameters

Name Type Description
Uri Text
Key Text
TimeOutSeconds Integer
UseStdCredentials Boolean

Returns

Type Description
Boolean

Initialize

[TryFunction]
procedure Initialize(Uri: Text, "Key": SecretText, TimeOutSeconds: Integer, UseStdCredentials: Boolean): Boolean

Parameters

Name Type Description
Uri Text
Key SecretText
TimeOutSeconds Integer
UseStdCredentials Boolean

Returns

Type Description
Boolean

InitializeFromCashFlowSetup

procedure InitializeFromCashFlowSetup(TimeSeriesLibState: Option): Boolean

Parameters

Name Type Description
TimeSeriesLibState Option

Returns

Type Description
Boolean

PrepareData

procedure PrepareData(RecordVariant: Variant, GroupIDFieldNo: Integer, DateFieldNo: Integer, ValueFieldNo: Integer, PeriodType: Option, ForecastingStartDate: Date, ObservationPeriods: Integer)

Parameters

Name Type Description
RecordVariant Variant
GroupIDFieldNo Integer
DateFieldNo Integer
ValueFieldNo Integer
PeriodType Option
ForecastingStartDate Date
ObservationPeriods Integer

SetPreparedData

procedure SetPreparedData(var TempTimeSeriesBufferIn: Record "Time Series Buffer" temporary, PeriodType: Option, ForecastingStartDate: Date, ObservationPeriods: Integer)

Parameters

Name Type Description
TempTimeSeriesBufferIn Record "Time Series Buffer" temporary
PeriodType Option
ForecastingStartDate Date
ObservationPeriods Integer

GetPreparedData

procedure GetPreparedData(var TempTimeSeriesBufferOut: Record "Time Series Buffer" temporary)

Parameters

Name Type Description
TempTimeSeriesBufferOut Record "Time Series Buffer" temporary

Forecast

procedure Forecast(ForecastingPeriods: Integer, ConfidenceLevel: Integer, TimeSeriesModel: Option)

Parameters

Name Type Description
ForecastingPeriods Integer
ConfidenceLevel Integer
TimeSeriesModel Option

GetForecast

procedure GetForecast(var TempTimeSeriesForecastOut: Record "Time Series Forecast" temporary)

Parameters

Name Type Description
TempTimeSeriesForecastOut Record "Time Series Forecast" temporary

GetState

procedure GetState(var State: Option)

Parameters

Name Type Description
State Option

GetOutput

procedure GetOutput(LineNo: Integer, ColumnNo: Integer): Text

Parameters

Name Type Description
LineNo Integer
ColumnNo Integer

Returns

Type Description
Text

GetOutputLength

procedure GetOutputLength(): Integer

Returns

Type Description
Integer

GetInput

procedure GetInput(LineNo: Integer, ColumnNo: Integer): Text

Parameters

Name Type Description
LineNo Integer
ColumnNo Integer

Returns

Type Description
Text

GetInputLength

procedure GetInputLength(): Integer

Returns

Type Description
Integer

GetParameter

procedure GetParameter(Name: Text): Text

Parameters

Name Type Description
Name Text

Returns

Type Description
Text

SetMinimumHistoricalPeriods

procedure SetMinimumHistoricalPeriods(NumberOfPeriods: Integer)

Parameters

Name Type Description
NumberOfPeriods Integer

SetMaximumHistoricalPeriods

procedure SetMaximumHistoricalPeriods(NumberOfPeriods: Integer)

Parameters

Name Type Description
NumberOfPeriods Integer

HasMinimumHistoricalData

procedure HasMinimumHistoricalData(var NumberOfPeriodsWithHistory: Integer, SourceRecord: Variant, PeriodFieldNo: Integer, PeriodType: Option, ForecastStartDate: Date): Boolean

Parameters

Name Type Description
NumberOfPeriodsWithHistory Integer
SourceRecord Variant
PeriodFieldNo Integer
PeriodType Option
ForecastStartDate Date

Returns

Type Description
Boolean

GetTimeSeriesModelOption

procedure GetTimeSeriesModelOption(TimeSeriesModel: Text): Integer

Parameters

Name Type Description
TimeSeriesModel Text

Returns

Type Description
Integer

See also