Servoy 2022.3.1

Servoy announcements

Servoy 2022.3.1

Postby jcompagner » Thu Jun 02, 2022 9:44 am

We are pleased to announce the availability of Servoy 2022.3.1 (release number 3743)

Look at the whats new for more info about the 2022.03.x changes
For all fixes and updates in this release see issues list.

This version is available through the the download site

We ship only installers, so for windows an exe file and for osx a dmg, for linux we have a archive tar file.

The full installers/archives are only for new installs, never use that to update/overwrite an existing install, existing installations should always be updated through the "check for updates".
This release can be updated by using the "latest" url: http://download.servoy.com/developer/latest/ (when you come from 2019.03 or higher)
This release is build on Eclipse 2021.12 (4.22)

If check for updates says there are no updates, then it could be a caching problem of eclipse, please restart the developer once and try again.

We ship a java with our installation (Java 17.0.3). So there doesn't need to be a java installed on the system anymore.
Also with a next update, we can update the java version with it so no need to keep it up to date yourself anymore.

This is a release in our quarterly release cycle, but this one will be promoted to LTS (2022.3.2 LTS)
if you want to stay on the LTS path you need to stick to 2021.03.1 LTS and enabled only the lts update site.
This release will be promoted to an LTS release later this year (so for example 2022.3.1 LTS)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Servoy 2022.3.1

Postby jcompagner » Thu Jun 02, 2022 9:51 am

This release was also demonstrated at ServoyWorld we used this component: https://github.com/Servoy/servoyworld_component to explain how to convert NG1 Component to a NG Titanium Component.

That git repo has a master which is just the NG1 component and a TiNG branch which is the fully converted one.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Servoy 2022.3.1

Postby patrick » Thu Jun 02, 2022 5:14 pm

Important notice for users of the svyExcelUtils: Servoy has updated some libraries that also requires the POI (extra) libraries to be updated.

I have uploaded a new collection of additional libraries to the Wiki here: https://github.com/Servoy/svyUtils/wiki ... 1-or-later
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Re: Servoy 2022.3.1

Postby steve1376656734 » Fri Jun 03, 2022 10:33 am

The list of issues fixed includes SVYX-428 (Jasper reports localization). That ticket says that it will be fixed in the next release of Jasper Reports but there has not been a new release with 2022.3.1 - is this still to come?

Thanks
Steve
Steve
SAN Developer
There are 10 types of people in the world - those that understand binary and those that don't
steve1376656734
 
Posts: 330
Joined: Fri Aug 16, 2013 2:38 pm
Location: Ashford, UK

Re: Servoy 2022.3.1

Postby Gabi Boros » Fri Jun 03, 2022 10:59 am

SVYX-428 is fixed in the latest jasper plugin (2022.3_6.19.1) that you can use with Servoy 2022.3.1 (but also should work fine with Servoy 2022.3.0)
Gabi Boros
Servoy
Gabi Boros
 
Posts: 402
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: Servoy 2022.3.1

Postby steve1376656734 » Fri Jun 03, 2022 11:14 am

That's great - thanks for the clarification.
Steve
SAN Developer
There are 10 types of people in the world - those that understand binary and those that don't
steve1376656734
 
Posts: 330
Joined: Fri Aug 16, 2013 2:38 pm
Location: Ashford, UK

Re: Servoy 2022.3.1

Postby Gabi Boros » Fri Jun 03, 2022 11:21 am

sorry, just re-checked, for the SVYX-428 fix you really need to use servoy 2022.3.1 (the latest jasper plugin 2022.3_6.19.1 works also with servoy 2022.3.0, just that particular fix needs 2022.3.1)
Gabi Boros
Servoy
Gabi Boros
 
Posts: 402
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: Servoy 2022.3.1

Postby steve1376656734 » Tue Jun 07, 2022 9:15 am

jcompagner wrote:This release was also demonstrated at ServoyWorld we used this component: https://github.com/Servoy/servoyworld_component to explain how to convert NG1 Component to a NG Titanium Component.

That git repo has a master which is just the NG1 component and a TiNG branch which is the fully converted one.


In the instructions that are given in the README.MD for the NG2 component (only visible when you switch to the ting branch - took me a while to realise this!) it says:

Code: Select all
After the conversion you should first do

"npm install"

in the root of the component package (which holds the package.json file)


Can you clarify which directory this is as when I convert the NG1 component using the Upgrade option on the right click I end up with a package.json in the root of the original NG1 component and also one in the <ng1 component root>/project subdirectory which I assume is the root of the NG2 components in the package (also the case with the ting branch of the example component). Do I run the "npm install" in both?

Thanks
Steve
Steve
SAN Developer
There are 10 types of people in the world - those that understand binary and those that don't
steve1376656734
 
Posts: 330
Joined: Fri Aug 16, 2013 2:38 pm
Location: Ashford, UK

Re: Servoy 2022.3.1

