Tuto WEBDEV 25

54 Part 1: Discovering WEBDEV 5.  Let’s study this code: • PageToFile is used to retrieve the content of the edit controls in the page in order to transfer it to the data file. • HAdd is used to write the transferred data into the data file. • Info is used to display a message. 6. Save (Ctrl + S) and close the code editor (cross in the top right corner). Page test ▶ Run the test of this page: 1. Click the icon among the quick access buttons. 2.  The page is displayed in a browser. 3.  Type the following data: • Last name: Doe • First name: John • Address: Flower Rd, 75000 Paris • Email: john.doe@atandt.com • Login: john • Password: john 4. Click on "SAVE". The browser displays a message to confirm that the record has been added! 5. Close the browser. Viewing the data typed WEBDEV proposes a tool used to see the content of data files while developing the site (when the viewing pages have not been created yet for example). This tool is named WDMap. We are going to use it in order to check whether the information typed was saved. ▶ To start WDMap: 1.  In the ribbon, on the "Tools" pane, in the "Database" group, click "WDMap". 2. Select the "Registration" data file. The data file content is displayed. 3. We can find the data typed. 4. Close WDMap ("Close" button).

RkJQdWJsaXNoZXIy NDQ0OA==