Skip to main content

X2 to X3 – Transition Guide

X2 to X3 – Transition Guide for iX Developer

iX2_to_iX3.svg

Follow this transition guide to ensure a smooth and secure transition from iX Developer 2 to iX Developer 3 on Beijer Electronics X3 HMI panels.

. Prerequisites
  • Development PC

  • X2 HMI panel

  • X3 HMI panel

  • iX Developer 2 license (also valid for iX Developer 3)

Procedure. Instructions
  1. Review the Modified Features in iX Developer 3 chapter to understand changes and evaluate their impact on your project.

  2. Confirm that your driver is supported in iX Developer 3 by checking Driver List X3 HMI Panels. If your driver is not listed here, Contact Beijer Electronics.

  3. Connect the X2 HMI panel to the development PC.

  4. If you are using an older version of iX Developer (before 2.53), follow these steps:

    1. Create a project backup. Refer to Back Up the Project for instructions.

    2. Download and install iX Developer 2.53 from the Beijer Electronics SmartStore.

  5. Open your project in iX Developer 2.53.

  6. Build the project and resolve any build errors that appear.

  7. Download the project to the X2 HMI panel. Refer to the Download chapter in the iX Developer 2.53 Reference Manual for download instructions.

  8. Verify the project functionality on the HMI panel.

  9. Save the project.

  10. Create a project backup. Refer to Back Up the Project for instructions.

  11. Quit iX Developer.

  12. Connect the X3 HMI panel to the development PC.

  13. Download and install iX Developer 3 from the Beijer Electronics SmartStore.

  14. Open your project in iX Developer 3.

    Important

    When opening your project in iX Developer 3, a dialog will provide key information and recommendations for project conversion. Read this carefully and follow the instructions.

  15. Build the project and address any build errors using the How to Resolve Transition Build Errors guide.

  16. Transfer the project to the X3 HMI panel. Refer to the Transfer the iX App to the HMI Panel chapter in the iX Developer 3 User Manual for transfer instructions.

  17. Verify the project functionality in the iX App on the HMI panel.

    Tip

    In some cases when the transferred project is run on the HMI panel, the project won't open and an Access Denied dialog appears. See Troubleshooting for information on how to solve this issue.

  18. Save the project.

Now your project is fully compatible with iX Developer 3.

Tip

For additional help, consult the FAQ, visit the Connected forum, or contact Beijer Electronics support.

Some features from earlier versions are not included in iX Developer 3 at launch. In most cases, alternative features are available. To help you understand how these changes affect your project, the features are grouped into four transition categories:

. Transition categories:
  • Easy = You can switch to an alternative feature with little or no effort.

  • Medium = Some effort is required to switch. Review the alternatives before transition.

  • Hard = Requires advanced knowledge. Carefully review the alternative before transition.

  • Wait = No alternative is currently available. If your project depends on this feature, wait for a future update.

Review each modified feature in the table below. Identify which changes affect your project, and decide whether to make the transition now or wait for a future version.

Transition category

Modified feature

Description

Alternative

Easy

Media player object

Removed.

Use the Web Browser Object instead.

PDF viewer object

SMS and Printer functionality

Removed in iX Developer 2.52.

Save to USB, SD card or HMI panel. Then use e-mail if required.

System settings

In iX Developer 3, you cannot configure system settings directly as in previous versions. Instead, you define System Requirements that are evaluated and then reserved by the OS3 operating system. If the requirements cannot be fulfilled, the iX App will not start.

Define the System Requirements.

USB transfer

App transfer via USB is no longer supported.

Use Ethernet transfer instead. See Transfer the iX App to the HMI Panel.

Virtual keyboards for non-latin languages

Will be included in future iX Developer updates.

Use a Latin virtual keyboard or an external keyboard for now.

Medium

QR-code object

Removed due to outdated libraries.

Use NuGet packages. See NuGet Packages.

Hard

DLL compatibility (third-party controls)

DLL-based support has been removed.

