diff --git a/samples/PageBackgroundTask.Currency/Factbox with repeater/CurrenciesPageExt.PageExt.al b/samples/PageBackgroundTask.Currency/Factbox with repeater/CurrenciesPageExt.PageExt.al index 5160215..f9c7fef 100644 --- a/samples/PageBackgroundTask.Currency/Factbox with repeater/CurrenciesPageExt.PageExt.al +++ b/samples/PageBackgroundTask.Currency/Factbox with repeater/CurrenciesPageExt.PageExt.al @@ -31,11 +31,6 @@ pageextension 50101 "Currencies PageExt" extends Currencies CurrenciesToRetrieve: Text; DemoAlCurrencySetup: Record "PBT Currency Sample Setup"; begin - if (PbtTaskId <> 0) then begin - // Reseting PbtTaskId to 0, to make sure that the completion trigger will not display data for the wrong record. - PbtTaskId := 0; - end; - CurrPage."Latest rates repeater".Page.ResetTempTable(Code); if (Code = '') then exit; @@ -57,7 +52,6 @@ pageextension 50101 "Currencies PageExt" extends Currencies // Testability OnBeforePageBackgroundTaskSchedule(PbtParameters); - // Default timeout is 2min, max is 10min. CurrPage.EnqueueBackgroundTask(PbtTaskId, Codeunit::CurrencyRetriever, PbtParameters, 100000, PageBackgroundTaskErrorLevel::Warning); end; diff --git a/samples/PageBackgroundTask.Currency/Factbox/LatestCurrencyRateFactbox.Page.al b/samples/PageBackgroundTask.Currency/Factbox/LatestCurrencyRateFactbox.Page.al index ea3a707..da126bd 100644 --- a/samples/PageBackgroundTask.Currency/Factbox/LatestCurrencyRateFactbox.Page.al +++ b/samples/PageBackgroundTask.Currency/Factbox/LatestCurrencyRateFactbox.Page.al @@ -62,7 +62,6 @@ page 50104 "Latest Rates Factbox" // Testability OnBeforePageBackgroundTaskSchedule(PbtParameters); - // Default timeout is 2min, max is 10min. CurrPage.EnqueueBackgroundTask(PbtTaskId, Codeunit::CurrencyRetriever, PbtParameters, 100000, PageBackgroundTaskErrorLevel::Warning); end; diff --git a/samples/PageBackgroundTask.Currency/RoleCenter/O365ActivitiesExtStockCur.PageExt.al b/samples/PageBackgroundTask.Currency/RoleCenter/O365ActivitiesExtStockCur.PageExt.al index 34df84f..b56c64a 100644 --- a/samples/PageBackgroundTask.Currency/RoleCenter/O365ActivitiesExtStockCur.PageExt.al +++ b/samples/PageBackgroundTask.Currency/RoleCenter/O365ActivitiesExtStockCur.PageExt.al @@ -54,7 +54,6 @@ pageextension 50100 "O365 Activities Ext Currency" extends "O365 Activities" // Testability OnBeforePageBackgroundTaskSchedule(PbtParameters); - // Default timeout is 2min, max is 10min. CurrPage.EnqueueBackgroundTask(PbtTaskId, Codeunit::CurrencyRetriever, PbtParameters, 100000, PageBackgroundTaskErrorLevel::Warning); end; end;