This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

Category: Development

VisionX Previewer automatic Feedback

With next VisionX Previewer release we'll have a really useful feature. It's an automatic feedback in case of unexpected application errors.

It's entirely possible that the app can't handle all use cases equally well. This can lead to overflows or even unexpected display issues. Usually your users won't report such problems if they don't persist. For such cases, we have implemented an automated feedback handling. Any unexpected issues are reported automatically. The application will send the internal error message and stack trace to the backend and a Screenshot of the current application if possible.

Examples:

Text overflow

Text overflow

Exceptions

Exceptions

This will be reported to the backend e.g.

Overflow feedback

Overflow feedback

Exceptions feedback

Exceptions feedback

No worries, it's just a demo screen. It doesn't look fancy. Just use VisionX to create your own cool screen.

Our feedback handling is not comparable with commercial products like Sentry.io which is the recommended system in the flutter docs. But it's simple, free and built-in. If you use our flutter client as base of your own application client it's also possible to use other reporting systems like Sentry.io without any limitations.

We always try to keep things simple for you!

VisionX Previewer app 3.3.0 insights

We work hard on our VisionX Previewer app and have some really cool new features for you :)

You know that we use a table for data representation. It looks like following:


Standard table

Standard table


We know that a table is not really cool on mobile devices. A table on mobile devices often looks like a list, like this one:



Our problem was the layout of the list elements. This is easy for a table but complex for a list. Anyway, we found a super flexible solution for the problem and now it's possible to show a table as list, like following:


Table as List

Table as List


You don't need to change your application to show a table as list, just add a style information to your existing tables and everything will work. The list supports same features as the table. It's sortable, editable and you can delete records. The list has some additional style options like as Card, with + button, with border, with arrow:


Style options

Style options


This is the default layout implementation of the list. If you want another layout, you can use a template mechanism to create your own customized list. The template is a json file which defines the layout. It's not super easy but with a little patience it will work.

The new list feature will be available together with the next VisionX update in some weeks, because the template mechanism is new and not available in older VisionX versions.

VisionX Previewer App 3.2.0 is available

Our VisionX Previewer App 3.2.0 is available. PLEASE read this article BEFORE updating the app.

It's a performance and feature release for flutter 3.24.

The new version fully supports table cell formatting (Cell profiles), fixed table cell size calculation, improved image loading and caching (no more flickering), supports full-screen content without safe are (optional), contains new date and time picker components and comes with updated dependencies.

With next version we will use flutter 3.27 and later.

A full changelog is available here and information about 3.2.0.

E-Plug (1.2.60) Update site

If you read the article about VisionX 6 update you saw that E-Plug is also updated from 1.2.60 to 3.0.0.

We released E-Plug 3.0.0 already and 1.2.60 is not available via Eclipse Marketplace anymore. However, if you made a mistake and want to stay with 1.2.60 it's still possible. In this case, simply add a custom update site in your Eclipse settings and use following URL: https://eclipse.sibvisions.com/eplug.1.2.60

This location contains latest E-Plug 1.2.60.

The default location for latest E-Plug is: https://eclipse.sibvisions.com/eplug

JVx 3.0 is available

We're happy to announce that JVx 3.o is available. It's a feature release and fixes some problems.

All changes are documented in our ticketing system. The release contains 138 tickets and much more work behind the scenes. It is full of experience gained from countless projects. This version is the heart of our low-code platform VisionX and it is a rock star.

JVx 3 is the effort of 34 months hard work.
Thank you Martin and René for your tireless work!

It comes with better database independency, Java code parsing and execution, Image metadata (mobile devices), improved Parameter handling and much more. The full list of changes is available in our ticketing system and in the changelog of our code repository.

Start with JVx

VisionX 6.0 is out

We're happy to announce VisionX 6.0.351

The new version is full with updates. It doesn't contain many new features but many new possibilities because of Java 21, JavaFX 23, latest reactUI, flutter UI and an updated Previewer app.

Before starting with VisionX 6, PLEASE read our update guide and also additional information about our Previewer app update.

What's new?

  • Disable translation

    It's possible to disable the translation temporary while you design your application, because sometimes it's not good to show translated labels/names immediate. The VisionX button in your application now contains a checkbox. This doesn't change your application, only temporary in VisionX.

  • Improved layout drag/drop

    We changed dragging and dropping elements for our layouts a little bit, to show gaps. This is not a big thing, but it just looks right now.

  • Java 21
  • JVx application framework 3.0
  • Apache Tomcat 11 support
  • Postgres database 14
  • ARM64 support (Apple silicon (M1), linux, windows)
  • Version update for all AddOns and Modules

As usual, VisionX 6.0.351 is available in the download area for our customers or as trial.

Have fun!

VisionX 5.11.615 is out

We're happy to announce VisionX 5.11.615

The new version is fully backwards compatible and contains many improvements. It also fixes some reported problems and brings new features. This version is the last version of series 5 and we didn't change bigger blocks. The 5.11.615 should be a great final version of VisionX 5. We already started development of VisionX 6 and it will bring some bigger changes because we'll update to Java 21. We also will update our embedded postgresql database. We'll update to our latest react based UI and also to latest mobile app. We have some great features in the pipeline for all of you.

... back to VisionX 5.11.615

