OnInit (Page) Trigger
Version: Available or changed with runtime version 1.0.
Initializes the user-defined variables on the page.
Syntax
trigger OnInit()
begin
...
end;
Remarks
The AL code in this trigger is run immediately after the variables are cleared and the page is loaded. This trigger cannot be used to access the controls on the page. You can change properties that are dynamic, including those properties that can only be changed when the page is opened.
After this trigger is executed, the OnOpenPage Trigger for pages is called. If an error occurs in the trigger code, then the page is closed.
Note
The OnInit trigger does not support calls to control add-in methods and properties because the trigger is invoked before the page is instantiated.
See Also
Get Started with AL
Developing Extensions
OnInit (Request Page) Trigger
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