ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Report 1003 - Existing Event "OnAfterOnPreDataItem"

Open AJasp opened this issue 5 years ago • 3 comments

Hi, the Event Request (#12089) inserted the event "OnAfterOnPreDataItem". According to my analysis, this is not called in the code. I would expect this here (After code line 118):

trigger OnPreDataItem() begin InvtPostToGL.SetRunOnlyCheck(false, true, true); TempCapValueEntry.DeleteAll(); OnAfterPostValueEntryToGLOnPreDataItem(PostValueEntryToGL, CompanyName); // missing event #5510 - begins after line 118 OnAfterOnPreDataItem(PostValueEntryToGL, CompanyName); end;

In line 118 the event "OnAfterPostValueEntryToGLOnPreDataItem(PostValueEntryToGL, CompanyName);" is fired - the name ob this Event might be a little bit confusing though, so I think it would make more sense to fire the Event "OnAfterOnPreDataItem" there.

Thanks!

AJasp avatar Sep 09 '21 15:09 AJasp

Hi, Is it ok for you to use existent event OnAfterPostValueEntryToGLOnPreDataItem instead of mentioned OnAfterOnPreDataItem?

Oleg-Romashkov avatar Sep 10 '21 10:09 Oleg-Romashkov

Hi, this is exactly what i am currently doing. Actually the report does not post anything (testreport) and therefore the name is a bit confusing. Was the event originally intended for report 1002?

AJasp avatar Sep 10 '21 11:09 AJasp

Ok then. Name OnAfterPostValueEntryToGLOnPreDataItem means event located in the end of OnPreDataItem of the PostValueEntryToGL dataitem. This is more meaningful in case of several dataitems and their OnPreDataItem triggers.

Oleg-Romashkov avatar Sep 10 '21 11:09 Oleg-Romashkov