This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Component / External component
  • Overview
  • How to?
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
External components are a remarkably useful tool for development teams. The ability to reuse secure code is a major advantage.
The differences between several target platforms can be automatically taken into account: Windows, Internet-INTRANET, mobile applications, etc.
These external components can contain windows or pages and can be used in WINDEV, WEBDEV and WINDEV Mobile projects.
Any differences in the code or UI are automatically taken into account.
At runtime, the external component will adapt to the target platform.
How to?
You can create projects common to different platforms: WINDEV, WEBDEV and WINDEV Mobile. These projects can contain WINDEV windows, WINDEV Mobile windows and/or WEBDEV pages.
Creating a cross-platform external component from a common project is very easy:
  1. Create the various elements of your Component (windows, pages, etc.).
    Reminder: The COMPILE IF or IF ExecutionTarget statements make processes usable regardless of the environment, platform or type of generation. It is also possible to use the InComponentMode, InJavaMode, InPHPMode, InWebMode, etc. functions.
  2. Create a "Component" project configuration: on the "Project" tab, in the "Project configuration" group, expand "New configuration" and select "External component (WDK)".
  3. In the wizard for creating a configuration:
    • In the "Configuration compatibility" step, specify:
      • The type of configuration in which the component can be used. You can select multiple configurations. For example, the component can be used in WINDEV and iOS applications.
      • The platforms for which compilation errors must be enabled.
    • In the next step, select the elements that will be integrated into the project configuration. You can integrate all the elements you need for your Component (windows, pages, procedures, etc.).
    • In the next step, select the internal components to be integrated (if necessary).
  4. Validate. The new project configuration is created. You can generate the external component. For more details, see Creating and generating an external component.
  • If you are using independent versions of WINDEV, WEBDEV or WINDEV Mobile, some platform combinations are not available.
  • You can also create a common "Component" project. Project creation wizard defines the platforms in which the Component can be used..
  • Caution: If you use a WINDEV-WEBDEV-WINDEV Mobile integrated version to create a component that can be used in Android and/or iOS, you must create an "Android" and an "iOS" configuration in the "Component" project. These configurations will allow you to create mobile windows. These windows (associated with the "Android" or "iOS" configurations) must also be associated with the "Component" project configuration.
  • Generating a cross-platform component creates a single set of files (WDK, WDI, WDZ) that can be imported into the WINDEV, WEBDEV and WINDEV Mobile projects corresponding to the target platforms.
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment

Last update: 04/04/2024

Send a report | Local help