OnAction (Action) Trigger
Version: Available or changed with runtime version 1.0.
Runs when a user selects an action on a page.
Syntax
trigger OnAction()
begin
...
end;
Remarks
This is called after the action properties, such as the RunObject Property, are invoked.
You typically use the RunObject Property to run objects such as pages, reports, codeunits, and queries from an action. You can use the OnAction trigger when you require more processing than the RunObject Property can support, such as filtering data before a page is displayed or writing to the database.
Note
The OnAction trigger is not used on Role Center pages. If you add AL code to the trigger, the Role Center page will compile, but the AL code will be ignored at runtime.
See Also
Get Started with AL
Developing Extensions
RunObject Property
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應