Abstract
Genero version 4 brings in lots of new features that make it well worth upgrading to. The new version introduces several changes that you’ll need to be aware of if upgrading from an earlier version though. This article covers some of the challenges we faced, and the solutions found to resolve them.
Content
Development Environment
The first thing to note here is Genero v4 requires a new version of the Fourjs License Manager, FLM v6 to both compile and run programs. It’s likely while transitioning to Genero v4, you’ll want to be running both v3 and v4, so they have made FLM v6 backwards compatible with both 3.10 and 3.20; there is some work to do on these earlier versions of BDL first though (after installing and configuring FLM v6):
- Patch the license controller
- First, download the latest version (v6) of the FourJs Licence Controller
- This can be found on the Products download page Under License Manager Packages
- This is just a patch – after making a backup, unpack the package in the target (v3) $FGLDIR
- This should create a template license file: $FGLDIR/etc/fgllicense
- Update this with the hostname, port and license number
- In your Genero v3 profile, comment out/remove the current flm entries, and just set flm.server=”compatv6”
- This will need to be repeated for GRE (if used)
- Where you have multiple development licenses and use GST in client/server mode, set FGLLICENSE to point to a license file (fgllicense) in each developer’s home directory
Runtime
As above, you will need to make sure you are running FLM 6, and make sure FGLLICENSE and GRELICENSE are set appropriately.
If you were not using GBC previously (i.e. on 3.20 with Universal Rendering turned on), your applications may well look and behave a little differently with V4. Universal Rendering is now enforced, with GBC the only AUI option for GDC, GMA, GMI and GAS. While this means your application will look and behave the same whichever user interface is used, GDC and mobile front ends may look quite different to prior versions.
These are the four biggest changes from GDC we noticed in our own applications:
- WCI (Windows Container Interface) has been deprecated
- Forms are rendered differently and may appear larger
- Window management has changed significantly
- Many style file attributes have become redundant or deprecated
With no changes, i.e. simply re-compiling with Genero v4, the above issues made our applications unsightly and cumbersome to use; however, with a few simple work-arounds, we were able to get it to look and feel similar to the previous version:
WCI
The Windows Container Interface has been deprecated and replaced by a sidebar window container in GDC. Some of our applications utilise the full screen estate, so the appearance of this new sidebar meant some forms could not fit on a single screen.
While recoding the application to move away from MDI would be the best solution, there’s an easy way to remove this sidebar via your style file: