New Page wizard

When we click on the New button or F3 or Edit | New, we will bring up the New Page wizard, as you can see in the following screenshot:

We can proceed to the Page Designer with the Page Type property set to Card and no Source Table defined by clicking on OK with Create blank page selected, but not entering a Table name or number, or we could enter a Table name or number, select Create a page using a wizard, and select Page Type. This will take us to the Page Wizard with the Page Type property set to our choice and the Source Table assigned to the table we entered. It's almost always less effort to use the wizard to create at least a rough version of a page design, and then modify the generated object structure and code to get the ultimate desired result.

To use the Page Wizard, first we enter the name or number of the table to which we want our page to be bound. Then, we choose what Page Type we want to create--Card, List, RoleCenter, CardPart, ListPart, Document, Worksheet, ListPlus, ConfirmationDialog, StandardDialog, or NavigatePage. The subsequent steps that the Page Wizard will take us through, depends on the Page Type chosen. The following chart shows which options are available for each of the Page Types through the use of the Page Wizard:

To see what the Page Wizard looks like, we'll step through an example definition of a Card page based on our Table 50000 - Radio Show. The goal of this example is only to illustrate the Page wizard process; we aren't creating a page that we'll keep for our Radio Show application.

Invoke the Page Designer Wizard by clicking on the New button with the Page button highlighted. Enter 50000 in the Table field, select the Create a page using a wizard: option, select Card, and click on the OK button. The next screen allows us to define FastTabs. It displays, with a default first FastTab titled General. For our example, we'll add two more FastTabs: Tab 1 and Tab 2:

We will click on the Next button and proceed to the screen to assign fields from our bound table to each of the individual tabs. The single arrow buttons move one field either onto or off of the selected tab. The double arrow buttons move all the fields in the chosen direction. In the following screenshot, five fields have been selected and assigned to the General tab:

We can move fields back and forth between the chosen and available sets, as well as reposition them in Field Order until we are satisfied with the result. If we realize that we should have defined our tabs differently, we can click on the Back button and return to the FastTab definition screen to revise the tab assignments.

After all the desired fields have been assigned to the appropriate tab in the desired order, we will click on Next and move on to the screen that allows us to assign FactBoxes to the page. Many different page components are made available by the Wizard for assignment as FactBoxes.

As we see in the following screenshot, many of the choices are not appropriate for use in most pages. We can only select previously created page parts for FactBoxes. This leads to an important concept.

Even though we can add component parts later, it's good practice to plan our page design layout ahead of time and construct the component parts first (even if we must flesh them out or modify them later).

If we had not yet defined the FactBoxes for our current page design, we could pick other similar page components and then make the appropriate code replacement later, in the Page Designer:

Once we have done all the assignment work that is feasible within the Page Wizard, we will click on Finish. The Page Wizard will generate the object structure and C/AL code for our defined page and present the results to us in the Page Designer, as shown in the following screenshot:

We realize now that it would have been more efficient to have planned ahead and created our custom FactBox page parts before we used the Wizard to create our card page. The alternative we used was to simply add a couple of FactBox page parts as place holders that we can replace later. This gives us the structure we want, and compensates for our lack of planning. We could wait and just add the FactBoxes later, but we wouldn't be taking  advantage of the help the Wizard can provide.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.222.47