Tuto WEBDEV 25
146 Part 4: Internet site with data ▶ To create the Static control containing the product identifier: 1. On the "Creation" pane, in the "Usual controls" group, expand "Text" and select "Simple static". 2. Click the Looper control, to the right of the Image control to create the Static control. 3. Display the description of Static control to modify its characteristics (double-click the control). 4. This control is named "STC_Product". 5. Validate the control description window. We are going to create attributes to fill the controls in the Looper control and to modify their characteristics on each row. Remark A Looper control includes: • controls, that are repeated on each row. • attributes. An attribute is used to define the control characteristic that will be modified on each row. For example, if the value and the color of PRICE control must change on each row, you will have to define two different attributes for the same control. ▶ To create attributes: 1. Display the description window of Looper control (double-click the control). 2. In the top section of window, no attribute is created. We are going to define 3 attributes (one for each looper control). 3. Create a new attribute by clicking the "New" button: • Rename the attribute to "ATT_Image". • Select the "IMG_Visual" control. • Select the "Value" property. Indeed, the image value will be modified for each row. 4. Create a new attribute by clicking the "New" button: • Rename the attribute to ’ATT_Link’. • Select the "LINK_View_Product" control. • Select the "Caption" property. Indeed, the control caption will be modified on each row.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==