Hi,
I am trying to migrate a major solution from 2.2.7 to 3.5.5.
It has worked mostly OK, however there were a couple of key issues.
it seems that the ‘controller.showRecords()’ behaviour has changed. In 2.2.7, this would display all records if I had not performed an explicit search (& in fact I was normally doing a databaseRefresh before the call). I have done a global replace to ‘controller.show()’ which seems to have fixed things.
There are some strange cosmetic/visual issues. The solution was based on the original Servoy 2 CRM solution, which used the ‘Servoy’ style. Once it has been converted, any fields I have placed on a form that had the bevel style, but set as Transparent, now have an ugly black border.
[Before]
[properties]
[After]
[properties]
Also the contents of the fields are almost clipped on the left side of the box. I think I have managed to tweak this by adjusting the style ‘field {margin :’ settings, but don’t know how to cure the black border issue.
I can reproduce the issue.
When setting the transparency on the field to true the inset turns black.
Setting border colors using CSS doesn’t have any affect.
When not using CSS and using the border property to make an inset then transparency doesn’t have any negative effect. Only downside is that you can’t control the border width.
I suggest you file a bugreport in the support system.
Tested with:
Servoy Developer
Version 3.5.5-build 518
Java version 1.5.0_13-119 (Mac OS X)
it seems that the ‘controller.showRecords()’ behaviour has changed. In 2.2.7, this would display all records if I had not performed an explicit search (& in fact I was normally doing a databaseRefresh before the call). I have done a global replace to ‘controller.show()’ which seems to have fixed things.
There are some strange cosmetic/visual issues.
you mixup controller.showRecords() and controller.showAllRecords()
I can reproduce the issue.
When setting the transparency on the field to true the inset turns black.
Setting border colors using CSS doesn’t have any affect.
When not using CSS and using the border property to make an inset then transparency doesn’t have any negative effect. Only downside is that you can’t control the border width.
I suggest you file a bugreport in the support system.
Thanks Robert.
JAN WROTE:
you mixup controller.showRecords() and controller.showAllRecords()
I did not always want to showAllRecords. Some of the calls to showRecords() were after ‘finds’. In these cases I only wanted to show ‘found’ records, and the old call did not act in the same way as in 2.2.8, it only worked if I changed it to show().
we create a support case 130364 on your name
Thanks, but is that for the bug of the transparent fields, or the controllerShow?
Having done more detailed testing now, there also seems to be a problem with ‘element.requestFocus()’ not seeming to work, but I am still looking into it (it was putting the cursor into a ‘Qty’ field on an order/line item ready for an operator to enter data. This was working great in 2.2.8, but is now not working).
not sure if I understand what you are saying, but after a find in a hidden form the only reasonable thing to call is controller.show() and not showRecords() in the first place, since showRecords without arguments has different meaning all along, see docs or sample code
case is created only for the strange border problem
not sure if I understand what you are saying, but after a find in a hidden form the only reasonable thing to call is controller.show() and not showRecords() in the first place, since showRecords without arguments has different meaning all along, see docs or sample code
case is created only for the strange border problem
I’d have to look back at the old 2.2 docs to see what that said, but it worked that way before. AS I’ve done a global search/replace now to fix it, I’ll leave that be for the moment (time pressures…)
that’s great as it is a real ‘eye-sore’ currently.
The problem is that you use a BevelBorder with no colors. This is a very valid thing to have. Then the BevelBorder uses the components color to determine what border colors it should use…
But it seems that if you set it to transparent the bevel border cant do much.
i made the BevelBorder editor a bit more clear, for black borders around transparent fields you should look to your Border setting and change it to use real colors…
jcompagner:
i made the BevelBorder editor a bit more clear, for black borders around transparent fields you should look to your Border setting and change it to use real colors…
Can you give me the CSS/Style code I need to do this, so I can just edit the Style Sheet, as there is NO WAY I can go thru every form in the solution tweaking properties!!!
This was a nice visual effect that worked great in 2.2.x, but now isn’t and my client’s users really don’t like the ugly black borders
When will 3.5.6 (or whatever) be out with new ‘BevelBorder editor’?
currently if you have a css border of inset or outset (border-style) the color property (border-color) isnt used at all currently. So only a default BevelBorder is created without colors.