Use NuGet packages. See NuGet Packages.

Web server features

  • JavaScript SDK is deprecated.

  • REST APIs are not fully backward compatible.

  • HTTPS is required.

  • Local port 7001 is fixed.

For more information, see Web Server.

Run action

Removed due to security and architectural reasons.

Use Scripts instead.

FTP

Removed due to security and architectural reasons.

Use Transfer Client CLI instead.

Wait

Watchdog

Not available.

Alternative will be introduced in future OS3 updates.

PC runtime

Will be included in future iX Developer updates.

-

Support for certain system tags

Will be included in future iX Developer updates.

The following system tags are not yet implemented:

  • ImageVersion (2x: Windows CE Image Version)

  • Internal Temperature

  • Flash Memory Life Time Used

  • Flash Memory EOL Info

  • Power LED Blink Frequency

  • Power LED Blue Intensity

  • Power LED Green Intensity

  • Power LED Red Intensity

  • LedCount

-

Build error

Action

CS0246: The type or namespace name "SQLiteConnection" could not be found (are you missing a using directive or assemble refrence?)

See Update SQLite Code.

CS0246: The type or namespace name "SQLiteException" could not be found (are you missing a using directive or assemble refrence?)

CS0246: The type or namespace name "SQLiteDataAdapter" could not be found (are you missing a using directive or assemble refrence?)

Control System.Windows.Forms.DataGrid on screen Screen5 is not supported. Double-click to suppress build error.

See Replace Unsupported DataGridView Control

Control System.Windows.Forms.StatusBar on screen Screen5 is not supported. Double-click to suppress build error.

Control System.Windows.Forms.ToolBar on screen Screen5 is not supported. Double-click to suppress build error.

Ftp is no longer supported due to security considerations. Double-click to suppress build error.

See Modified Features in iX Developer 3.

Key beep is no longer supported. Double-click to suppress build error.

See Modified Features in iX Developer 3.

Password for project transfer is no longer needed but a password for the project zip archive can be used. Double-click to suppress build error.

See Transfer the iX App to the HMI Panel.

Pin code is no longer supported. Double-click to suppress build error.

The Service Menu in iX Runtime in iX Developer 2, where the PIN code was used, has moved to OS3. Refer to the OS3 User Guide for more information.

Printing is no longer supported. Double-click to suppress build error.

See Modified Features in iX Developer 3.

System settings are replaced with System Requirements, and must be manually migrated. Please consult the documentation before suppressing the build error. Double-click to show settings.

See Migrate System Settings from iX2 to iX3.

The keyboard culture used is unsupported and US will be used instead. Support for more cultures will be added in the future. Double-click to suppress build error.

See Modified Features in iX Developer 3.

The report DatabaseReport is in .xls format, please save it as .xlsx instead. Any SQL queries in your report also need to be moved to the Queries section. See Reference Manual for more information.

See Migrate Reports from iX2 to iX3.

The report Report1 is in .xls format, please save it as .xlsx instead. Any SQL queries in your report also need to be moved to the Queries section. See Reference Manual for more information.

See Migrate Reports from iX2 to iX3.

Topmost window is no longer supported. Double-click to suppress build error.

Unsupported parameter action 'Printer' used by Print Screen action in screen: Screen1. Replace it with 'File' parameter action.

VNC is no longer supported due to security reasons. A potential replacement will be included in a future release as part of OS3 platform. Double-click to suppress build error.

See Modified Features in iX Developer 3.

Virtual keyboard is now always enabled. Double-click to suppress build error.

Watchdog is no longer supported. Double-click to suppress build error.

See Modified Features in iX Developer 3.

When converting a iX Developer project from iX2 to iX3, you need to manually migrate the system settings.

