Tuto WEBDEV 25

118 Part 3: Intranet site with data ▶ Enter the WLanguage code associated with the "Cancel" Button control: 1. Select the control and press F2. The different events associated with the control are displayed. 2. Enter the following WLanguage code in the "Click (Server)" event of the Button control: PageDisplay(PreviousPage()) 3.  Let’s study this code: • PageDisplay is used to display a specific page. • PreviousPage is used to find out the name of previous page. • This line of code is used to display the previous page 4. Save the modifications ( or Ctrl + S). 5. Close the code editor. Remark By default, any Button control created in a page sends the value of page controls to the server ("submit" button). This is the most common case. Two other options are available: • Reinitialize the page controls. • No action. This mode must be used when the button must have a "Browser" action only. These options can be selected in the "General" tab of the Button control description window , option "During the action". Validate button ▶ To create the "Validate" Button control: 1. On the "Creation" pane, in the "Usual controls" group, click "Button". 2.  Then, click on the left of "CANCEL" button to create the new control. 3. Modify the control caption: the new caption is "Validate".

RkJQdWJsaXNoZXIy NDQ0OA==