Codeunit "Update Analysis View"

ID 410
Namespace: Microsoft.Finance.Analysis

Properties

Name Value
Permissions TableData "G/L Entry" = r, TableData "G/L Budget Entry" = r, TableData "Analysis View" = rm, TableData "Analysis View Filter" = r, TableData "Analysis View Entry" = rimd, TableData "Analysis View Budget Entry" = rimd
TableNo Table Microsoft.Finance.Analysis."Analysis View"

Methods

UpdateAll

procedure UpdateAll(Which: Option, DirectlyFromPosting: Boolean)

Parameters

Name Type Description
Which Option
DirectlyFromPosting Boolean

Update

procedure Update(var NewAnalysisView: Record "Analysis View", Which: Option, ShowWindow: Boolean)

Parameters

Name Type Description
NewAnalysisView Table Microsoft.Finance.Analysis."Analysis View"
Which Option
ShowWindow Boolean

UpdateAnalysisViewEntry

procedure UpdateAnalysisViewEntry(AccNo: Code[20], BusUnitCode: Code[20], CashFlowForecastNo: Code[20], DimValue1: Code[20], DimValue2: Code[20], DimValue3: Code[20], DimValue4: Code[20], PostingDate: Date, Amount: Decimal, DebitAmount: Decimal, CreditAmount: Decimal, AmountACY: Decimal, DebitAmountACY: Decimal, CreditAmountACY: Decimal, EntryNo: Integer)

Parameters

Name Type Description
AccNo Code[20]
BusUnitCode Code[20]
CashFlowForecastNo Code[20]
DimValue1 Code[20]
DimValue2 Code[20]
DimValue3 Code[20]
DimValue4 Code[20]
PostingDate Date
Amount Decimal
DebitAmount Decimal
CreditAmount Decimal
AmountACY Decimal
DebitAmountACY Decimal
CreditAmountACY Decimal
EntryNo Integer

UpdateAnalysisViewEntry

procedure UpdateAnalysisViewEntry(UpdAnalysisViewEntryBuffer: Record "Upd Analysis View Entry Buffer" temporary)

Parameters

Name Type Description
UpdAnalysisViewEntryBuffer Table Microsoft.Finance.Analysis."Upd Analysis View Entry Buffer"

CalculatePeriodStart

procedure CalculatePeriodStart(PostingDate: Date, DateCompression: Integer): Date

Parameters

Name Type Description
PostingDate Date
DateCompression Integer

Returns

Type Description
Date

FlushAnalysisViewEntry

procedure FlushAnalysisViewEntry()

FlushAnalysisViewBudgetEntry

procedure FlushAnalysisViewBudgetEntry()

GetDimVal

procedure GetDimVal(DimCode: Code[20], DimSetID: Integer): Code[20]

Parameters

Name Type Description
DimCode Code[20]
DimSetID Integer

Returns

Type Description
Code[20]

UpdateWindowCounter

procedure UpdateWindowCounter(EntryNo: Integer)

Parameters

Name Type Description
EntryNo Integer

UpdateWindowHeader

procedure UpdateWindowHeader(TableID: Integer, EntryNo: Integer)

Parameters

Name Type Description
TableID Integer
EntryNo Integer

SetLastBudgetEntryNo

procedure SetLastBudgetEntryNo(NewLastBudgetEntryNo: Integer)

Parameters

Name Type Description
NewLastBudgetEntryNo Integer

DimSetIDInFilter

procedure DimSetIDInFilter(DimSetID: Integer, var AnalysisView: Record "Analysis View"): Boolean

Parameters

Name Type Description
DimSetID Integer
AnalysisView Table Microsoft.Finance.Analysis."Analysis View"

Returns

Type Description
Boolean

Events

OnAfterInitLastEntryNo

[IntegrationEvent(False,False)]
local procedure OnAfterInitLastEntryNo(var LastGLEntryNo: Integer)

Parameters

Name Type Description
LastGLEntryNo Integer

OnAfterUpdateAll

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateAll(Which: Option, DirectlyFromPosting: Boolean)

Parameters

Name Type Description
Which Option
DirectlyFromPosting Boolean

OnBeforeUpdateAll

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateAll(Which: Option, DirectlyFromPosting: Boolean, var AnalysisView: Record "Analysis View", var InBatchPosting: Boolean)

Parameters

Name Type Description
Which Option
DirectlyFromPosting Boolean
AnalysisView Table Microsoft.Finance.Analysis."Analysis View"
InBatchPosting Boolean

