Dynamics AX has a very useful feature that allows you to save the latest user choices for forms, reports, and other objects. This feature is already implemented across a number of standard forms, reports, periodic jobs, and other objects, which require user input. When developing a new functionality for Dynamics AX, it is recommended that you keep it that way.
In this recipe, we will demonstrate how to save the latest user selections. In order to make it as simple as possible, we will use the existing filter on the Bank statement form, which can be opened by navigating to Cash and bank management | Common | Bank accounts, selecting any bank account, and then clicking on the Account reconciliation button in the action pane. This form contains one filter called View, which allows you to display bank statements based on their status. We will enhance this form so the system will remember the latest user's choice when the form is opened next time.