Tuto WEBDEV 25
Part 5: Let’s continue the development 187 3. The Radio Button control is automatically created. Position this control above the Table control. ▶ We are now going to use the value selected in the Radio Button control to pass it to the query as parameter: 1. Display the events associated with theTable control: • Select the Table control. • Display the popup menu (right mouse click) and select "Code". 2. In the "Initializing" event of the Table control, replace the line: //MySource.ParamStatus = <Value of ParamStatus> by: MySource.ParamStatus = RADIO_Status In this code, RADIO_Status is the name of the Radio Button control that was just created. The value of this control is associated with the ParamStatus parameter expected by the query. 3. Close the code editor. ▶ We are now going to check how the first two parameters are passed: 1. Click among the quick access buttons. 2. Type the name "ADDAMS" and select "Pending". 3. Click "FIND": only the orders placed by the customer named ADDAMS and waiting for payment are listed.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==