Tuto WEBDEV 25
Part 5: Let’s continue the development 191 ▶ Modify the caption of Combo Box control (press Enter). The new caption is "Payment mode". ▶ We are now going to pass the value selected in the Combo Box control in parameter to the query: 1. Display the events associated with theTable control: select the Table control and press F2. 2. In the "Initializing" event of the Table control, replace the line: //MySource.ParamPaymentModeID = 1 by: MySource.ParamPaymentModeID = COMBO_PaymentMode 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 page ( or Ctrl + S). ▶ We are now going to check how the parameters are passed: 1. Click among the quick access buttons. 2. Type the name "ADDAMS". 3. Change the status of orders via the radio button and modify the payment mode via the Combo Box control, then click the "Find" button. The content of Table control is modified. 4. Close the browser.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==