If our modification creates a new table that will contain posted data and the records contain both Document No. and Posting Date fields, we can include this new table in the Navigate function.
The AL Code for Navigate functionality based on Posting Date and Document No. is found in the FindRecords and FindExtRecords functions of page 344—Navigate. The following screenshot shows the segment of the Navigate CASE statement code for the CheckLedgerEntry table:
The code checks READPERMISSION. If that permission is enabled for this table, then the appropriate filtering is applied. Next, there is a call to the InsertIntoDocEntry function, which fills in the temporary table that is displayed in the Navigate page. If we wish to add a new table to the Navigate function, we must replicate this functionality for our new table.
In addition, we must add the code that will call up the appropriate page to display the records that Navigate finds. This code...