Tuto WINDEV Mobile 25

194 Part 6: Windows Mobile application 3.  This analysis includes 3 data files: • A "Product" data file, which contains the product description: name, price, quantity, ... • A "Characteristic" data file, which contains the different product characteristics. For example, if the product is a tee-shirt, its characteristics will correspond to the size, the color, ... The "Characteristic" data file is therefore linked to the "Product" data file. • A "Store" data file, which contains the GPS coordinates of each store. 4. Close the data model editor (click the cross at the top right of editor). We are now going to develop our application. Displaying the list of products We are going to create a window used to list the different products. These products will be displayed in a "Table" control. Creating the window ▶ To create a new window: 1. Click among the quick access buttons. The window for creating a new element is displayed: click "Window" then "Window". 2.  In the wizard, display the "Standard" tab, choose "Blank" and validate. 3.  The window for saving an element is displayed. 4.  In the window that is displayed, type the window title: "List of products". The window name and location are automatically filled. Keep the default values and validate ("OK" button). 5.  The window is added to the project. Creating the Table control To display the list of products, we are going to use a "Table" control. The main information about the products will be displayed in this control. ▶ To create the "Table" control: 1. On the "Creation" pane, in the "Data" group, expand "Table" and select "Table (Vertical)".

RkJQdWJsaXNoZXIy NDQ0OA==