Tuto WEBDEV 25
328 Part 9: Useful features of WEBDEV Overview An internal component is a group of project elements. This group is used to: • organize a project, • share elements between different projects (mainly via the Source Code Manager). When an internal component is included in a project, all component elements are included in the project. The public elements can be handled in the editor directly. Furthermore, the internal component can be debugged from the project that is using it. The projects that use an internal component have access in the WEBDEV editor to the name of objects, procedures or methods made visible by the component creator. Creating a component is child’s play . How to proceed? Don’t change anything, create your pages, procedures, classes. Then, when it’s done, choose the option for creating a component and that’s it! An internal component can contain code, pages, an analysis, data files, etc. Step by step Step 1: Creating an internal component We are going to create an internal component used to subscribe and unsubscribe to a newsletter in a Web site. This component includes: • a page, used to see the list of persons who subscribed to the newsletter, • a Web control template that contains the different controls (edit of email address, validation button, ...), • an analysis describing the data file of subscribers. To avoid having to develop the code required for the component to operate, all necessary elements have been grouped in a project named "WW_Internal_Component". We will be using this project to create our internal component. A new project will be created later to use this internal component. ▶ To open the example project: 1. Display the home page if necessary (Ctrl + <). 2. In the home page, click "Tutorial" and select "Internal Component (Exercise)". 3. The project is loaded.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==