December 2019
Beginner to intermediate
770 pages
16h 14m
English
Control add-ins are useful also for creating timer-based logic inside a Dynamics 365 Business Central page (which is called ping-pong logic) to execute business logic every N times.
In our AL project, we define our controladdin object as follows:
controladdin D365BCPingPong{ Scripts = 'Scripts/pingpong.js'; StartupScript = 'Scripts/start.js'; HorizontalShrink = true; HorizontalStretch = true; MinimumHeight = 1; MinimumWidth = 1; RequestedHeight = 1; RequestedWidth = 1; VerticalShrink = true; VerticalStretch = true; procedure SetTimerInterval(milliSeconds: Integer); procedure StartTimer(); procedure StopTimer(); event ControlAddInReady(); event PingPongError(); event TimerElapsed();}
The start.js file ...
Read now
Unlock full access