Tuto WINDEV 25
Part 4: Full application with data 189 In this code, COMBO_PaymentMode is the name of the Combo Box control that was just created. The value of this control is associated with the ParamPaymentModeID parameter expected by the query. 3. Close the code editor. 4. Save the window by clicking among the quick access buttons. ▶ We are now going to check how the first two parameters are passed: 1. Click among the quick access buttons. 2. Select the "Finding orders" tab pane if necessary. 3. Change the order status with the Radio Button control and modify the payment mode with the Combo Box control, then click "Find". The content of Table control is modified. 4. Close the test window. Last parameter: Order date The last query parameter corresponds to the date of orders taken into account. The user must be able to type a date interval. To do so, we are going to use a control template. Remark A control template is a specific window containing different controls. All types of controls can be included in this window. A control template is a file whose extension is "WDT". The main benefit of a control template is the re-usability. A control template found in a project can be re-used in any project window. Furthermore, the control templates can be overloaded: code can be added, the controls can be moved in the window that is using the control template. The controls can also be modified.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==