Tuto WEBDEV 25

Part 5: Let’s continue the development 185 ▶ Before running the test, we are going to create a Button control to re-display the content of Table control according to the value selected in the Radio Button control: 1. Create a Button control: • on the "Creation" pane, in the "Usual controls" group, click . • then, click at the top right of the page. 2. Modify the control caption (press Enter on the keyboard). The new caption is "Find". 3. Modify the control style: • In the popup menu of control (right mouse click), select "Choose a WEBDEV style". • In the window that appears, select "Details (With background)". • Validate ("OK" button). 4. Resize the control if necessary: • select the control. • select "Adapt the size" from the popup menu. 5. Display the code associated with this control: press F2. 6. Write the following code in the "Click (server)" event: // Refreshes the display of Table control TableDisplay(TABLE_QRY_FindOrders, taInit) In this code, the taInit constant is used to re-run the "Initializing" event of the Table control (the event in which the parameters are passed to the query). 7. Close the code editor.

RkJQdWJsaXNoZXIy NDQ0OA==