Check-type fields in Smart

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Check-type fields in Smart

Postby JuanMartin » Fri Sep 09, 2022 9:35 am

Hi
I have a problem when trying to update with the fields type check in Smart
With a version lower than 2021.06.0 the check type field looks like this in a form:

correct.jpg
correct.jpg (1.73 KiB) Viewed 2514 times


If I install a version higher than 2021.06.0, the check type field looks like this:

incorrect.jpg
incorrect.jpg (2.06 KiB) Viewed 2514 times


As you can see it is not painted correctly, the square inside is missing and the application does not work in Smart
Everything works fine in ng
This happens to me on 2 different computers, both with Windows

The same thing happens with radio button fields. All other field types work correctly

I download the new version from the servoy page, currently 2022.06.0 (3782) 64 bit
I create a new solution, I create a normal form, I drag a field type check and this happens

If I import my solution that we have in another older version, it also happens

Tanhs
Juan Antonio Martín Pinilla
Servoy 2022.9.2 - PostgreSql 9.4
software@critenerife.com
User avatar
JuanMartin
 
Posts: 169
Joined: Tue Nov 25, 2008 9:20 pm
Location: Tenerife - Spain

Re: Check-type fields in Smart

Postby mboegem » Fri Sep 09, 2022 5:09 pm

Hi Juan,

This is probably a result of the higher version of Java that is shipped.
Pls locate the servoy.ini file, open this with text-editor and use the -vm argument to point to an install of Java that has a lower version.
I believe you can't go below Java 11

Code: Select all
-vm
<LOWER JAVA-INSTALL-BIN>


Hope this helps
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image

Partner of Tower - The most powerful Git client for Mac and Windows
User avatar
mboegem
 
Posts: 1743
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Check-type fields in Smart

Postby JuanMartin » Mon Sep 12, 2022 1:43 pm

Hi

I have tried what you mention but still the same problem
I have also tried the following:
I have completely uninstalled Java from the system
I have downloaded the latest version of Java from the Java.com website (8 update 341)
I have downloaded the latest version of Servoy 2022.06.0 (3782)
I have created a new normal solution, I have created a new form, and when I drag a check field on it I have the same problem.
If I change that normal solution to Ng Client, the same form works perfectly in NG
Another thing I have tried.
I have completely uninstalled Java from my system.
I open the developer and the problem is the same

I don't know if anyone has done this test, to download the latest version of Servoy and insert a check field in an Abstract or anchored form, they must have the same problem

Thanks
Juan Antonio Martín Pinilla
Servoy 2022.9.2 - PostgreSql 9.4
software@critenerife.com
User avatar
JuanMartin
 
Posts: 169
Joined: Tue Nov 25, 2008 9:20 pm
Location: Tenerife - Spain

Re: Check-type fields in Smart

Postby mboegem » Mon Sep 12, 2022 2:09 pm

Hi Juan,

Out of the box, 2022.06 is running Java 17 (embedded by Servoy) and I see your issue.
It doesn't matter which other version of Java you will be installing on your machine, the servoy.ini file just points to Java 17 unless you change it as I described earlier.

I've checked this now myself by downgrading to Java 11 (I have Java 11 installed on my machine, so I've pointed the Servoy.ini file to use that)
Everything works as expected, so I don't know which version you tried, but should work.

I believe you can not go lower than Java 11, anyway I can't run it on Java 8 (Mac M1 machine)

If I change that normal solution to Ng Client, the same form works perfectly in NG

This has really nothing to do with your issue, NG is completely different technology.
Smart Client = Java in the client
NG = HTML/JS/CSS in a browser

From Servoy perspective the checkbox component is just translated to a webcomponent and displayed in a browser, so: yes that will work.

But sure thing: your issue is Java related.
Make sure you are running a lower Java version (ideally the one you'll be using when deployed)
If you don't know which Java version your solution is running: open the Servoy Admin page from the developer menu and look for the Java version on the landing page.
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image

Partner of Tower - The most powerful Git client for Mac and Windows
User avatar
mboegem
 
Posts: 1743
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Check-type fields in Smart

Postby JuanMartin » Mon Sep 12, 2022 5:31 pm

Hi mboegem,

You are right
I download java 11 and make this changes and works fine


Thanks for your help
Juan Antonio Martín Pinilla
Servoy 2022.9.2 - PostgreSql 9.4
software@critenerife.com
User avatar
JuanMartin
 
Posts: 169
Joined: Tue Nov 25, 2008 9:20 pm
Location: Tenerife - Spain

Re: Check-type fields in Smart

Postby jcompagner » Mon Sep 26, 2022 1:08 pm

do you have errors in the log files when showing this?
like access errors?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Check-type fields in Smart

Postby JuanMartin » Mon Sep 26, 2022 1:28 pm

No, I don`t have any error in the log
Juan Antonio Martín Pinilla
Servoy 2022.9.2 - PostgreSql 9.4
software@critenerife.com
User avatar
JuanMartin
 
Posts: 169
Joined: Tue Nov 25, 2008 9:20 pm
Location: Tenerife - Spain


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 7 guests