Adds C/AL code in triggers and user-defined functions. The trigger or function signature is displayed on a gray line in the C/AL Editor. You enter code for the trigger or function under the signature.

To open this window, on the Tools menu, choose Object Designer. In Object Designer, choose Table, Page, Report, Codeunit, Query or XMLport, choose the Design button and then on the View menu, choose C/AL Code.

The first column in the C/AL Editor displays breakpoints that are set on lines of code.

The second column in the C/AL Editor lets you expand or collapse a trigger or function.

The first trigger in the C/AL Editor is the Documentation trigger. You use the Documentation trigger to add notes about the code or to document changes that you make. Anything in the Documentation trigger is treated as a comment by the compiler.

See Also