KVSMEDApplicationLogLib#
Procedures#
InsertApplicationLog(Code[20], Code[20], Integer, Enum KVSMEDLogStatus, Integer, Code[20], Integer, Option, Code[20], Code[20], RecordId) : Boolean#
procedure InsertApplicationLog(var LogNo: Code[20]; BatchTypeCode: Code[20]; TableID: Integer; KVSMEDLogStatus: Enum "KVSMEDLogStatus"; DocType: Integer; DocNo: Code[20]; DocLineNo: Integer; DestType: Option; DestCode: Code[20]; SalesPerson: Code[20]; RecID: RecordId): Boolean
CreateAppLogEntry(Code[20], Integer, Integer, Enum KVSMEDLogStatus, Integer, Code[20], Integer, Text) : Boolean#
Summary: Creates a new Application Log Entry based on Document No. and Document Line Type
procedure CreateAppLogEntry(LogNo: Code[20]; No: Integer; TableID: Integer; KVSMEDLogStatus: Enum "KVSMEDLogStatus"; ErrorDocType: Integer; ErrorDocNo: Code[20]; ErrorDocLineNo: Integer; ErrorText: Text): Boolean
Parameters:
LogNo
:No
:TableID
:KVSMEDLogStatus
:ErrorDocType
:ErrorDocNo
:ErrorDocLineNo
:ErrorText
:
Returns:
DeleteAppLogEntry(Integer, Code[20], Code[20]) :#
Summary: Deletes Application Log Entry filtered by Document Type, Document No. and Log No.
procedure DeleteAppLogEntry(DocType: Integer; DocNo: Code[20]; LogNo: Code[20]):
Parameters:
DocType
:DocNo
:LogNo
:
Returns:
GetLogNo(Code[20]) :#
Summary: Gets next No. for log out of no series. The result is set into global variable G_EntryNo
procedure GetLogNo(var LogNo: Code[20]):
Parameters:
LogNo
:
Returns:
GetNextNoForLogNo(Code[20], Integer) : Boolean#
Summary: Gets next Application Log Number. The result is set into global variable G_EntryNo.
procedure GetNextNoForLogNo(LogNo: Code[20]; var NewNextNo: Integer): Boolean
Parameters:
LogNo
:NewNextNo
:
Returns: true/false
GetLogTypeCode(Code[20], Option, Integer, Integer) : Boolean#
Summary: Gets LogTypeCode out of ApplicationLogBatchType filtered by ObjectType, ObjectNo, DocType.
procedure GetLogTypeCode(var LogTypeCode: Code[20]; ObjectType: Option; ObjectNo: Integer; DocType: Integer): Boolean
Parameters:
LogTypeCode
:ObjectType
:ObjectNo
:DocType
:
Returns: true/false
GetEntryNo() : Integer#
Summary: Gets global entry no. out of global variable.
procedure GetEntryNo(): Integer
Parameters:
- ``````:
Returns: Global Entry No.
SetFinalStatusForLogNo(Code[20], Integer) : Boolean#
Summary: Sets final status for log (Notes / Processed).
procedure SetFinalStatusForLogNo(LogNo: Code[20]; No: Integer): Boolean
Parameters:
LogNo, No,No
:No
:
Returns: true/false
SetSkipCommit() :#
Summary: Sets global variable to true.
procedure SetSkipCommit():
Parameters:
- ``````:
Returns:
Events#
OnCreateAppLogOnSourceTableCaseElse(Code[20], Code[20], Integer, Enum KVSMEDLogStatus, Integer, Code[20], Integer, Option, Code[20], Code[20], RecordId) :#
[IntegrationEvent(false, false)]
local procedure OnCreateAppLogOnSourceTableCaseElse(var LogNoVar: Code[20]; BatchTypeCodePar: Code[20]; TableIDPar: Integer; StatusPar: Enum "KVSMEDLogStatus"; DocTypePar: Integer; DocNoPar: Code[20]; DocLineNoPar: Integer; DestTypePar: Option; DestCodePar: Code[20]; SalesPersonPar: Code[20]; RecIDPar: RecordId):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMEDApplicationLogLib", 'OnCreateAppLogOnSourceTableCaseElse', '', false, false)]
local procedure DoSomethingOnCreateAppLogOnSourceTableCaseElse(var LogNoVar: Code[20]; BatchTypeCodePar: Code[20]; TableIDPar: Integer; StatusPar: Enum "KVSMEDLogStatus"; DocTypePar: Integer; DocNoPar: Code[20]; DocLineNoPar: Integer; DestTypePar: Option; DestCodePar: Code[20]; SalesPersonPar: Code[20]; RecIDPar: RecordId)
begin
end;