Book Image

Programming Microsoft Dynamics??? NAV 2015

Book Image

Programming Microsoft Dynamics??? NAV 2015

Overview of this book

Table of Contents (19 chapters)
Programming Microsoft Dynamics™ NAV 2015
Credits
Foreword
About the Authors
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Page components


All pages are made up of certain common components. The basic elements of a page object are the page triggers, page properties, controls, control triggers, and control properties.

Page Triggers

The following screenshot shows the page triggers. The Help section Page and Action Triggers provides good general guidance to the event which causes each page trigger to fire. Note that the OnQueryClosePage trigger isn't related to any Query object action.

In general, according to best practices, we should minimize the C/AL code placed in Page triggers, putting the code in a Table or Field trigger or calling a Codeunit Library function instead. However, many standard pages include a modest amount of code supporting page specific filter or display functions. When we develop a new page, it's always a good idea to look for similar pages in the standard product and be guided by how those pages operate internally. Sometimes special display requirements result in complex code being required...