ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] codeunit 6501 "Item Tracking Data Collection" OnSelectMultipleTrackingNoOnBeforePageRunModal

Open leegeurts opened this issue 5 years ago • 4 comments

Hello,

Is it possible to add the following Event:

   ItemTrackingSummaryForm.AutoSelectTrackingNo();

    Window.Close;

    // DINNL <<
    IsHandled := false;
    OnSelectMultipleTrackingNoOnBeforePageRunModal(DINIsHandled);
    if not IsHandled then
    // DINNL >>
    if not (ItemTrackingSummaryForm.RunModal = ACTION::LookupOK) then
        exit;
    ItemTrackingSummaryForm.GetSelected(TempEntrySummary);
    if TempEntrySummary.IsEmpty() then
        exit;

    // Swap sign on the selected entries if parent is a negative supply line
    if CurrentSignFactor > 0 then // Negative supply lines
        if TempEntrySummary.Find('-') then


[IntegrationEvent(false, false)]
local procedure OnSelectMultipleTrackingNoOnBeforePageRunModal(var IsHandled: Boolean)
begin
end;

leegeurts avatar Jul 28 '21 12:07 leegeurts

Please explain how you are going to us this event without any parameters except IsHandled?

AlexanderYakunin avatar Jul 29 '21 13:07 AlexanderYakunin

If we have a certain app installed we don't want that form to run. So we just check if our own app is active.

leegeurts avatar Jul 29 '21 13:07 leegeurts

In this case why don't you use event OnBeforeSelectMultipleTrackingNo in beginning of this procedure? Do you need to run all code before run page, I assume this is not needed in your case?

AlexanderYakunin avatar Jul 29 '21 13:07 AlexanderYakunin

We are going to check that. Please feel free to close this one in the meanwhile.

Thank you Alexander.

leegeurts avatar Jul 29 '21 13:07 leegeurts