Procedure. Instructions
  1. After opening and running the project in iX Developer 3 for the first time, the following Build Error appears:

    System settings are replaced with System Requirements, and must be manually migrated. Please consult the documentation before suppressing the build error. Double-click to show settings.

  2. Double-click the build error message to open the System Requirements.

    Alternatively, navigate to Project > Settings > System Requirements.

  3. Click Import old System Settings to import the settings from the iX Developer 2.52 project.

  4. If some settings are not imported, click Add to manually configure them.

Replace Unsupported DataGridView Control

To fix the build error:

Control System.Windows.Forms.DataGrid on screen Screen5 is not supported. Double-click to suppress build error.

you must replace the old DataGridView control with a new one.

Procedure. Instructions
  1. Go to Home and expand the Objects group

  2. Click Add Control.

  3. Deselect DataGridView and click OK.

  4. Reload the project

  5. Open Add Control again and add DataGridView.

  6. Update the script to reference the new DataGridView.

  1. Open the Project Folder and navigate to Reports > Template and open the .xls template files.

  2. In Excel, select File > Save As and change the file extensions to .xlsx.

  3. In Excel, check if there is sheet named <#Config>.

    image2.png

    If not, go to step 7.

    If yes, continue with step 4:

  4. Open the project in iX Developer 3.

  5. Go to the Reports Configuration Page and select the Queries tab.

  6. Add all the queries from the <#Config> sheet manually, as shown in the example screenshot.

    image3.png
  7. In iX Developer 3, go to the Reports Configuration Page and select the Reports tab.

  8. Replace the existing .xls files with the updated .xlsx files in the Reports list.

This guide explains how to update code from System.Data.SQLite to Microsoft.Data.Sqlite.

Original Code: System.Data.SQLite

The example below uses System.Data.SQLite to retrieve data from a table:

// System.Data.SQLite
public DataTable Select(string tablename)
{
    DataTable dt = new DataTable();

    if (ConnectToDataBase())
    {
        try
        {
            string Commandstring = "SELECT * FROM " + tablename + " ";

            SQLiteDataAdapter da = new SQLiteDataAdapter(Commandstring, m_SQLiteConnection);
            dt.Rows.Clear();
            dt.Columns.Clear();
            da.Fill(dt);
            da.Dispose();
        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.Message);
            DisconnectFromDataBase();
            return null;
        }
    }

    DisconnectFromDataBase();
    return dt;
}
Procedure. Key steps
  1. Connect to the database (ConnectToDataBase).

  2. Use SQLiteDataAdapter to execute the query and fill the DataTable.

  3. Handle errors with a try-catch block.

  4. Disconnect from the database after use.

Updated Code: Microsoft.Data.Sqlite

This example uses Microsoft.Data.Sqlite for the same operation:

// Microsoft.Data.Sqlite
public DataTable Select(string tablename)
{
    DataTable dt = new DataTable();

    if (ConnectToDataBase())
    {
        try
        {
            string commandString = $"SELECT * FROM {tablename}";

            using (var command = new SqliteCommand(commandString, m_SQLiteConnection))
            using (var reader = command.ExecuteReader())
            {
                dt.Load(reader);
            }
        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.Message);
            DisconnectFromDataBase();
            return null;
        }
    }

    DisconnectFromDataBase();
    return dt;
}
Procedure. Key updates
  1. Use string interpolation ($"") to build SQL queries.

  2. Replace SQLiteDataAdapter with SqliteCommand.

  3. Use ExecuteReader and dt.Load(reader) to load data.

  4. Manage resources with using statements.

Problem

Reason

Solution

Access Denied dialog appears when opening the app on the HMI panel.

OS3 environment is not prepared.

Ensure all necessary changes are completed before deploying your application in an OS3-enabled environment. Refer to X2 to X3 – Transition Guide for iX Developer.

File paths in scripts are not updated.

Modify your existing iX scripts to accommodate the updated file access permissions. Writing to the installation folder of your application is no longer permitted.

Save locations are incorrect.

If your scripts save files to the installation folder, update them to use a writable location. Use the predefined variable GlobalsBase.Environment.Application.CommonApplicationData to retrieve the correct path.