Postby jcompagner » Tue Jun 07, 2022 9:30 am

no never run npm install in the projects dir (that package.json is purely for packaging the component)

the root is for developing the component.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Servoy 2022.3.1

Postby steve1376656734 » Tue Jun 07, 2022 9:33 am

Thanks for the swift response.

Will carry on with my experimenting!
Steve
SAN Developer
There are 10 types of people in the world - those that understand binary and those that don't
steve1376656734
 
Posts: 330
Joined: Fri Aug 16, 2013 2:38 pm
Location: Ashford, UK

Re: Servoy 2022.3.1

Postby steve1376656734 » Tue Jun 07, 2022 1:45 pm

OK - got my first component converted and have the following questions/observations:
  1. My component has a text property that is used with an i18N string. In the NG1 editor the string is shown with the i18N value, but in the NG2 editor it shows only the i18N key (runtime works fine). I have confirmed that this is the same behaviour with the standard Servoy label. Should I report this as an issue with the NG2 editor?
  2. Normal practice with angular component development seems to be to use encapsulated CSS within the component itself by using the styleUrls directive:
    Code: Select all
    @Component({
        selector: 'mycomponents-sample,
        templateUrl: './sample.html',
        styleUrls: ['./sample.css'],
        changeDetection: ChangeDetectionStrategy.OnPush
    })
    The standard Servoy libraries take a different approach and either have a single CSS file with the package name or an assets directory with multiple files in. Which strategy does Servoy recommend we use for our own components?
  3. Finally, the readme on the servoyworld component says to run "npm run build_debug" in the target directory. Is that only if you are editing/developing the component in a separate editor such as Visual Studio Code or do we need to run it when devlopeing using Eclipse as well?
Thanks
Steve
Steve
SAN Developer
There are 10 types of people in the world - those that understand binary and those that don't
steve1376656734
 
Posts: 330
Joined: Fri Aug 16, 2013 2:38 pm
Location: Ashford, UK

Re: Servoy 2022.3.1

Postby jcompagner » Tue Jun 07, 2022 2:03 pm

1> yes make a case

2> problem with that encapsulated css that it is then very hard to override.... even with a solution.css that wants to set stuff (so that css that is loaded later), so thats why we have global assets file so we can always override.

3> for developing components (and you have it added as a source package) you always need to run "npm run build_debug" in the target folder, because no matter what editor you use (i use eclipse itself through the WWD plugin)if you save then we notice that you changed the file and make sure it is copied also to the right build dir (that target dir) and then the angular compiler that is run by that command in watch mode will recompile Titanum NGClient
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Servoy 2022.3.1

Postby steve1376656734 » Tue Jun 07, 2022 3:25 pm

  1. Case SVY-17187 has been created for the editor issue.
  2. Great explanation thanks. However, I moved my CSS from an encapsulated file to the styles.css that was generated in the component package and now the CSS is not being applied. I have checked the file that is sent to the browser and none of my styles are in it. My ng-package.json has:
    Code: Select all
    {
      "$schema": "../node_modules/ng-packagr/ng-package.schema.json",
      "dest": "../dist/",
         "assets": [
            "styles.css"
        ],
      "lib": {
        "entryFile": "src/public-api.ts"
      },
      "allowedNonPeerDependencies": []
    }
    The styles.css file is listed in the assets section so I assume it should be included (I have removed the styleUrls directive from the compnent.ts file). Any ideas?
  3. Understood - another good explanation thanks.
Steve
SAN Developer
There are 10 types of people in the world - those that understand binary and those that don't
steve1376656734
 
Posts: 330
Joined: Fri Aug 16, 2013 2:38 pm
Location: Ashford, UK

Re: Servoy 2022.3.1

Postby jcompagner » Tue Jun 07, 2022 3:38 pm

you also need to tells us about that file: https://github.com/Servoy/bootstrapcomp ... FEST.MF#L5

besides making sure that it is packaged (when you make a release)

https://github.com/Servoy/bootstrapcomp ... ge.json#L5
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Servoy 2022.3.1

Postby steve1376656734 » Wed Jun 08, 2022 1:14 pm

That's all working fine now thanks Johan. When I finish all my experimenting I will put together a cheat sheet and post it on the forum for others.

One further question though, I have an AngularJS component that does not have an Angular equivalent so I need to find a different one that does the same job for the NG2 client. I think I have found what I need but the new component has some additional properties that I would like to utilise. Is there a way to specify properties in the .spec file and flag them as NG2 only (so they only show up in the NG2 form editor)? As a follow up, is it possible to have a component package of only NG2 components?
Steve
SAN Developer
There are 10 types of people in the world - those that understand binary and those that don't
steve1376656734
 
Posts: 330
Joined: Fri Aug 16, 2013 2:38 pm
Location: Ashford, UK

Next

Return to Announcements

Who is online

Users browsing this forum: No registered users and 17 guests