Summary

Completed

In this module, you learned how to create wizard pages to give users the ability to enter configuration and setup data.

To create a wizard page, you can use the regular tpage snippet, but you need to set the PageType to NavigatePage. A wizard is a collection of steps that a user has to go through. For each step, you need to create a group in the page where the Visible property is handled by a global variable. Depending on the position in the wizards, these variables are set to true or false, which also happens to the actions on a wizard page. These actions are controlled by global Boolean variables that enable or disable the buttons.

The source table of a wizard page is set to temporary, and the actual values are stored in the database only when a user selects the Finish button. You can use the TransferFields function to copy values from temporary tables to an actual table.

A wizard page is typically launched by using the Assisted Setup feature in Business Central. Assisted Setup guides users in the setup of Business Central. To integrate with the Assisted Setup feature, you need to subscribe to the OnRegisterAssistedSetup function in the Assisted Setup codeunit (3725).