OnBeforeUpdateOne

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateOne(var NewAnalysisView: Record "Analysis View", Which: Option, ShowWindow: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
NewAnalysisView Table Microsoft.Finance.Analysis."Analysis View"
Which Option
ShowWindow Boolean
IsHandled Boolean

OnBeforeUpdateEntriesForGLAccount

[IntegrationEvent(True,False)]
local procedure OnBeforeUpdateEntriesForGLAccount(var TempAnalysisViewEntry: Record "Analysis View Entry" temporary, AnalysisView: Record "Analysis View", LastGLEntryNo: Integer, var NoOfEntries: Integer, var IsHandled: Boolean, ShowProgressWindow: Boolean)

Parameters

Name Type Description
TempAnalysisViewEntry Table Microsoft.Finance.Analysis."Analysis View Entry"
AnalysisView Table Microsoft.Finance.Analysis."Analysis View"
LastGLEntryNo Integer
NoOfEntries Integer
IsHandled Boolean
ShowProgressWindow Boolean

OnFlushAnalysisViewEntryOnBeforeAnalysisViewEntryInsert

[IntegrationEvent(False,False)]
local procedure OnFlushAnalysisViewEntryOnBeforeAnalysisViewEntryInsert(var AnalysisViewEntry: Record "Analysis View Entry", TempAnalysisViewEntry: Record "Analysis View Entry" temporary)

Parameters

Name Type Description
AnalysisViewEntry Table Microsoft.Finance.Analysis."Analysis View Entry"
TempAnalysisViewEntry Table Microsoft.Finance.Analysis."Analysis View Entry"

OnUpdateOneOnBeforeUpdateAnalysisView

[IntegrationEvent(True,False)]
local procedure OnUpdateOneOnBeforeUpdateAnalysisView(var AnalysisView: Record "Analysis View", var TempAnalysisViewEntry: Record "Analysis View Entry" temporary, var Updated: Boolean, ShowProgressWindow: Boolean)

Parameters

Name Type Description
AnalysisView Table Microsoft.Finance.Analysis."Analysis View"
TempAnalysisViewEntry Table Microsoft.Finance.Analysis."Analysis View Entry"
Updated Boolean
ShowProgressWindow Boolean

OnUpdateOneOnBeforeNewAnalysisViewIncludeBudgetsCheck

[IntegrationEvent(False,False)]
local procedure OnUpdateOneOnBeforeNewAnalysisViewIncludeBudgetsCheck(var NewAnalysisView: Record "Analysis View", var AnalysisView: Record "Analysis View", Which: Option)

Parameters

Name Type Description
NewAnalysisView Table Microsoft.Finance.Analysis."Analysis View"
AnalysisView Table Microsoft.Finance.Analysis."Analysis View"
Which Option

OnUpdateOneOnBeforeUpdateEntries

[IntegrationEvent(False,False)]
local procedure OnUpdateOneOnBeforeUpdateEntries(var AnalysisView: Record "Analysis View", Which: Option, LastGLEntryNo: Integer)

Parameters

Name Type Description
AnalysisView Table Microsoft.Finance.Analysis."Analysis View"
Which Option
LastGLEntryNo Integer

OnUpdateBudgetEntriesOnAfterGLBudgetEntrySetFilters

[IntegrationEvent(False,False)]
local procedure OnUpdateBudgetEntriesOnAfterGLBudgetEntrySetFilters(var GLBudgetEntry: Record "G/L Budget Entry", var AnalysisView: Record "Analysis View")

Parameters

Name Type Description
GLBudgetEntry Table Microsoft.Finance.GeneralLedger.Budget."G/L Budget Entry"
AnalysisView Table Microsoft.Finance.Analysis."Analysis View"

OnUpdateEntriesForGLAccountDetailedOnAfterGLEntrySetFilters

[IntegrationEvent(False,False)]
local procedure OnUpdateEntriesForGLAccountDetailedOnAfterGLEntrySetFilters(var GLEntry: Record "G/L Entry", var AnalysisView: Record "Analysis View")

Parameters

Name Type Description
GLEntry Table Microsoft.Finance.GeneralLedger.Ledger."G/L Entry"
AnalysisView Table Microsoft.Finance.Analysis."Analysis View"

OnUpdateEntriesForGLAccountOnAfterAnalysisViewGLQrySetFilters

[IntegrationEvent(False,False)]
local procedure OnUpdateEntriesForGLAccountOnAfterAnalysisViewGLQrySetFilters(var AnalysisViewSourceQry: Query "Analysis View Source", var AnalysisView: Record "Analysis View")

Parameters

Name Type Description
AnalysisViewSourceQry Query Microsoft.Finance.Analysis."Analysis View Source"
AnalysisView Table Microsoft.Finance.Analysis."Analysis View"

OnUpdateAnalysisViewBudgetEntryOnAfterTempAnalysisViewBudgetEntryAssignment

[IntegrationEvent(False,False)]
local procedure OnUpdateAnalysisViewBudgetEntryOnAfterTempAnalysisViewBudgetEntryAssignment(var TempAnalysisViewBudgetEntry: Record "Analysis View Budget Entry", var AnalysisView: Record "Analysis View", var GLBudgetEntry: Record "G/L Budget Entry", DimValue1: Code[20], DimValue2: Code[20], DimValue3: Code[20], DimValue4: Code[20])

Parameters

Name Type Description
TempAnalysisViewBudgetEntry Table Microsoft.Finance.Analysis."Analysis View Budget Entry"
AnalysisView Table Microsoft.Finance.Analysis."Analysis View"
GLBudgetEntry Table Microsoft.Finance.GeneralLedger.Budget."G/L Budget Entry"
DimValue1 Code[20]
DimValue2 Code[20]
DimValue3 Code[20]
DimValue4 Code[20]

OnAfterCalculatePeriodStart

[IntegrationEvent(False,False)]
local procedure OnAfterCalculatePeriodStart(var AnalysisView: Record "Analysis View", DateCompression: Integer, var AccountingPeriod: Record "Accounting Period", var PostingDate: Date, var PrevCalculatedPostingDate: Date, PrevPostingDate: Date)

Parameters

Name Type Description
AnalysisView Table Microsoft.Finance.Analysis."Analysis View"
DateCompression Integer
AccountingPeriod Table Microsoft.Foundation.Period."Accounting Period"
PostingDate Date
PrevCalculatedPostingDate Date
PrevPostingDate Date

OnBeforeUpdateOneUpdateEntries

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateOneUpdateEntries(var NewAnalysisView: Record "Analysis View", Which: Option, var LastReportedEntryNo: Integer, var TableID: Integer, var Supproted: Boolean)

Parameters

Name Type Description
NewAnalysisView Table Microsoft.Finance.Analysis."Analysis View"
Which Option
LastReportedEntryNo Integer
TableID Integer
Supproted Boolean

OnGetEntriesForUpdate

[IntegrationEvent(False,False)]
local procedure OnGetEntriesForUpdate(var AnalysisView: Record "Analysis View", var UpdAnalysisViewEntryBuffer: Record "Upd Analysis View Entry Buffer" temporary)

Parameters

Name Type Description
AnalysisView Table Microsoft.Finance.Analysis."Analysis View"
UpdAnalysisViewEntryBuffer Table Microsoft.Finance.Analysis."Upd Analysis View Entry Buffer"

OnUpdateAllOnAfterFilterAnalysisView2

[IntegrationEvent(False,False)]
local procedure OnUpdateAllOnAfterFilterAnalysisView2(var AnalysisView: Record "Analysis View", DirectlyFromPosting: Boolean, LastBudgetEntryNo: Integer)

Parameters

Name Type Description
AnalysisView Table Microsoft.Finance.Analysis."Analysis View"
DirectlyFromPosting Boolean
LastBudgetEntryNo Integer

OnUpdateAnalysisViewEntryOnAfterTempAnalysisViewEntryAssignment

[IntegrationEvent(False,False)]
local procedure OnUpdateAnalysisViewEntryOnAfterTempAnalysisViewEntryAssignment(var TempAnalysisViewEntry: Record "Analysis View Entry" temporary, var AnalysisView: Record "Analysis View", var GLEntry: Record "G/L Entry", var UpdAnalysisViewEntryBuffer: Record "Upd Analysis View Entry Buffer" temporary)

Parameters

Name Type Description
TempAnalysisViewEntry Table Microsoft.Finance.Analysis."Analysis View Entry"
AnalysisView Table Microsoft.Finance.Analysis."Analysis View"
GLEntry Table Microsoft.Finance.GeneralLedger.Ledger."G/L Entry"
UpdAnalysisViewEntryBuffer Table Microsoft.Finance.Analysis."Upd Analysis View Entry Buffer"

See also