What's new?

  • NEW calculated field
    Calculated field

    Calculated field

    Use this field for sum, average, min, max calculation or simple record counts. The calculated value can be changed after calculation or you can define custom formulas. It's on you. It's super easy to use and you can access the calculated fields in any action.

  • Actions and Functions

    Our new actions are:

    • Perform search

      If you have a "manual" Search button in your screen, automatic search is disable automatically. With this action it's possible to force search)

    • Download URL

      Save data from an URL.

    • Contains (value, search, case_sensitive)

      Checks if a search value is part of a specific value. case_sensitive means (B is not the same as b; but case insensitive means B is the same as b)

    • Starts with (value, search, case_sensitive)

      Checks if a value starts with a specific search value

    • Ends with (value, search, case_sensitive)
    • for loop with fixed number of iterations
    • Checks if a value ends with a specific search value

    Changed actions:

    • E-Mail
      It's now possible to set dynamic text as subject instead of fixed text.

    We have some totally useful new functions for you:

    • length (text)

      Counts the number of characters

    • substring (text, start)

      Creates a sub string from start to the end

    • substring (text, start, count)

      Creates a sub string from start and maximum count characters

    • countAll (column)

      Counts all records. Compared to count(column) which counts all records where the value is not empty.

    The description of an action shows possible functions as well:

    Detailed description

    Detailed description

  • Improved field selection
    Choose field

    Choose field

  • Messages now support feedback input

    Feedback input

    Feedback input

  • Changing license is now possible without "invalid license" warning
  • Changed some icons in elements area of visual designer
  • Creation of XML reports fixed

Starting with VisionX 5.11.615 it will be possible to use updates of following AddOns:

  • Embedding 1.8-4
  • Audit Log 1.2-11
  • REST 1.14-ea10
  • Query Editor 1.4.6

As usual, VisionX 5.11.615 is available in the download area for our customers or as trial.

Have fun!

Adding new paths for native libraries at runtime in Java (part 2)

Part 1 of this article is available here.

Since Java 14, ClassLoader was changed a little bit and usr_paths it not available as field anymore. It's still possible to change the java.library.path at runtime, but it's still tricky and dirty:

Method getDeclaredFields0 =
    Class.class.getDeclaredMethod("getDeclaredFields0", boolean.class);
getDeclaredFields0.setAccessible(true);

Field[] fieldsClassLoader =
    (Field[])getDeclaredFields0.invoke(ClassLoader.class, Boolean.FALSE);

for (Field fldClassLoader : fieldsClassLoader) {
  if ("libraries".equals(fldClassLoader.getName())) {
    fldClassLoader.setAccessible(true);

    Class<?>[] classesClassLoader =
        fldClassLoader.getType().getDeclaredClasses();

    for (Class<?> clLibraryPaths : classesClassLoader) {
      if ("jdk.internal.loader.NativeLibraries$LibraryPaths".equals(
              clLibraryPaths.getName())) {
        Field[] fieldsLibraryPaths =
            (Field[])getDeclaredFields0.invoke(clLibraryPaths, Boolean.FALSE);

        for (Field fldLibPath : fieldsLibraryPaths) {
          if ("USER_PATHS".equals(fldLibPath.getName())) {
            final Field fldUsrPaths = fldLibPath;
            fldUsrPaths.setAccessible(true);

            // get array of paths
            final String[] saPath = (String[])fldUsrPaths.get(null);

            // check if the path to add is already present
            for (String path : saPath) {
              if (path.equals(pPath)) {
                return;
              }
            }

            // add the new path
            String[] saNewPaths = Arrays.copyOf(saPath, saPath.length + 1);
            saNewPaths[saNewPaths.length - 1] = pPath;

            Object unsafe;

            // Unsafe is a hack

            Class<?> clsUnsafe = Class.forName("sun.misc.Unsafe");

            final Field unsafeField = clsUnsafe.getDeclaredField("theUnsafe");
            unsafeField.setAccessible(true);
            unsafe = unsafeField.get(null);

            Method m1 = clsUnsafe.getMethod("staticFieldBase", Field.class);
            Method m2 = clsUnsafe.getMethod("staticFieldOffset", Field.class);

            Object fieldBase = m1.invoke(unsafe, fldUsrPaths);
            Long fieldOffset = (Long)m2.invoke(unsafe, fldUsrPaths);

            Method m3 = clsUnsafe.getMethod("putObject", Object.class,
                                            long.class, Object.class);

            m3.invoke(unsafe, fieldBase, fieldOffset, saNewPaths);
          }
        }
      }
    }

    return;
  }
}

Here's the complete solution: toPDF project (search for addLibraryPath(String pPath))

Above code requires:

--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/jdk.internal.loader=ALL-UNNAMED

for JDK > 14.

VisionX 5.10.851 is out

What a great day!

We're happy to announce VisionX 5.10.851

The version comes with the latest release build of our react user interface and support for our latest mobile application.

We recommend the update because it's backwards compatible and you get all bugfixes which were reported by all VisionX users.

What's new?

The main focus was on bugfixes but we alwo have two new features:

  • Configure a home screen for your application
    The home screen is always shown if no other screen is open.
  • Export a Docker definition for the application without database container

As usual, VisionX 5.10.851 is available in the download area for our customers.
Have fun!

VisionX EA 5.11.50 is available

VisionX 5.11.50 EarlyAccess version is available for all our customers.

The version contains our latest libraries and bugfixes, especially our react UI and flutter UI. Both UIs are included in VisionX 5.11.50.

The mobile Browser previewer is now built with Flutter 3.19.2.

With EA version it's now possible to create a docker container definition file only for the application server. Usually both containers were created as docker compose definition file. The EA version also tries to solve the problem with different database ports for the embedded database. It should just work without limitations.

An EA version is not intended for production use, but is great for development.

Have fun!