ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Component / External component
  • Overview
  • How to?
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
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 different 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. You can also use InComponentMode, InJavaMode, InPHPMode, InWebMode, etc.
  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 configuration creation wizard:
    • 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 include all the elements required 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.
Remarks:
  • 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. The project creation wizard allows you to choose 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…
Comments
Click [Add] to post a comment

Last update: 02/20/2024

Send a report | Local help