Register your page to the framework
You can do this by looking for the
createPages method in the class. In the method, you will find a row that has been generated by the archetype. This row is responsible for registering the main page to the framework. Create a similar row to the one registering the recently completed page. Specify
welcomePage as the unique ID for the registered page. Later on, you can reference the page as follows:
This code snippet registers your page to the framework. The first parameter is a text value that is the unique page ID in the application. Specify any value here. The only constraint is that this value has to be a unique one throughout the whole application.
The second parameter is the UI class you use to display the page. In this case, since we have only one UI class in this application, we use this.
The third parameter is the class that creates the page. In this example, this is the class we created in the first paragraph.