Tuto WEBDEV 25

222 Part 5: Let’s continue the development Opening the popup page The popup page for sending an email will be opened from the menu of "PAGE_List_of_products" page. ▶ Display the "PAGE_List_of_products" page: 1.  In the editor, in the page bar, expand "Popup pages". 2.  In the list that is displayed, click "PAGE_List_of_products". ▶ We will now create a Link control to send a suggestion: 1. On the "Creation" pane, in the "Usual controls" group, click "Link". 2.  Then, click the top section of the page (above the "Notifications" control): the Link control is created. 3. Modify its caption: "Send a suggestion" and validate. 4. Open the control description window (double-click the control). 5.  In the "Link action" area: • The type must correspond to "Run the browser click code only". • The "During the action" option must correspond to "Do not send anything to the server". 6. Validate the control description window. 7. Display the events associated with the Link control (F2). 8.  Type the following code in the browser click code: PopupDisplay(POPUP_NoName1) PopupDisplay is used to display the popup. Remark Why didn’t we open the popup from the menu found in the page template? The popup page that was created is linked to the "PAGE_List_of_products" page. It can only be used from this page. To use a popup from a page template, the popup must be created from the page template.

RkJQdWJsaXNoZXIy NDQ0OA==