Tuto WEBDEV 25
80 Part 2: My first database 4. The key definition is performed as follows: re-select the line of "Date" item to enable the description controls found on the right of screen. Then, simply specify the type of key used. In our case, the date is a key with duplicates. 5. You must also define the search direction of the key. The search direction is used to define the default sort for this item. In our case, when a browse is performed on this key, the default sort order will be "ascending". ▶ We are now going to create the "Status" item that is used to find out the order status. 1. Position the cursor on a new row in the array of items. Enter: • the name: Status • the caption: Order status • the type: Radio Button, List Box, Combo Box. In the window that appears, you can select the type of control created by default for this item. It will be a radio button in this case. Validate the window. 2. In the lower section of the screen, click the link to display the parameters of the control linked to the selected item. The information typed in the new window that is displayed will be automatically used when creating pages linked to the data file. You will find here the control type and the caption. We are going to type the different options corresponding to the order status in the "Content" tab: • Click the "Content" tab. • The option 1 corresponds to "Pending". Type "Pending" in the edit control found on the right of number 1. • Type "Validated" in the edit control found on the right of number 2. • Click on "+" to add a new option in the radio button. • Type "Canceled" instead of "Option 3".
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==